Re: General Mysql Connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Waynn Lue wrote:
Yeah, it's the same user, same everything (for now). But I wonder why
we're seeing these "lost connection" errors and I'm trying to fix
it--this was one of the things I was investigating.

Random guess :)

You're overwriting a result or connection variable?

$query = "select * from db1.table1";
$result = mysql_query($query, $conn1);

while ($row = mysql_fetch_assoc($result)) {
  ...
  $result = mysql_query("select * from db2.table2", $conn2);
}


--
Postgresql & php tutorials
http://www.designmagick.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux