Is there a way to check if a record with an Arbitrary Primary Key exists in a MySQL DB?

From: Date: Wed, 07 May 2003 23:13:13 +0000
Subject: Is there a way to check if a record with an Arbitrary Primary Key exists in a MySQL DB?
Groups: php.general 
Request: Send a blank email to php-general+get-146758@lists.php.net to get a copy of this message
I am creating a PHP script to add data to a mySQL database. Is there any way to check if a record with a primary key exists that would return TRUE or FALSE? I tried to print_r a SELECT * FROM that should return an empty set and all I got was: "Resource ID #3". Thanks, -Dan Anderson

« previous php.general (#146758) next »