SELECT statement

From: Date: Mon, 11 Dec 2000 20:58:40 +0000
Subject: SELECT statement
Groups: php.db 
Request: Send a blank email to php-db+get-5158@lists.php.net to get a copy of this message
Hi-- Let's say I'm doing this:
        $sql = "SELECT * FROM Facilities WHERE WO=$number";
What if "$number" doesn't exist OR is NOT an integer for example, how can I trap that error and display a message? Or other idea? Thanks a lot! Julio Cuz, Jr. Riverside Community College jcuz@rccd.cc.ca.us

« previous php.db (#5158) next »