Posted by Shek on June 15, 2009 under PHP |
In this example, I am going to show you how to use PHP to change a MySQL database’s field size.
Read more of this article »
Posted by Shek on June 10, 2009 under PHP |
Editor’s note: In some cases, when you have forgotten to preset the MySQL database table encoding to UTF8 after the creation of the database but later you need to insert some UTF8 text such as Chinese or other Asian languages, here is how you could do with PHP to change the encoding of the MySQL database table.
Read more of this article »
Posted by Shek on December 28, 2008 under PHP |
Array is a good way to store many elements, in some operations you might like to store all of the array elements into different row of a table in a MySQL database. To store into different row, we can use a for loop to go through each elements and run a query to insert them 1 by 1. This example, I go show you to insert into different fields.
Read more of this article »
Posted by Shek on under PHP |
There are many elements in an array. In some operations, you might like to join all the elements within an array to become a string and use the string for other operation, how can this be done?? There is a function of PHP can do the job, which is implode( ). Let me show how to do so:
Read more of this article »
Posted by Shek on December 25, 2008 under PHP |
Editor’s note: In my past post
Redirect page using PHP function header(), I talked about how to redirect page with header() function. To refresh a page, by using the same function and redirect to the page to itself, then it has the refresh effect.
Read more of this article »
Posted by Shek on November 23, 2008 under PHP |
Editor’s note: I mentioned in my previous post
Display data from MySQL with PHP which I demonstrated how to display the data of a row within a table, now I want to demonstrate how to display all field names (column names) of a table within a MySQL database.
Read more of this article »