here is a function used to authenticate users against mysql database.
Problem is, I am not connecting for some reason. I have the db variables:
$db_host
$db_user
$db_pass
$db_name
They are populated from an include (x.php) in the beginning of the php
section. It is getting past the connect
31/03/2002 01:02:04, Patrick Hartnett [EMAIL PROTECTED] wrote:
You Need to use the command
Mysql_Select_Db($db_name) Or Die(Unable to connect!);
after connect with mysql
I use something like this:
mysql_connect($db_host, $db_user, $db_pass) or die (Unable to connect!);
PM
Subject: [PHP] MySQL Connection Error - mysql_select_db
here is a function used to authenticate users against mysql database.
Problem is, I am not connecting for some reason. I have the db variables:
$db_host
$db_user
$db_pass
$db_name
They are populated from an include (x.php
Thanks for all the help so far, great to have others out there helping.
Only way it will let me connect is to explicitly use the connection
information in the connect statement and the select_db statements, can't
pass in the variables.
This seems a little on the insecure side, and a pain. Is
4 matches
Mail list logo