'SELECT' error on database?

Discussion in 'MySQL' started by crumblepie, May 1, 2008.

  1. #1
    Hi all..

    Lately I've been getting a lot of e-mails about errors on my directory's database. I am displayed this:

    SELECT FAILED ON: SELECT link_id, link_url, link_title FROM tbl_links
    WHERE link_url = ""


    Anyone knows what might be the problem?
     
    crumblepie, May 1, 2008 IP
  2. apmsolutions

    apmsolutions Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does it display the error?

    Have you tried using single quotes instead of double?

    What database are you using?
     
    apmsolutions, May 1, 2008 IP
  3. crumblepie

    crumblepie Well-Known Member

    Messages:
    2,612
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    160
    #3
    I'm using sql. It doesn't display the error but whenever someone tries to place a bid on my directory, I get an e-mail sent to me with the above message.

    Is it showing this error because it can't find the table?

    I don't think this error is related to quotes...
     
    crumblepie, May 1, 2008 IP
  4. apmsolutions

    apmsolutions Peon

    Messages:
    66
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you mean mySQL? Or SQL Server?

    It's difficult to know what the problem is without knowing what kind of error you are getting. You sql statement looks fine. Make sure your table exists as well as all of the columns.
     
    apmsolutions, May 1, 2008 IP
  5. Tom Thumb

    Tom Thumb Notable Member

    Messages:
    1,529
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    215
    #5
    I agree , statement looks fine.. Give us more on the error
     
    Tom Thumb, May 1, 2008 IP
  6. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #6
    If you are using MySQL and PHP, use mysql_error() to get the error message. It is nearly impossible to guess that what could be the error.
     
    mwasif, May 2, 2008 IP