Jump to content

[SOLVED] mysql help


jeppers

Recommended Posts

<?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());

Link to comment
https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385275
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/76123-solved-mysql-help/#findComment-385953
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.