Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    40

    Unanswered: MySql Error in PHP script

    I am having an error msg when i try to access values in a database with the following commands :
    mysql_fetch_array , mysql_fetch_object , mysql_fetch_row

    An example of false message is :

    mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
    XXXXX/test.php

    What is wrong ? Any ideas?

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    that error message would suggets to me that you haven't opened your connection, or it has an erro

    without seeing the code block that maintains your connection then its har to say

    are you sure you have opened the connection properly, with the correct user id and password to the correct database

    are you trapping the error(s) appropriately eg using the or die construct
    HTH
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Nov 2005
    Posts
    40
    It was my mistake , i was trying to have double access to my db.
    Thanx for your time anyway ...

Posting Permissions

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