Hi everyone, I am new here and new to php. I am working on a form with a image upload. I have to upload the image to the image folder and then write the image name to a mysql database. I am able to upload the image but I am unable to write the image name to the database.
PHP:
<?php include("db_connect.php");?>
<?php // select the database in which to add a table
mysql_select_db("final_exam_db",$con);
I tried it and nothing worked. I also noticed that the image no longer uploads to the images folder. One other question. When I look at the database table it seems to be skipping record rows. It only uploads to every 2nd line. Any ideas?
Bookmarks