#1
  1. No Profile Picture
    Gianni
    Guest
    Devshed Newbie (0 - 499 posts)
    I saw this topic somewhere but cannot remeber where and what the solution was

    can anyone help

    thanks
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    mysql_(p)connect return a 0 if it was unable to connect to mysql. If you are getting that error you were unable to connect or when referring to the link you used the wrong variable.

    Try this:

    $linkid=mysql_connect(blah,blah,blah);
    if (!$linkid)
    {
    print mysql_error();
    exit;
    }

    This will tell you what error the function encountered when it tried to connect.

Similar Threads

  1. Help with Java Script
    By AShain in forum HTML Programming
    Replies: 1
    Last Post: February 17th, 2004, 05:29 AM
  2. Problem: Displaying image link inside table from MySQL
    By Shadowz in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 02:37 AM
  3. PHP + MySQL query to make a link
    By emp/ir:kal in forum PHP Development
    Replies: 6
    Last Post: January 22nd, 2004, 01:10 PM
  4. Need help on inserting link from mysql
    By Lady_Minx in forum PHP Development
    Replies: 4
    Last Post: January 14th, 2004, 02:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo