Hey everyone! i am creating a form in which i want to take image as an input and save it in the database. I want to save the image name in the database and the image file in a particular folder.
How can i do it plz help me…
promo.php
[php]
Username
Enter Image
REGISTER
promotion.php
[php]
<?php include "config.php"; session_start(); $username=$_POST['uname']; $image=$_POST['image']; $insert="INSERT into promotion(username,image) VALUES('".$userno."','".$image."')"; if (mysql_query($insert)){ echo "added"; } else echo "Error"; ?>[/php]