Find the answer to your Linux question:
Results 1 to 3 of 3
Well i get this error: Code: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/process.php on line 19 In a PHP script that did work on ...
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422

    mysql_num_rows()

    Well i get this error:
    Code:
    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/localhost/htdocs/process.php on line 19
    In a PHP script that did work on XAMPP (Portable Apache, MySQL, PHP, Perl) for Windows.
    Now I exported the database to this Linux Box (Gentoo) and I get that error.
    I did emerge with the mysql USEflag.

    I did google for this.
    But all I found were other people with this problem..:
    MySQL AB :: Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

    So, does anyone here know?
    Cheers,
    Robin


    edit:
    I noticed a lot of other stuff doesn't work either :/
    Like I cant Parse Session Vars?
    Whats the deal?
    New Users, please read this..
    Google first, then ask..

  2. #2
    Just Joined!
    Join Date
    Mar 2006
    Posts
    13
    Can you paste your php.ini settings and the PHP script

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    Nope. Since.. its fixed -.-' it had something to do with a gentoo portage bug.

    Thanks anyhow
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...