RE: [PHP] List all records???
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Thu, 28 Sep 2000 01:24:34 +0000 |
| Subject: | RE: [PHP] List all records??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-17834@lists.php.net to get a copy of this message | ||
Have a look at this code.
The if ($result) ... is the stuff you're after.
I use this to do ad hoc queries on my data, works quite well for testing sql
queries.
to use,
either create a settings.ini file with correct values for your site for the:
$db_domain
$db_user
$db_password
$db_databasename
vars, or just edit the script to put them in directly.
Cheers,
Lawrence.
-----Original Message-----
From: Curtis Cole [mailto:ccole@zebra.net]
Sent: September 27, 2000 07:37 AM
To: php-general@lists.php.net
Subject: [PHP] List all records???
does anyone have an example of how to list all records in a table format
from a mysql db