Argh!
Hello,
I'm working through the exemples included in chapter 11 of "PHP in 24
Hours" (Working with the DBM Functions). The first exemple explains
how to add items to the db. Another exemple shows how to output the
records on a page. I've copied the exemples word for word. Every time I
run the second script, I get part of the code instead of the records.
I've re-checked the exemples, even went as far as scanning the pages and
pasting them into my html editor. The code in the book and my own two
files are identical. And still it doesn't work.
Help, anyone?
The files are dbm1
(creation of db and insertion of data) and dbm2
(outputing data into a table).
I'm working through the exemples included in chapter 11 of "PHP in 24
Hours" (Working with the DBM Functions). The first exemple explains
how to add items to the db. Another exemple shows how to output the
records on a page. I've copied the exemples word for word. Every time I
run the second script, I get part of the code instead of the records.
$key "; print "
\$$value "; $key = dbmnextkey( $dbh, $key ); }
dbmclose( $dbh); ?>
I've re-checked the exemples, even went as far as scanning the pages and
pasting them into my html editor. The code in the book and my own two
files are identical. And still it doesn't work.
Help, anyone?
The files are dbm1
(creation of db and insertion of data) and dbm2
(outputing data into a table).
