Jump to content

[mysql query] it looked good but it gives an error *solved*


tistaharahap

Recommended Posts

This is my QUERY:

[quote]
$query = "INSERT INTO tshirt (name, pricerp, priceusd, colors, sizes, desc, " .
"bthumbname, bthumbsize, bthumbpath, bthumbtype, " .
"pictname, pictsize, pictpath, picttype, " .
"sthumb1name, sthumb1size, sthumb1path, sthumb1type, " .
"sthumb2name, sthumb2size, sthumb2path, sthumb2type, " .
"sthumb3name, sthumb3size, sthumb3path, sthumb3type) VALUES " .
"('$tname', '$pricerp', '$priceusd', '$colors', '$sizes', '$desc', " .
"'$filename[1]', $filesize[1], '$filepath[1]', '$filetype[1]', " .
"'$filename[0]', $filesize[0], '$filepath[0]', '$filetype[0]', " .
"'$filename[2]', $filesize[2], '$filepath[2]', '$filetype[2]', " .
"'$filename[3]', $filesize[3], '$filepath[3]', '$filetype[3]', " .
"'$filename[4]', $filesize[4], '$filepath[4]', '$filetype[4]')";
[/quote]

After examining a few times, I can't find anything wrong. Is there anything wrong with this? MySQL keeps telling me to recheck the syntax. Please help. Pleasee...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.