Display UTF8 encoding records such as Chinese or Asian languages from MySQL database with PHP

Posted by Shek on June 23, 2008 under PHP | Be the First to Comment

Editor’s note: If you are a programmer who involves with a database with UTF8 language encoding records such as Chinese or other Asian languages. You might counter some cases when you try to display the records, the UTF8 language characters might appear to be meaningless symbols. I have found a way to solve this issue.
Read more of this article »

Check ip address of host or website with PHP function and HTML form

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

Editor’s note: There is a function in PHP to check the IP address of a host. It is called “gethostbyname()“. We could use it to check the IP address of a website. Steps are very simple: Put the website address into the function, for example: gethostbyname(www.phpsuperblog.com); and print the result out and then the IP address of the website would appear.
Read more of this article »

Read one line of text from a text file with PHP

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

In some cases, rather than using the database to store data, you can also use a text file “.txt” to store a record. Maybe the record is a name, a number or a line of text. To read the line in the text file, I have create an example to show you how to do so:
Read more of this article »

Get MySQL database records as HTML form text field’s value

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

In my past post on explaining how to set the default values of the text field. Now to use the same concept, we could get the records from the MySQL database and place it into the text field as default text. Here I have created an example to show you how to do so. Read more of this article »

Set default text for text field in HTML form

Posted by Shek on under HTML | Be the First to Comment

In some websites, you might discover that some text fields already has text written it when the page loads. Text such as “enter your search here” or “input here”. You might wonder how to do it, is it to do with another programing language such as javascript?? The answer is no, HTML can do the do. Read more of this article »

Display data from MySQL database with HTML form and PHP

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

Editor’s note: When you have all the data stored in the MySQL database, and you want to display just some particular data. In order to do so, a HTML form for them to input is a great idea. Here I have created an example to show you how to do this task.

Read more of this article »

Page 2 of 3123