Hi Guys,
Quick one on an insert query if I may:
This inserts all the data into Mysql database from data entered into textboxes in a form:
$query = "INSERT INTO cms_pictures(date_uploaded,main_dir,main_name,thumb_dir,thumb_name,pic_credit,pic_caption,pic_ref,story_id) VALUES
('$date_uploaded','$main_dir','$main_name','$thumb_dir','$thumb_name','$pic_credit','$pic_caption','$pic_ref','$story_id')";
$msg = "A new picture has been added to the database - Please Click <a href=\"http://index\">Here</a> to return to the main menu";
Apart from story_id which is a hidden field that I ask my page to grab from the top of the page ie:
http://www.mysite.com/pictures/upload.php?story_id=32
INPUT TYPE="hidden" NAME="story_id" VALUE="<?php echo $_GET['story_id'];?>" />
But it does not post the value of story_id into the database?
Any ideas why?
Thanks
Chris