is there any way to get one specific name from a database
...for example, I have a table named user_message
and a row called the_user which keeps track of which user posted the message,
but what I want to do is compare the username of the CURRENT_userto the user that posted the message
(ie. a user already in the row the_user )
so that another user cant change the same message.
When i use this, it always returns true...no matter what value i put in for CURRENT_userPHP Code:$check_user_query = "select * from user_message where
the_user = \"CURRENT_user\"";
$check_user = mysql_query($check_user_query) or
die(mysql_error());
if(mysql_num_rows($check_user) != 0){
return "TRUE";
} else {
return "FALSE";
}
![]()
Thanks








Bookmarks