Own query in fuction
I have integrated page and want my own query execute in own function. Is there any similar to query_read_slave, because unfortunately this not work to call from function (Fatal error: Call to a member function query_read_slave() on a non-object).
Regards
--------------- Added [DATE]1256719513[/DATE] at [TIME]1256719513[/TIME] ---------------
I solve a problem.
Instead of
$thread = $db->query_read_slave($strSQL);
while ($row = $db->fetch_array($thread))
...
I used
$thread = mysql_query($strSQL);
while ($row = mysql_fetch_array($thread))
Any one know what is the main difference?
|