OKay let me try and explain my crazy idiot logic here
I have a class, dbconnect.php that handles all my database queries, All the data gets inputed correctly and the query runs and gets the information.
And I was trying to find a way to get the data from the mysql_fetch_assoc function back to the script out side of the class. And when I try this
PHP Code:
$subres = $this->query($res); $data = mysql_fetch_assoc($subres); return $data;
All is i get is blank page with no data. but if I echo the $data in the class it will out put what i am looking for, but is still not accessible to the script out side of the class.
Var_export works but creates unanticipated data results. and makes it more dificult to replace the data with spaces or put into an array.
__________________
AMW_Drizz
Php 5.2 Mysql 4.1 IIS 6 Win2k3 Server && PHP 5.2 MySQL 4.1 Apache 2.2 (separate machine of course)
Last edited by amw_drizz : 03-31-2008 at 10:07 AM.
|