Posted by Shek on March 10, 2011 under PHP |
In this post, I would like write a little note on using
$_REQUEST instead of $_GET or $_POST
in the future of my programming for most of the cases.
Read more of this article »
Posted by Shek on July 30, 2010 under HTML, PHP |
Editor’s note: In some cases when you try to create a HTML form for user to input data, you might like to include a set of check boxes for them to input multiple choices, however in order to get the data from a set of check boxes with PHP, I think the easier way is to use array for it, and here in this example I am going to show you how to do so
Read more of this article »
Posted by Shek on June 22, 2010 under PHP |
Editor’s note: To create one HTML table is easy, but to create multiple HTML tables, We have to copy and paste the code many times. However we could do the job with a PHP for loop.
Read more of this article »
Posted by Shek on October 4, 2009 under PHP |
Instead of using a textfield to input one line of text, we could use textarea for user to input multiple lines. However if we use PHP to insert the text of a textarea into the MySQL database with the same method as the textfield, all of the multiple lines will become 1 line. To solve this issue, we could use a PHP function:
Read more of this article »
Posted by Shek on under MySQL, PHP |
Editor’s note: In cases, we have to include PHP variables within a MySQL query, here is how it is done:
Read more of this article »
Posted by Shek on under PHP |
In this post, I am going to show you how to merge 2 MySQL tables with PHP. Here we have 2 MySQL tables, both with 2 fields and 1 field of each are in common. The aim is to update one table’s field with 1 field from the other table. Here are the 2 tables’ structure:
Read more of this article »