Using HTTP Request variables instead of HTTP GET and Post variables

Posted by Shek on March 10, 2011 under PHP | Be the First to Comment

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 »

PHP – get the check box values of HTML form

Posted by Shek on July 30, 2010 under HTML, PHP | Be the First to Comment

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 »

Create multiple HTML tables with PHP for loop

Posted by Shek on June 22, 2010 under PHP | Be the First to Comment

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 »

Insert multiple lines from textarea of HTML Form into MySQL database with PHP

Posted by Shek on October 4, 2009 under PHP | 2 Comments to Read

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 »

Include PHP variable in a MySQL query

Posted by Shek on under MySQL, PHP | Be the First to Comment

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 »

Merging 2 MySQL tables with PHP – update one table’s field with another table’s field data (both table have one common field)

Posted by Shek on under PHP | Read the First Comment

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 »

Page 2 of 912345...Last »