Posted by Shek on May 7, 2008 under PHP |
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 »
Posted by Shek on April 24, 2008 under PHP |
In my past post, I talked about rounding up a decimal number to the nearest integer. This time I will show you how to round “down” a decimal number to the nearest integer. This time we use a function floor( ). It is very easy to use, all you have to do is to put the decimal number inside the brackets and it will convert for you. Here are some examples:
Read more of this article »
Posted by Shek on April 21, 2008 under PHP |
Editor’s note: In this post, I would like to show how to display the current server time with PHP.
Read more of this article »
Posted by Shek on April 17, 2008 under PHP |
There are many times that you might like to use or include PHP variables within HTML codes, case like to use for a text box’s name, and the way to do so is:
Read more of this article »
Posted by Shek on April 12, 2008 under PHP |
Editor’s note: I recently worked on a web project which I need to add the date on a page. I used the PHP function date( ) to accomplish the job. Here are my examples for your reference.
Read more of this article »