#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Calcutta, West Bengal, India
    Posts
    25
    Rep Power
    0
    Why dows my PHP page when connecting to a MYSQL database give the error

    "0 is not a MySQL result index in ...."

    What exactly does this error stand for and how can it be removed.
    I am very new to PHP and hence any help is appreciated.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Location
    London
    Posts
    110
    Rep Power
    0
    if you look at the whole line see below

    Warning: 0 is not a MySQL result index in /home/etc/etc/etc/index2.php3 on line 25

    it refers to you misreferencing a table, column name or db (typo whatever), the line number refers to where it is trying to pull result (mysql_fetch_array or whatever), check what sql query stmts for any typos and it should work fine for you. Basically it means it cant find anything and throws a wobbler


    ------------------
    cheers

Similar Threads

  1. Custom error message for MySQL connection
    By dbr1066 in forum PHP Development
    Replies: 6
    Last Post: February 12th, 2004, 12:25 PM
  2. Replies: 2
    Last Post: September 15th, 2003, 07:37 PM
  3. How can I start mySQL server
    By jyu1 in forum MySQL Help
    Replies: 2
    Last Post: September 5th, 2003, 12:06 PM
  4. mysql fulltext index
    By subwiz in forum MySQL Help
    Replies: 1
    Last Post: October 23rd, 2001, 03:36 AM
  5. Fixing a valid mysql result resource error
    By HanSolo2 in forum PHP Development
    Replies: 8
    Last Post: November 2nd, 2000, 10:22 AM

IMN logo majestic logo threadwatch logo seochat tools logo