Prev | Current Page 29 | Next

Larry Ullman

"Building a Web Site with Ajax: Visual QuickProject Guide"

The method tells the
browser how that data should be
sent. The get method sends the
data in the URL.
??? Normally I would have PHP
dynamically generate any dropdown
menu that corresponds to
a database table. I??™m saving steps
by not doing so here.
start a PHP page p. 15
??? PHP is a server-side language
used to dynamically generate
HTML code (among other
purposes). Anything within the
PHP tags??”??”will
be treated as PHP code. Anything
outside of those tags will
immediately be sent to the Web
browser and treated as HTML.
extra bits
22 browsing employees
extra bits
print the employees p. 16
??? When it comes time to test this
part of the Web site, if you have
problems with this page you??™ll
need to employ some standard
PHP-database debugging techniques.
Begin by printing out
the query being run (add echo
$q; after the query is created).
Then run the query using another
interface, like the command-line
mysql client or the Web-based
phpMyAdmin. These two steps
will confi rm what the query??™s
results are.
??? Another useful debugging technique
for any PHP script is to
view the dynamically-generated
HTML source code in your Web
browser.


Pages:
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41