VitoCorleone
Programmer
hi,
is it possible to insert a file into my database table using the POST method in PHP. i have seen examples using the global attributes but i need to only use POST as i have an HTML form and a PHGP confirmation page which calls the previous page values to insert.
I have tried
mysql_query("INSERT INTO staff(staffno, image) VALUES ('" . $_POST['staffno'] ."','" . $_POST['image'] . "')")
or die(mysql_error());
How ever this does not work.
is it possible to insert a file into my database table using the POST method in PHP. i have seen examples using the global attributes but i need to only use POST as i have an HTML form and a PHGP confirmation page which calls the previous page values to insert.
I have tried
mysql_query("INSERT INTO staff(staffno, image) VALUES ('" . $_POST['staffno'] ."','" . $_POST['image'] . "')")
or die(mysql_error());
How ever this does not work.