I know this one gets asked a lot but after reading about 5 topics about this I still can't figure out what i have to do.
Can anyone help me change this script so it will upload images, then tell if there is a specific way to display them or is it just in an img tage like this?
<? $username="user"; $password="pass"; $database="db"; $tut_name=$_POST['tut_name']; $tut_link=$_POST['tut_link']; $tut_program=$_POST['tut_program']; $tut_category=$_POST['tut_category']; $tut_video=$_POST['tut_video']; $tut_download=$_POST['tut_download']; $tut_image=$_POST['tut_image']; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "INSERT INTO tutorials VALUES ('','$tut_name','$tut_link','$tut_program','$tut_category','$tut_video','$tut_download','$tut_image')"; mysql_query($query); mysql_close(); ?>
also do i need to change anything in my upload form, and should I use blob or longtext (i think thats it?) because ive seen some people use blob and some use the other whats the difference or are they the same? i'm currently using blob.
If anyone can help thanks.