RE: [PHP-DB] Resource ID

From: Date: Tue, 28 Aug 2001 11:18:53 +0000
Subject: RE: [PHP-DB] Resource ID
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-11886@lists.php.net to get a copy of this message
Scott, The resource IDs are integer identifiers PHP uses to identify the different queries being done on the system. However if you want to actually extract the information from those queries you need to use either the mysql_fetch_row() or mysql_fetch_array queries. Oh and on another note a separate function/class isn't really all that necessary to query a table in another database...based on the code you provided. $q = mysql_query("SELECT id FROM $db.words WHERE word = '$word'"); would work just as easily if not faster and using less resources =) Sincerely, Craig Vincent

« previous php.db (#11886) next »