Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/path/join.php on line 9

Not at all sure what this is. Line 9 =
$row_count = mysql_num_rows($ExecuteQuery);

Warning: Wrong parameter count for ereg() in /home/path/join.php on line 11 password verified

Warning: fopen(/home/path/users/.htpasswd): failed to open stream: Permission denied in /home/path/open.php on line 5

Warning: flock(): supplied argument is not a valid stream resource in /home/path/open.php on line 7

Warning: fwrite(): supplied argument is not a valid stream resource in /home/path/open.php on line 11

Warning: flock(): supplied argument is not a valid stream resource in /home/path/open.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/path/open.php on line 17

Obviously it cannot fopen my htpasswd file ... why I'm not sure.
ereg() I got here a few weeks ago
ereg("[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+)*@[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+")

Any clues? ideas? help?

TIA
lilRachie

    Originally posted by lilRachie
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/path/join.php on line 9



    theres a problem with $ExecuteQuery - run

    print mysql_error();

    Warning: Wrong parameter count for ereg() in /home/path/join.php on line 11

    i suppose a parameter comes from the database and cant be retrieved due to the error in $ExecuteQuery - so its a wrong parameter count

    password verified

    ??? i suppose you echo that out?

    Warning: fopen(/home/path/users/.htpasswd): failed to open stream: Permission denied in /home/path/open.php on line 5

    www.php.net/fopen

    all subsequent errors are because you coudnt open the file... how about

    if (fopen(...)) {
    //here all the other file ops
    }
    

    Warning: flock(): supplied argument is not a valid stream resource in /home/path/open.php on line 7

    www.php.net/flock

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/path/open.php on line 11

    www.php.net/fwrite

    Warning: flock(): supplied argument is not a valid stream resource in /home/path/open.php on line 14

    www.php.net/flock

    Warning: fclose(): supplied argument is not a valid stream resource in /home/path/open.php on line 17

    www.php.net/fclose

    Obviously it cannot fopen my htpasswd file ... why I'm not sure.
    ereg() I got here a few weeks ago
    ereg("[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+)*@[A-Za-z0-9-]+([.]{1}[A-Za-z0-9-]+")

    www.regexlib.com

    Any clues? ideas? help?
    

    yeah, please mark whats code and whats not and check the docu first.

      print mysql_error();

      I put that and got

      You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''tablename' WHERE email ='testemail@url.com'' at line 1

      😕
      lilRachie

        Write a Reply...