need help about uploading image to mysql

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
kyle04
New php-forum User
New php-forum User
Posts: 94
Joined: Sat Jul 07, 2012 1:36 pm

Re: need help about uploading image to mysql

Post by kyle04 » Tue Jul 17, 2012 5:32 am


Acesystech
New php-forum User
New php-forum User
Posts: 35
Joined: Mon Aug 20, 2012 10:27 pm
Location: Ernakulam
Contact:

Re: need help about uploading image to mysql

Post by Acesystech » Tue Aug 21, 2012 1:08 am

By using the input tag we can upload image to mysql.

<input type="file" name="image" id="file" />


Save the uploaded file .

$image= $_FILES['image']['name'];
$add="upload/".$_FILES['image']['name'];// upload denotes the folder name where the image to be save.
move_uploaded_file ($_FILES['image']['tmp_name'],$add);

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest