Hey all.
I've been bashing away at this one for a while and can't work out why the update isn't working. I've tried a few variations while trying to troubleshoot so this might not be the best one:
$newimage - is a directory path reference to an image
$query = "UPDATE sample_card SET sample_card_image = '".$newimage."' WHERE 'sample_card_id' = '".$sample_card_id."'";
This is the SQL that is being output:
UPDATE sample_card SET sample_card_image = '../sample_card_images/Water lilies.jpg' WHERE 'sample_card_id' = '9'
Any assistance would be greatly appreciated.