Results 1 to 3 of 3
-
12th May 2011, 06:08 PM #1OPMemberWebsite's:
GE-Xtreme.comHelp 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
-
12th May 2011, 09:06 PM #2MemberWebsite's:
vbulletin.orgcan i know which version of vbulletin are you using ?
-
12th May 2011, 10:50 PM #3OPMemberWebsite's:
GE-Xtreme.comThankyou 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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Database Error
By lovelykiss87 in forum vBulletinReplies: 1Last Post: 12th Sep 2012, 08:50 PM -
Database error (Help please)
By iman24 in forum Server ManagementReplies: 8Last Post: 27th Apr 2012, 08:03 PM -
Database error-mysql error
By saini in forum vBulletinReplies: 8Last Post: 8th Nov 2011, 06:54 AM -
Getting Database Error
By BounceR in forum Webmaster DiscussionReplies: 15Last Post: 3rd Jul 2011, 08:09 PM -
Help: database Error
By AJ Blacklisted in forum vBulletinReplies: 2Last Post: 17th May 2011, 04:20 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...