note 45608 rejected from function.mysql-fetch-row by betz

From: Date: Sun, 12 Sep 2004 22:17:49 +0000
Subject: note 45608 rejected from function.mysql-fetch-row by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76557@lists.php.net to get a copy of this message
Note Submitter: xperts at gmail dot com ---- I have a function that uses the same mysql call over and over. Is there any way to make the call first: $sql = msyql_query("SELECT..."); $row = mysql_fetch_object($sql); and then pass that $row off to a function to be used there? function tabulation($row) { $value = $row->value; } ??? Seems like it would make sense to allow this to work, but it's not working for me. Do I need to pass by reference or something?

« previous php.notes (#76557) next »