Re: boolean instead of array
| From: | Jason Wong | Date: | Sun, 03 Nov 2002 20:01:33 +0000 |
| Subject: | Re: boolean instead of array | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22934@lists.php.net to get a copy of this message | ||
On Sunday 03 November 2002 20:58, John Coder wrote:
> > Try adding some error checking into your code (see manual examples) and
> > using mysql_error() to find out what's going.
>
> What error checking to insert into this code I'm clueless. I found out
Again, have a look at the examples in the manual (the MySQL functions
section). The example which starts the chapter shows quite explicitly how you
should
(i) establish a connection to the mysql server
(ii) select a database to query
(iii) perform a query
(iv) display the results of the query
And for good measure you should alter the die() statements to incorporate a
mysql generated error message:
die("xxxx...." . mysql_error());
Once you get that example working, you can modify (one step at a time) to suit
your needs.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Spock: The odds of surviving another attack are 13562190123 to 1, Captain.
*/