Currently, I have an 'add your ad here' page, with a form.
Now, the user must select what category he will want to post an ad into...
So I have a table for each category in mysql.
Now my question, how would I make each ad unique, with an ID nr? If I have several tables, the 'auto increment' might turn out to be the same in some ads, am I right? How is this usually solved? Assigning a random nr to each ad with javascript?
Remember this: I also have a 'picture upload' file input where I must set the picture name the same as the ad id...
Thanks
UPDATE: If I put all ads in one table, wont this slow down the search of the database? Isnt there any other way to do this?