315
CHAPTER
Adding Information from a Database 13
TIP
How do I troubleshoot my script if it does not work?
Debugging any complicated script can be difficult. You should first carefully review your code to ensure that
you do not have any typographic errors. Pay particular attention to your use of capital and lowercase
letters, single and double quotation marks, and semicolons. You can add echo statements at key locations
in your script to get PHP to output variables and values so that you can see those values as the script
executes. You can also turn on more robust error messages; for details on doing this, consult the PHP
documentation at http://php.net/manual/en/.
● The record is inserted into
the table and the page to
which the script redirects
appears.
0 Open the form in a Web
browser.
! Fill in the form and click the
button.