• Member Avatar for cereal
    cereal

    Replied To a Post in Who likes the tagging system?

    o/
  • Member Avatar for cereal
    cereal

    Replied To a Post in MariaDB, simple query and display

    Hi, you have to fetch the results, `fetch_all()` will return the entire result set: $result = $name->fetch_all(MYSQLI_ASSOC); print_r($result); While `fetch_array()` will return one row, and in order to get the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cookies separated by comma in some versions of iPhone / iPad software

    Hi! According to the RFC 2109 this seems to be the expected behavior, section 4.2.1: > An origin server may include multiple Set-Cookie headers in a > response. Note that …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot connect to MySQL 4.1+

    Uh, yes you need the correct privilege in order to perform these changes. Open a ticket with the hosting company and point them to the error message you got from …
  • Member Avatar for cereal
    cereal

    Began Watching Cookies separated by comma in some versions of iPhone / iPad software

    Hello, I am writing this to warn you and because I haven't selected yet witch solution to choose , so your opinion is more than welcomed. The problem: in some …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Are discussions hard to follow?

    It's fine for me, I like it. The only thing that still drives my attention (not disturbing) is the Discussion Starter tag, too purple, if that was gray or outlined …
  • Member Avatar for cereal
    cereal

    Began Watching One Small Certificate for the Web

    https://www.eff.org/deeplinks/2015/09/one-small-certificate-web-one-giant-certificate-authority-web-encryption Let’s Encrypt is a free, automated, open-source certificate authority (CA). The goal is to revolutionize encryption on websites, making HTTPS implementation a seamless, no-cost option for anyone with a …
  • Member Avatar for cereal
    cereal

    Replied To a Post in script code showing on browser please help to solve this problem

    Hi, I don't understand, could you explain it better and show full code?
  • Member Avatar for cereal
    cereal

    Replied To a Post in Resizing an image in PHP

    Hi, try to round the result of `$wd` because if for example this is a `4:3` it would return `666,67` i.e. a float, where instead `imagecreatetruecolor()`expects an integer.
  • Member Avatar for cereal
    cereal

    Replied To a Post in in main server this code is not working.code to point to particular section

    Hi, the ID must be unique, if you have two or more `id="anchor-name"` then it would not work. If this still does not help then share the code.
  • Member Avatar for cereal
    cereal

    Replied To a Post in New design live

    **@JOSheaIV** hi, to get the navigation click on the blue icon near the search bar.
  • Member Avatar for cereal
    cereal

    Replied To a Post in upgard Php 5.2 to 5.5

    Hi, check this link: http://php.net/migration55 P.S. You should read also migrations notes for 5.3 and 5.4, to see what else has changed.
  • Member Avatar for cereal
    cereal

    Gave Reputation to Dani in New design live

    So our new design is live, but it's *far* from complete. There were quite a handful of changes that needed to be made on the backend, and I needed everyone …
  • Member Avatar for cereal
    cereal

    Replied To a Post in New design live

    Beautiful upgrade Dani!
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to change date format into Y-m-d, i have stored in DB varchar

    Hi, if that is a unix timestamp then do: -- updating date format UPDATE `table_name` SET `col_name` = FROM_UNIXTIME(`col_name`); -- changing colum type to datetime ALTER TABLE `table_name` MODIFY `col_name` …
  • Member Avatar for cereal
    cereal

    Began Watching resize() mishbehave, why?

    HI, I've just run into something peculiar. Let me explain the functionality of the site I'm working on first http://antonioborrillo.co.uk/agency_test/home.html . Every time the site gets resized - if you …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Cannot connect to MySQL 4.1+

    Hi, run: SELECT `User`, `Password`, length(`Password`) FROM mysql.user; The length should be 41, if you get 16 it means that the user is still using the old password system and …
  • Member Avatar for cereal
    cereal

    Replied To a Post in if elseif condition not working properly

    Good! But I'm not sure I've understood your last request.
  • Member Avatar for cereal
    cereal

    Replied To a Post in if elseif condition not working properly

    > Does this make sense ?? Uh, ok, it does not work because `catid` is set in both cases, so it will satisfy always the first condition and stops there. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in if elseif condition not working properly

    Hi, it does not work it means one of these statements does not run? Which specifically? And by the way: `$cat` should be `$_GET["catid"]`? if(isset($_GET["catid"])) { $statement = "posts WHERE …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Can't save file in php

    Hi, change: $target = "upload/"; To: $target = $_SERVER['DOCUMENT_ROOT'] . "/upload/"; Otherwise `move_uploaded_file()` will try to write the destination relatively to the script path. Then it should work. A note: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Arabic text displaying as ????

    Hi, have you checked the encoding returned by the server? You should be able to see it in the `Content-Type` header response, by using the developer tools in Google Chrome, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in PHP file not working!?

    > do i need another text editor for the php file? Hi, it's not required, but using an editor that highlights the code will help a lot. You can try …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How do I make my php contact form redirect the user to a thank you page aft

    Hi, at line `9` of the email.php script do: // success page if(mail(...)) header('Location: http://website.tld/thanks.php'); // error page else header('Location: http://website.tld/error.php'); // stop script execution exit; And remove the echo …
  • Member Avatar for cereal
    cereal

    Replied To a Post in multistep form in codeigniter??

    Hi, you could use json or base64, but what happens if you want to search throught collected data? It would be unusable without extra processing. Why don't you normalize the …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Migrating data between sqlite and mySQL

    Very strange, I think it could be the exporter tool but, once imported, the numbers should be managed as floats no matter. What I see is that the default definition …
  • Member Avatar for cereal
    cereal

    Gave Reputation to diafol in error save textarea

    Yes it will because when you send <form action="" method="POST"> pagina: <input type="text" name="page" value="" /> <p><input type="submit"></p> </form> `$_POST['page']` exists and will run this code: $file= (isset($_POST['page']) && trim($_POST['page'])) …
  • Member Avatar for cereal
    cereal

    Began Watching Migrating data between sqlite and mySQL

    I have an old sqlite database that I am no longer going to be using but I want to transfer all of my data to my new mySQL database. I …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Migrating data between sqlite and mySQL

    Same for me, I ran: SELECT * FROM `playertimes` WHERE `runtime` BETWEEN 100 AND 200 ORDER BY `runtime` ASC LIMIT 20 And returns in perfect order.
  • Member Avatar for cereal
    cereal

    Replied To a Post in Migrating data between sqlite and mySQL

    Hi, I understand the data is float but I'm not sure about the column type, is this: `decimal`, `float` or `double`?
  • Member Avatar for cereal
    cereal

    Replied To a Post in Uploading multiple images in codeigniter??

    So, in the controller you're trying to rewrite the $_FILES array to condition the execution of line **27**: if(!$this->upload->do_upload('file')) Ok, then replace lines 4, 5 and 6 with: $files = …
  • Member Avatar for cereal
    cereal

    Replied To a Post in plz answer to my php question

    Do you want to extract it from a string or the string is a number itself? # case 1 $str1 = "Buy 12 apples, 1.5kg of beans and 4 onions, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to display different data from same table in 2 tabs in php

    Ok, on line `147`: $sql=("Update improvement_plan set Responsible4='" . $responsible4 . "' WHERE Progressid='" . $_SESSION['Progressid'] . "'"); { the query function is missing, so there is no update. Also …
  • Member Avatar for cereal
    cereal

    Gave Reputation to Troy III in client-side Image size/type validation (demo)

    Will work on latest:Chrome Safari Firefox Opera and all versions of IE. *(client notifications are for demonstration purposes only, and subject to designer decisions and modifications ) Can be used …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Uploading multiple images in codeigniter??

    It would be helpful to know how you upload multiple images: 1. are you using an array? <input type="file" name="image[]"> 2. or different names? <input type="file" name="image_1"> <input type="file" name="image_2"> …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to display different data from same table in 2 tabs in php

    At the moment, fix the variable, id & name attributes issues (i.e. avoid repetition), then according to the changes fix your update queries with the new names and then try …
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to display different data from same table in 2 tabs in php

    Hi, I suggest you to print the contents of the POST request to see what is actually sent to the script, so on top of the progress.php file simply put: …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Node server doesnt working

    As I wrote in previous post: > About the headers: if not defined, Node will set implicit headers, but you should always set a status [code|message] response: https://nodejs.org/api/http.html#http_response_statuscode
  • Member Avatar for cereal
    cereal

    Replied To a Post in How to use foreach loop inside content before sending mail

    You use it outside and just add the variable that carries the result of the loop, for example: $rows = ''; foreach($result as $row) $rows .= " <tr> <td>{$row['article']}</td> <td>{$row['price']}</td> …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Node server doesnt working

    Ok, does it work now? Applying the `end()` method after you write the response body is mandatory. About the headers: if not defined, Node will set implicit headers, but you …
  • Member Avatar for cereal
    cereal

    Replied To a Post in how to shutdown mongodb

    You should be able to start and stop it as a daemon: sudo service mongod start sudo service mongod stop
  • Member Avatar for cereal
    cereal

    Replied To a Post in Node server doesnt working

    Hi, in order to write a response you have to send an header and then call `end()`: res.writeHead(200, {'Content-Type': 'text/html'}); res.write('2working'); res.end(); Also, probably mistype, on console log you wrote …
  • Member Avatar for cereal
    cereal

    Gave Reputation to diafol in Common Issues with MySQL and PHP

    ## Contents ## Overview 1. Alternatives to Deprecated mysql_* Functions 2. SQL Injection: What to do with $_POST and $_GET variables 3. How to Insert Tablenames and Fieldnames Properly 4. …
  • Member Avatar for cereal
    cereal

    Replied To a Post in installing phpmyadmin [Linux]

    This is required by PHPMyAdmin when using the cookie authentication method. Install the `php5-mcrypt` package from apt and the error should disappear. More info about the extension here: * http://php.net/mcrypt …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Styling Google Map

    I don't know, this is my test, based on your code: * http://code.runnable.com/VeRru9qydx0wYwpW/testing-resizable-google-maps-for-php click on **Run** to execute the page. It seems to resizes fine for me, but I'm not …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Styling Google Map

    Add this line after the init function: google.maps.event.trigger(map, 'resize'); Then change the `#map` width to `100%` and the height according to the resolution, in this case you can use media …
  • Member Avatar for cereal
    cereal

    Gave Reputation to jkon in (Your Opinions Needed)

    There are two main issues in your question. The first has to do with the use of mysql functions , that are deprecated and removed in new PHP versions , …
  • Member Avatar for cereal
    cereal

    Replied To a Post in installing phpmyadmin [Linux]

    Hi, read this guide: * https://help.ubuntu.com/community/phpMyAdmin In particular follow the instructions for Ubuntu 13.10+, you have to include the configuration file into the server, the guide refers to Apache. Anyway, …
  • Member Avatar for cereal
    cereal

    Replied To a Post in Styling Google Map

    I don't know the contents of the included files, but have you included the link to the API? <script src="https://maps.googleapis.com/maps/api/js?callback=initMap" async defer></script>
  • Member Avatar for cereal
    cereal

    Replied To a Post in where to locate facebook sdk v4 vendor directory in codeigniter 3.0

    Hi, by default the composer autoload is set to `FALSE`. So open `/application/config/config.php` and replace this: $config['composer_autoload'] = FALSE; With: $config['composer_autoload'] = FCPATH . 'vendor/autoload.php'; `FCPATH` is defined in the …

The End.