ok, yes, the errors do work. If I leave it blank, it does show the error. As for the foreach($errors) part, where do I put that??
added the code you gave me, uploading now................. still doesn't work, but I'll keep it there anyway.
*Chris Boulton suggested
code:
mysql_query("INSERT INTO download_items (catid,mplink,name,dllink,desc,rate,type,pic) VALUES ('$catid','$mplink','$name','$dllink','$desc','$rate','$type,'$pic')") or die(mysql_error());
Im gonna try that now.*
A-ha, now we have somethign to work on....... *Thank Chris*
quote:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc,rate,type,pic) VALUES ('2','test','test','test','test','',