Jump to content
Sign in to follow this  
sugan

Query Issue In Server

Recommended Posts

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..

$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);while ($row = mysql_fetch_array($s, MYSQL_BOTH)) {
The error is
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/..... on line 115
If i run the above query in my phpmyadmin also, i am getting error as:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' submit as a on a.link_lid=b.lid and a.dir_id=c.id
Everything works fine in my localhost. How to resolve this issue?Regards,Suganya

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...