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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.