Re: Quarter question..
| From: | Jason Wong | Date: | Mon, 04 Nov 2002 18:21:43 +0000 |
| Subject: | Re: Quarter question.. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22974@lists.php.net to get a copy of this message | ||
On Monday 04 November 2002 22:56, joakim.andersson@cybercom.se wrote:
> I might have been unclear in my reply.
Sorry, I was following this thread on and off and probably misinterpreted your
post.
> The original code had an 'or die()' on $sql = "select..." aswell and that
> is, in my opinion, rather unnecessary.
Of course ;-)
> Using 'or die(mysql_error())' on mysql_query should be mandatory. At least
> during development.
That should be drummed into people's heads from the word go! I've made a
request in the users' comment of the mysql section of the manual hoping that
the example code is changed so that instead of just die(), it dies with a
mysql_error().
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Maybe you can't buy happiness, but these days you can certainly charge it.
*/