Type Declare, how?

From: Date: Thu, 01 Jun 2000 03:51:07 +0000
Subject: Type Declare, how?
Groups: php.db 
Request: Send a blank email to php-db+get-148@lists.php.net to get a copy of this message
Using this as my PHP test script .... <?php $db = ODBC_Connect("dive", "", ""); $res = ODBC_Exec($db, "SELECT * FROM tblDiveData WHERE DiveLocation = '$userinput'"); while (ODBC_Fetch_Row($res)) {... userinput is consider a string var. If I want to compare DiveDepth (Integer Type) can I declare the type for userinput or is their a function like convert to integer(userinput). Does $varname = string type were %varname = integer type? Thanks for the knowledge, Tim ===== "Hokey religions and ancient weapons can never compare to a good blaster at your side, Kid." May all your bubbles be external. __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/

« previous php.db (#148) next »