I construct this user authenticate:
if (!($result = mysql_query("$db", "select * from user_profile where user_id ='$form_user_id'")))
{
DisplayErrMsg(sprintf("internal error %d:%s\n", mysql_errno(), mysql_error()));
return 0;
}
if (($row = mysql_fetch_array($result)) && ($form_password == $row ["password"] && $form_password != ""))
return 1;
else
return 0;
and in the brower display this:
Warning: Supplied argument is not a valid MySQL-Link resource in E:\Projectos\secla\backoffice\functions.php on line 26
internal error 0:
Help me please !!!! i don't know how argument is not valid.