Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on Some error with my site. in the Shared & Semi-Dedicated forum
www.mindelude.com In the main page, I'm getting errors. PHP Code: Warning :  mysql_fetch_array ():  supplied argument is not a valid MySQL result resource in  / home / jflashin / public_html / index . php on line 30  ...

  1. #1
    JPC Member
    Join Date
    Sep 2005
    Posts
    20

    Some error with my site.

    www.mindelude.com
    In the main page, I'm getting errors.

    PHP Code:
    Warningmysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/jflashin/public_html/index.php on line 30 
    anyone know what the problem is?

    Thanks in advance.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Without seeing your code, it is hard to say for sure, but the most likely reason for the message an error in your SQL syntax somewhere. The fastest way to track MySQL errors is to use mysql_error() to get a description of the error. This is commonly done using code as follows:

    PHP Code:
    mysql_*(args) OR die(mysql_error()); 
    Try locating the mysql_query() call in your code. It'll look something like
    PHP Code:
    $result mysql_query("SELECT * FROM ..."); 
    and try adding the die(mysql_error()) code after it. Tyen see if you get any additional information about the problem.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Darth Admin (aka Jag) JPC-Greg's Avatar
    Join Date
    Sep 1998
    Posts
    5,201
    Your probably either request a field that doesnt exists in table or requesting a table that doesnt exists. Usually that accounts for most of those types of errors.

    Doing what jason suggested will tell you exactly what it is though.
    Greg L. | Chief Executive Officer
    JaguarPC.com

    Helpful Links
    Knowledge Base | Network Status

    Need a Manager?
    (pm) | (email) David, Customer Service Manager
    (pm) | (email) Zach, Community Liason, Sales manager
    (pm) | (email) Masood, Chief Technical Officer
    (pm) | (email) Les, Chief Operations Officer

Bookmarks

Posting Permissions

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