JavaScript quietly requests a PHP page in the background and drops the answer into the page. Two files are always involved: the page you look at, and the PHP page it calls.
1-basics.html — The bare mechanismgetDBstuff.php and replaces some text. No database yet.3-dbExample.html — Looking something up in a database3-getAddresses.php.4-ajaxExample.php — Looking up student marks4-marksLookup.php.5-newStudentInfo.php — Sending information back5a-submitInfo.php.These examples use two different connection files: database.php and database-students.php. Check which one an example includes before you wonder why a table is missing.