Hi,
I have installed PHP4 and I have got a problem each time I want to do a query. The connection to the server is ok, but when I wanted to select a database, I got the error message "Lost connection to MySQL server during query". What can I do to solve this problem?
Below is the script I used:
$link = mysql_connect( "localhost", $user, $pass );
if ( ! $link )
die ("<P>Couldn't connect to MySQL");
print ("<P>Successfully connected to server");
mysql_select_db( $db, $link )
or die ( "<P>Couldn't open $db: ".mysql_error() );
print ( "<P>Successfully selected database \"$db\"" );
Thanks for your help!
Patrice.