HTML form – Drop down menu with data from MySQL datebase as options

Posted by Shek on May 8, 2008 under PHP | 3 Comments to Read

To create a drop down menu is easy, just use the codes I mentioned in my past post: HTML form element – Drop down menu.

But what if you want to have the data in the MySQL database to be the options of the drop down menu and the options are over 100 or more?? It is very time consuming to create all. But I am going to show you an easy way to do so which by creating a drop down menu involving with PHP and query. The codes are:


Read more of this article »

Display data from MySQL with PHP

Posted by Shek on May 7, 2008 under PHP | Be the First to Comment

Editor’s note: To display the data from MySQL database with PHP, we have to use the mysql_query( ) function to run a SQL query, here is a sample I have made to display all data from a table with 2 fields.

Read more of this article »

Page 3 of 3123