Activity Stream
48,167 MEMBERS
6938 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member
    Website's:
    filesharingforum.org

    Default 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 ;



    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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    mac-warez.org
    the AS clause is needed as it is how vBulletin handles queries.

  4.     
    #3
    Member
    Website's:
    filesharingforum.org
    Quote Originally Posted by Affix View Post
    the AS clause is needed as it is how vBulletin handles queries.
    Okay but what file do i edit? where do i add it?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Selling] creepy-video.info,online-stalker.info,scary-vid.info
    By Porsche_maniak in forum Completed Transactions
    Replies: 0
    Last Post: 12th May 2012, 08:46 AM
  2. [Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
    By min123 in forum Completed Transactions
    Replies: 0
    Last Post: 3rd Jun 2011, 07:05 PM
  3. [Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
    By min123 in forum Completed Transactions
    Replies: 1
    Last Post: 29th May 2011, 12:52 PM
  4. [Selling] TwitterMoney.info, TopBetting.info, Watch-Shows.info (domains)
    By min123 in forum Completed Transactions
    Replies: 5
    Last Post: 26th May 2011, 02:18 PM
  5. Replies: 6
    Last Post: 10th Nov 2009, 06:31 PM

Tags for this Thread

BE SOCIAL