DeathByTray
New Member
- Joined
- Dec 21, 2009
- Messages
- 63 (0.01/day)
System Name | Dustbuster |
---|---|
Processor | AMD Phenom II X4 "Deneb C3" 955 Black, 4x 3.2GHz |
Motherboard | GIGABYTE GA-770TA-UD3 |
Cooling | COOLERMASTER Hyper 212 Plus |
Memory | Kingston Technology DDR3 4GB 1333MHZ |
Video Card(s) | SAPPHIRE HD 5850 1GB GDDR5 |
Storage | WESTERN DIGITAL Caviar Black 2.0TB |
Display(s) | SAMSUNG SyncMaster P2450 24" TFT LCD |
Case | BITFENIX Survivor Core |
Audio Device(s) | OnBoard |
Power Supply | ARCTIC COOLING Fusion 550R |
Software | 7 |
I got stuck and can't figure out why.
Any idea?
I first thought it was due to missing backticks in $gpuprize, added them and still not working.
PHP:
$gpu = "a5970,a5870,a5850,a5830,a5770,a5750,a5670,a480,a470,";
$gpuprize = "'699','389','289','229','134','119','79','499','349',";
$stuffit = "INSERT INTO price (".$gpu." date) VALUES ('".$gpuprize."'CURDATE())";
mysql_query($stuffit) or die(mysql_error());
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '699','389','289','229','134','119','79','499','349','CURDATE())' at line 1
Any idea?
I first thought it was due to missing backticks in $gpuprize, added them and still not working.