> The connection has already been established, and some data read from
> database without problem. The connection was not closed, rather
> left alive.
> Now...
> Why this happens when I try to execute additional query? Help, anyone!

the connection variable is not global, so the function your MySQL statement
is in cannot access it. to access a variable outside of a function write

  global $connection;

or something similar (whatever the name of your MySQL connection handle) as
the first line of your function :-)


     Studio 24 Ltd   |   tel. 01223 501 892
         PO Box 88   |   fax. 0870 063 1216
         Cambridge   |   mob. 07974 074 547
           CB4 1XH   |   www.studio24.net

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to