Query Issue In Server

Discussion in 'MySQL' started by suganya, Dec 12, 2008.

  1. #1
    Hi,

    I used the below query in my localhost, where it gave me everything correctly without any issues, but when i see it after uploading my files in my site, it gives me an error..

    The error is


    If i run the above query in my phpmyadmin also, i am getting error as:


    Everything works fine in my localhost. How to resolve this issue?

    Regards,
    Suganya
     
    suganya, Dec 12, 2008 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    give it a try like this

    $s = mysql_query("select c.name,b.short,a.date, a.link_lid, a.dir_id, a.status, c.linkadd from link as b left join dir as c, submit as a
    on a.link_lid='b.lid' and a.dir_id='c.id' where c.type='$dir' && b.site='$site' order by stat desc", $link);

    if wont work,
    try and add extra quotas everywhere you think they must be, because that's the issue from error
     
    crivion, Dec 13, 2008 IP