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.
Check ip address of host or website with PHP function and HTML form
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 one line of text from a text file with PHP
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:
Get MySQL database records as HTML form text field’s value
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
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
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.




