Tag Archives: Ajax Example

A to Z PHP and MySQL Tutorial

PHP MySQL Connect to a Database Create a Connection to a MySQL Database Before you can access data in a database, you must create a connection to the database. In PHP, this is done with the mysql_connect() function. Syntax mysql_connect(servername,username,password);

Ajax Example

The AJAX application above contains one div section and one button. The div section will be used to display information returned from a server. The button calls a function named loadXMLDoc(), if it is clicked: <html> <body> <div id=”myDiv”><h2>Let AJAX