Activity Stream
48,167 MEMBERS
6994 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:
    GE-Xtreme.com

    Default Help Database Error!

    I Am very interested in using vBulletin Raffles v1.0.6 Together With The AWCoding- Credit Purchase SystemWhich Cory Kindly Linked For Me.

    The Problem Is The Credit Purchase System Is Not Adding The Credit...

    I Get This Error:
    Invalid SQL:

    UPDATE ``
    SET = + 1
    WHERE = 2;

    MySQL Error : Incorrect table name ''
    Error Number : 1103
    Request Date : Thursday, May 12th 2011 @ 04:45:52 PM
    Error Date : Thursday, May 12th 2011 @ 04:45:53 PM
    Script : ge-xtreme.com/admincp/awcl_admin.php?do=transadd_update
    Referrer : ge-xtreme.com/admincp/awcl_admin.php?do=transadd&sid=cpsl


    This Is The Same Error That Others Have Using The Mod:
    http://www.vbulletin.org/forum/showp...1&postcount=12

    I Have Set The Custom 1 As Suggested ::

    Credit Purchase System -> Purchase Settings:
    Units = 1
    Custom Table = user
    Custom Field = raffletickets
    Custom User Field = userid

    I Notice That The Member @ http://www.vbulletin.org/forum/showp...1&postcount=12 Managed To Fix This By Adding The Missing Variable Calls.


    I'm Presuming The Error Is Here:

    case 1:

    $vbulletin->db->query_write("
    UPDATE `$custom_table`
    SET $custom_field = $custom_field + $units
    WHERE $custom_user_field = ".$AWCL['IN']['userid']
    );
    break;


    Could Someone Please Help Me Fix This Error.
    xandyx Reviewed by xandyx on . Help Database Error! I Am very interested in using vBulletin Raffles v1.0.6 Together With The AWCoding- Credit Purchase SystemWhich Cory Kindly Linked For Me. The Problem Is The Credit Purchase System Is Not Adding The Credit... I Get This Error: Invalid SQL: UPDATE `` SET = + 1 WHERE = 2; Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    vbulletin.org
    can i know which version of vbulletin are you using ?

  4.     
    #3
    Member
    Website's:
    GE-Xtreme.com
    Thankyou Piracy King I Am Using 4.1.3

    ...Although Its Took Me A While I Figured It Out You May Know Of A Better Way But Here Is How I Managed To Get It Working...

    For Others Who Use Both Mods Together,
    This Is The Changes I Made To product-cpsl.xml ::

    Code: 
    case 1:
                        
                            $vbulletin->db->query_write("
                                UPDATE `$custom_table` 
                                SET $custom_field = $custom_field + $units 
                                WHERE $custom_user_field = ".$AWCL['IN']['userid']
                            ); 
                        break;

    Changed To ::

    Code: 
    case 1:
                        
                            $vbulletin->db->query_write("
                                UPDATE `".TABLE_PREFIX."user`
                                SET raffletickets = raffletickets + $units 
                                WHERE userid = ".$AWCL['IN']['userid']
                            ); 
                        break;


    Further Down Changed To::

    Code: 
    case 1:
                        
                            $vbulletin->db->query_write("
                                UPDATE `".TABLE_PREFIX."user` 
                                SET raffletickets = raffletickets - $units 
                                WHERE userid = ".$payment_info['userid']
                            ); 
                        break;

    Then To Avoid The Database Error When Confirming The Transaction ::

    Credit Purchase System -> Purchase Settings:
    Units = 1
    Custom Table = vb_user (obviously Change To Your Own Prefix)
    Custom Field = raffletickets
    Custom User Field = userid


    It Is Now Running Absolutely Fine!

    Hope My Initial Uselessness Helps Others

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Database Error
    By lovelykiss87 in forum vBulletin
    Replies: 1
    Last Post: 12th Sep 2012, 08:50 PM
  2. Database error (Help please)
    By iman24 in forum Server Management
    Replies: 8
    Last Post: 27th Apr 2012, 08:03 PM
  3. Database error-mysql error
    By saini in forum vBulletin
    Replies: 8
    Last Post: 8th Nov 2011, 06:54 AM
  4. Getting Database Error
    By BounceR in forum Webmaster Discussion
    Replies: 15
    Last Post: 3rd Jul 2011, 08:09 PM
  5. Help: database Error
    By AJ Blacklisted in forum vBulletin
    Replies: 2
    Last Post: 17th May 2011, 04:20 AM

Tags for this Thread

BE SOCIAL