snowboardr
Programmer
I am trying to get my records yet only displaying 1 of each tid ID number, and this first one errors.
And the Second sql does not do anything.
---------------------------------------------------
'rsReply.Source = "SELECT rid,ruid,rtid,rfid,rposted,DISTINCT tid,tsubject,fid,ftitle FROM ureplies,utopics,uforum WHERE ruid=" & sUserID & " AND fid=rfid AND tid=rtid ORDER BY rid DESC LIMIT 10"
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-3.23.51-nt]You have an error in your SQL syntax near 'DISTINCT tid,tsubject,fid,ftitle FROM ureplies,utopics,uforum WHERE ruid=1 AND f' at line 1
/forum/profile/view.asp, line 240
---------------------------------------------------
rsReply.Source = "SELECT DISTINCT tid,tsubject,rid,ruid,rtid,rfid,rposted,fid,ftitle FROM utopics,ureplies,uforum WHERE ruid=" & sUserID & " AND fid=rfid AND tid=rtid ORDER BY rid DESC LIMIT 10"
Any ideas?
- Jason
And the Second sql does not do anything.
---------------------------------------------------
'rsReply.Source = "SELECT rid,ruid,rtid,rfid,rposted,DISTINCT tid,tsubject,fid,ftitle FROM ureplies,utopics,uforum WHERE ruid=" & sUserID & " AND fid=rfid AND tid=rtid ORDER BY rid DESC LIMIT 10"
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-3.23.51-nt]You have an error in your SQL syntax near 'DISTINCT tid,tsubject,fid,ftitle FROM ureplies,utopics,uforum WHERE ruid=1 AND f' at line 1
/forum/profile/view.asp, line 240
---------------------------------------------------
rsReply.Source = "SELECT DISTINCT tid,tsubject,rid,ruid,rtid,rfid,rposted,fid,ftitle FROM utopics,ureplies,uforum WHERE ruid=" & sUserID & " AND fid=rfid AND tid=rtid ORDER BY rid DESC LIMIT 10"
Any ideas?
- Jason