PanterSi
10-28-2009, 07:04 AM
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 1256719513 at 1256719513 ---------------
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?
Regards
--------------- Added 1256719513 at 1256719513 ---------------
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?