27.10.2015 Views

AJAX and PHP

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. In your foundations folder, create a new folder named mysql.<br />

4. In the mysql folder, create a file named config.php, <strong>and</strong> add the database<br />

configuration code to it (change these values to match your configuration):<br />

<br />

5. Now add the st<strong>and</strong>ard error-h<strong>and</strong>ling file, error_h<strong>and</strong>ler.php. Feel free to copy this<br />

file from the previous exercises:<br />

<br />

6. Create a new file named index.php, <strong>and</strong> add this code to it:<br />

<br />

<br />

<br />

Practical <strong>AJAX</strong>: Working with <strong>PHP</strong> <strong>and</strong> MySQL<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!