So, I am creating a very simply uploader where I take in a file/name/description and to store to store the file to the server and name/desc/filepath. This is what my database looks like:
Basically, i take in a file, name, and description and want the file to be stored in the server. While the path/name/desc to be stored into mySQL. I also want an incrementing ID. I have a db named "test". And want to post to "test_table". The database is already created but I need to check if the table exists, if not, create it. I think I have the basics of mySQL correct below, but I need to know how to check for table/create if needed and how to set the path variable. Thanks in advance!
Also, how do I increment the ID variable in mysql with each entry? does that happen automatically or .. ?
solved