
March 8th, 2000, 12:42 AM
|
|
Contributing User
|
|
Join Date: Mar 2000
Location: Hong Kong
Posts: 73
Time spent in forums: 6 h 31 m 9 sec
Reputation Power: 14
|
|
|
$link = mysql_pconnect ($DB_SERVER, $DB_LOGIN, $DB_PASSWORD);
$selectStmt = "SELECT * FROM user_profile WHERE userid = 'david'";
if (!($result = mysql_db_query($DB, $selectStmt, $link))){
header("Location:http://$HTTP_HOST/$DOCROOT/error.html");
exit();
}
here is the case, the userid 'David' is NOT
in the table 'user_profile', the program should launch the error.html, and exit().
But it is not.
AHHH....what is wrong in my codes here.
pls help
|