ocifetchstatement in mysql = ?
| From: | Jimmy Brake | Date: | Thu, 12 Jul 2001 03:38:12 +0000 |
| Subject: | ocifetchstatement in mysql = ? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10318@lists.php.net to get a copy of this message | ||
Hi!
Is there a command like ocifetchstatement() for mysql?
I looked and looked and ... well it just does not seem to be there :-),
So I got ambitous and tried just making one...
function MyDataArray($query)
{
$this->result = @mysql_query($query, $this->id) or
MySQL_ErrorMsg ("Unable to perform query: $query");
while($rows = mysql_fetch_array($this->result))
{
$array[]=$rows;
}
return($array);
}
That does not work.... :-) there is probably something I am miss understanding about arrays...
Anyone have a mysqlfetchstatement() function or can help me fix mine?
Thanks in advance!
Jimmy Brake