Re: mysql error
| From: | Richard Lynch | Date: | Thu, 18 Jan 2001 06:55:40 +0000 |
| Subject: | Re: mysql error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35283@lists.php.net to get a copy of this message | ||
> mysql_select_db("jamesmc",$db);
> $result = mysql_query("SELECT * FROM comment WHERE pid='$poid'
ORDER by
> cid desc",$db);
> $comm = mysql_fetch_array($result);
This is in the FAQ, I think... Better re-read that.
Start using or die() a lot:
mysql_select_db("jamesmc", $db) or die("Could not select db");
$result = mysql_query(...) or die(mysql_error());
By Day: |By Night:
Don't miss the Zend Web Store's | There's not enough room here...
Grand Opening on January 23, 2001! | Start here:
http://www.zend.com | http://l-i-e.com/artists.htm