Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 09-04-07   #1 (permalink)
Programmer
 
LyokoHaCk's Avatar
 
amd nvidia

Join Date: Aug 2006
Location: United States Inc.
Posts: 2,066

Rep: 76 LyokoHaCk is acknowledged by some
Unique Rep: 71
FAQs Submitted: 1
Folding Team Rank: 2138
Trader Rating: 3
Default [vBScript+ADO(MySQL)] What is wrong with my syntax

vBScript is not used for web coding
It is a side script from a program.
GetNameByPosition(3) is an array variable (41).

Code:
Conn.execute ("UPDATE data SET name='" & GetNameByPosition(3) & "' WHERE id='2' ")
Error:
Code:
 [4:59:39 PM] UserJoins Call Error On File> C:\Program Files\StealthBot\plugins\sql.txt
 [4:59:39 PM] Error Number: 13   Description: Type mismatch
LyokoHaCk is offline I fold for Overclock.net   Reply With Quote
Old 09-07-07   #2 (permalink)
Programmer
 
intel nvidia

Join Date: Jul 2006
Posts: 194

Rep: 11 mjoc13 Unknown
Unique Rep: 10
Trader Rating: 5
Default

the syntax is incorrect for the variable in the table

example:
update table set name = 'Joe' where id = 2

your id field is probably an integer not a varchar
__________________
Relax and enjoy life!

System: My System
CPU
C2D e6400
Motherboard
eVga 680i - T1
Memory
2x1GB Gskill HZ
Graphics Card
eVga 8800 gts sc 320
Hard Drive
wd 320 sataII, WD 250 PATA
Sound Card
OB
Power Supply
Corsair HX620W
Case
Coolmaster Elite
OS
Win XP pro sp2
Monitor
Sammy 19 ws LCD
mjoc13 is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -4. The time now is 03:44 AM.


Overclock.net is a Carbon Neutral Site Creative Commons License Internet Security By ControlScan

Terms of Service / Forum Rules | Privacy Policy | Advertising | Become an Official Vendor
Copyright © 2008 Shogun Interactive Development. Most rights reserved.
Page generated in 0.26574 seconds with 8 queries