ok, ive got this query:
[code=php]$query = “INSERT INTO `gallery` ( `location` , `name` , `caption` , `group` ) VALUES ( `$dbLocation` , `$dbFileName` , `$dbCaption` , `$dbGroup` )”;
$result = mysql_query($query) or die (‘Couldnt run query: ‘.$query.’ – Error: ‘.mysql_error());
the problem is whenever i run the query i get this error:
[QUOTE]
Couldnt run query: INSERT INTO `gallery`location`name`caption`group`/CPA Band/admin/uploaded_files/1163911098-8P.JPG`1163911098-8P.JPG`Woop!`test1
any suggestions on what could be causing this would be great, probally something simple, ive checked the spelling and even copy and pasted and that didnt work, so any suggestions would be great.