note 45608 added to function.mysql-fetch-row

From: Date: Sun, 12 Sep 2004 22:11:15 +0000
Subject: note 45608 added to function.mysql-fetch-row
Groups: php.notes 
Request: Send a blank email to php-notes+get-76556@lists.php.net to get a copy of this message
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? ---- Manual Page -- http://www.php.net/manual/en/function.mysql-fetch-row.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45608 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45608&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45608&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#76556) next »