jeppers Posted November 5, 2007 Share Posted November 5, 2007 i just can't get it to work can u help. when i try to connect to my database i get this message Lost connection to MySQL server during query is there anything that you can think of i am so peed off Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 5, 2007 Share Posted November 5, 2007 show your code Quote Link to comment Share on other sites More sharing options...
jeppers Posted November 5, 2007 Author Share Posted November 5, 2007 <?php # mysql_connect // this file contains the database access infomation // this file also esablishes a connection to mysql and selects the database // this file alse defines the escape data //set the database access infomation as constants DEFINE ('DB_USER', 'xxx'); DEFINE ('DB_PASSWORD', 'xxx'); DEFINE ('DB_HOST', 'xxx'); DEFINE ('DB_NAME', 'xxx'); // make the connection $dbc = @mysql_connect (xxx, xxx, xxx) OR die ('could not connect to mysql: ' .mysql_error()); // just seems not to get back this point //select the db @mysql_select_db(DB_NAME) OR die ('Could not select the database: ' . mysql_error()); Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 6, 2007 Share Posted November 6, 2007 remove the @ and see what will be the error message? Quote Link to comment Share on other sites More sharing options...
jeppers Posted November 6, 2007 Author Share Posted November 6, 2007 well now i have removed the @ this is the message Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /misc/13/000/126/295/2/user/web/jeppers90.com/includes/mysql_connect.php on line 14 could not connect to mysql: Lost connection to MySQL server during query could it be the server. or i just don't get it can you help Quote Link to comment Share on other sites More sharing options...
trq Posted November 6, 2007 Share Posted November 6, 2007 Sounds like a server issue to me. Quote Link to comment Share on other sites More sharing options...
jeppers Posted November 6, 2007 Author Share Posted November 6, 2007 sorted it but think i might have another problem so i will keep you informed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.