In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Hello All,
I am struggling to understand why my query throws an error the code as below
$link = mysql_connect ( db.localhost.org, $user , $pass );
if ( ! $link )
die ( Couldn't Connect to Mysql Server );
print Sucessfully connect
I ran into the same problem on a script yesterday.. It turns out that one of
the vars in my mysql_connect() command wasn't assigned.. It gave me no
indication of this so I hadn't thought to look there.. I just happened to be
reading back through the whole page to see what I could find and noticed
$link = mysql_connect ( db.localhost.org, $user , $pass ) or die (
Couldn't Connect to Mysql Server );
$db = mysql_select_db( $dbname, $link );
$query = SELECT * FROM users WHERE screen_name = '$screen_name' AND ...
That should work..
Bob
Luke Kearney [EMAIL PROTECTED] wrote in message
[EMAIL