I've written this login rutine

But that doesn't work... I've tried to use mysql_num_rows too but I still
get :
<b>Warning</b>:  Supplied argument is not a valid MySQL result resource in
<b>g://web/herkild/html/loginout.php</b> on line <b>113</b><br>

if ($ACTION == 'Login') {
      $query = "SELECT user.ID FROM user WHERE ";
      $query .= "user.brugerID = $LoginBrugerID AND ";
      $query .= "user.kodeord = $LoginKodeord;";

      $mysql_result = mysql_query($query, $mysql_link);

(line 113 >>)      if ($row = mysql_fetch_row($mysql_result)){
        setcookie("Herkild_Domain", $row[0]);
      else {

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to