Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    error "mysql_fetch_array(): supplied argument is not a valid"

    At my web site http://www.moneybux.biz I have code that for some reason isn't co-operating. This is the code that is having the issue:

    $row = mysql_fetch_array($result);

    When you go to my site, you can see the error messages and my admin.php doesn't show up either..Any ideas to help me out people.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by moneybux View Post
    At my web site http://www.moneybux.biz I have code that for some reason isn't co-operating. This is the code that is having the issue:

    $row = mysql_fetch_array($result);

    When you go to my site, you can see the error messages and my admin.php doesn't show up either..Any ideas to help me out people.
    first of all use a more descriptive title for your problem if you want to be helped
    second, this is a php problem, why did you post it on "general web building" forum

    about your problem, post the content of index.php, but please use [ code] and [ /code] tags, is more readeable

    PS: I guess the thread could be moved to the php forum

    best regards

  • #3
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by oesxyl View Post
    first of all use a more descriptive title for your problem if you want to be helped
    second, this is a php problem, why did you post it on "general web building" forum

    about your problem, post the content of index.php, but please use [ code] and [ /code] tags, is more readeable

    PS: I guess the thread could be moved to the php forum

    best regards
    Take it easy, i am new

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by moneybux View Post
    Take it easy, i am new
    don't warry, I'm verrrrrrry ..... nice,

    best regards

  • #5
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,044
    Thanks
    2
    Thanked 316 Times in 308 Posts
    The error is because your query failed, but your code has absolutely no error checking logic to get it to tell you why it failed. The example in the php manual shows how to use error checking and error reporting logic to get php/mysql to tell you why any query failed - http://php.net/mysql_query
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.


  •  

    Posting Permissions

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