#1
  1. No Profile Picture
    David W.
    Guest
    Devshed Newbie (0 - 499 posts)
    hello, what does this error indicate and how do I correct it. I am attempting to read a single form field from a php script into a mysql database

    Warning: 0 is not a MySQL link index in /test_homework.php3 on line 27

    thank you in advance
    DW
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    You are passing a link index that doesn't exist. The link index is obtained when a mysql_connect() or mysql_pconnect() is called. e.g.:

    $linkid=mysql_connect('host','user','password');

    Some mysql functions allow you to include the link index as an argument, although usually it is not required as PHP will use the currently open connection.

    HTH

Similar Threads

  1. hi newbie question forbidden error
    By pete522 in forum Apache Development
    Replies: 2
    Last Post: October 28th, 2003, 06:50 PM
  2. newbie question re: parse error
    By heliosweb in forum PHP Development
    Replies: 36
    Last Post: October 9th, 2003, 09:26 AM
  3. php newbie, needs help with link?
    By iamkeith26 in forum PHP Development
    Replies: 4
    Last Post: June 27th, 2003, 11:28 PM
  4. Newbie: localhost returns error 500 (internal server error)
    By not_that_dumb in forum Apache Development
    Replies: 2
    Last Post: July 10th, 2002, 10:50 PM
  5. Newbie parser error
    By bradclark1 in forum PHP Development
    Replies: 7
    Last Post: July 22nd, 2001, 07:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo