Results 1 to 3 of 3
-
8th Dec 2009, 03:40 PM #1OPMemberWebsite's:
filesharingforum.orgHow to I use this info? Help!
How do I use this info or where do I put it, what file do I edit? Help please.
This is the same error as this thread ;
http://www.vbulletin.org/forum/showthread.php?t=119719
The broken line is this one ;
PHP Code:$getnewestmember=$db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE " . TABLE_PREFIX . "userid=$numbersmembers[max]");
The table name is missing from the WHERE section after the table prefix.
i.e. TABLE_PREFIX . "userid should be TABLE_PREFIX . "user.userid
However, table prefix should not be used in WHERE clauses anyway, instead you should us an AS after the initial table selection, like this ;
:
PHP Code:$getnewestmember=$db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user AS user WHERE user.userid=$numbersmembers[max]");
Finally, since only one table is actually used in this select, the table references can be dropped completely as no ambiguity is possible.
PHP Code:$getnewestmember=$db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE userid=$numbersmembers[max]");
anti-human Reviewed by anti-human on . How to I use this info? Help! How do I use this info or where do I put it, what file do I edit? Help please. This is the same error as this thread ; http://www.vbulletin.org/forum/showthread.php?t=119719 The broken line is this one ; Rating: 5
-
8th Dec 2009, 06:13 PM #2MemberWebsite's:
mac-warez.orgthe AS clause is needed as it is how vBulletin handles queries.
-
8th Dec 2009, 06:24 PM #3OPMemberWebsite's:
filesharingforum.org
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Selling] creepy-video.info,online-stalker.info,scary-vid.info
By Porsche_maniak in forum Completed TransactionsReplies: 0Last Post: 12th May 2012, 08:46 AM -
[Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
By min123 in forum Completed TransactionsReplies: 0Last Post: 3rd Jun 2011, 07:05 PM -
[Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
By min123 in forum Completed TransactionsReplies: 1Last Post: 29th May 2011, 12:52 PM -
[Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
By min123 in forum Completed TransactionsReplies: 5Last Post: 26th May 2011, 02:18 PM -
[Shared] Onshore: DeluxeHost.info -0.60$/Mon | Offshore: OffshoreDeluxeHost.info -0.80$/Mon
By DeluxeHost.info in forum ArchiveReplies: 6Last Post: 10th Nov 2009, 06:31 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...