Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with db connection
05-06-2016, 10:44 AM
Post: #1
help with db connection
guys i need your help kindly fill this with demo details, i can understadn how to put db details,
<?


// авторизация на сервере базы
if(!($[email protected]_connect($set['mysql_host'], $set['mysql_user'],$set['mysql_pass'])))

{
//echo $set['mysql_host'], $set['mysql_user'],$set['mysql_pass'];
echo "No connection to the database server<br />*Check the connection settings";
exit;
}

// подключение к базе
if ([email protected]_select_db($set['mysql_db_name'],$db))
{
echo "Database not found<br />*Check the database";
exit;
}

mysql_query('set charset utf8',$db);
mysql_query('SET names utf8',$db);
mysql_query('set character_set_client="utf8"',$db);
mysql_query('set character_set_connection="utf8"',$db);
mysql_query('set character_set_result="utf8"',$db);

?>
Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)