I'm working on a website for an engineering class where many projects are created. I'm not too good with PHP and MySQL, so I got a book and I'm learning.
I have a form that has "Project Name", "Project Summary", and "Project Thumbnail", which opens a file browser.
My database has a table called "projects", and it has those 3 fields. I post the form, but what should I be doing to get the variables into the database? Is this the correct way to insert them?
$insert="INSERT INTO projects (name,summary,thumbnail) VALUES ('$_POST[name]','$_POST[summary]','$_POST[thumbnail]')";
If so, how can I also get that file and upload it to projects/images? Then finally, how would I be able to display it?
Thanks, Matt