simply when i try this code in my php editor images was successfully uploaded in folder but not show image name in mysql database table.
html file code:
php file code :
please suggest where i mak a mistake in this code.
html file code:
Code:
<form action="move_fupload.php" method="post" enctype="multipart/form-data"> User File1<input type="file" name="ufile" /> <input type="submit" /> </form>
php file code :
Code:
<?php $tmp_name=$_FILES["pimg"]["tmp_name"]; $name=$_FILES["pimg"]["name"]; move_uploaded_file($tmp_name,"http://example.com/images/".$name); ?>
please suggest where i mak a mistake in this code.
Comment