Re: query problem in php
Warning: mysql_db_query(): supplied argument is not a valid MySQL result resource....
why i get this error?
somebody help me please...
thanks...
<? session_start();
if (isset($HTTP_POST_VARS['bio_notentera']) && isset($HTTP_POST_VARS['bio_pass']))
{
// if the user has just tried to log on
$bio_notentera = $HTTP_POST_VARS['bio_notentera'];
$bio_pass = $HTTP_POST_VARS['bio_pass'];
include 'dbase.php';
$query = "SELECT * FROM biodata
WHERE bio_notentera = '$bio_notentera'
AND bio_pass = '$bio_pass'
";
$result = mysql_db_query($db,$query);
if ( mysql_num_rows($result) > 0 ) <--- (((this problem)))
{
// if they are in the database register the user id
$HTTP_SESSION_VARS['valid_admin'] = $bio_notentera;
}
if ( isset($HTTP_SESSION_VARS['valid_admin']))
{
echo "<script language='Javascript'>
location.href='maklumat_diri4.php?bio_notentera=$bio_notentera';
</script>";
}
}
?>
Subject
Written By
Posted
Re: query problem in php
December 21, 2005 03:25AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.