I've got a page which connects to MySQL, does a query then does a
while($row = mysql_fetch_row($q)) {
callmyrecursivefunc($row[0],$row[1]);
}
function callmyrecursivefunc() {
$db2 = mysql_pconnect(s,u,p);
}
This causes the top code to break with
"Warning: Supplied argument is not a valid MySQL result resource "
the next time that fetch_row is called.
Any ideas?, What am I doing wrong?
Shaun
while($row = mysql_fetch_row($q)) {
callmyrecursivefunc($row[0],$row[1]);
}
function callmyrecursivefunc() {
$db2 = mysql_pconnect(s,u,p);
}
This causes the top code to break with
"Warning: Supplied argument is not a valid MySQL result resource "
the next time that fetch_row is called.
Any ideas?, What am I doing wrong?
Shaun