hey, i am having difficulty storing uploading my image into mysql.
the database has been set up to include a blob….
i have created a from:
[CODE]<form name=”vSignup” method=”post” enctype=”multipart/form-data” action=”processhotel.php”>
Photo:<input type=”file” name=”photo”>
<input type=”submit” name=”Submit” value=”Submit”>
this is sent to the page ‘processhotel.php’….
and this is the code i have on this page
[code=php]<?
$photo=$_POST[‘photo’];
$addmember = mysql_query(“INSERT INTO signuphotel VALUES (”,’$photo’)”);
?>
Essentially, i am attempting to keep the code as easy as possible. but at the moment, the database is storing it only as 0-kb, even though i did attempt to upload a photo.
the other details are being submitted fine into the database.
any help would be greatly appreciated.