I got some questions about MySQL
- When inserting data to a table, I often see this is done in two diffrent:
- telleing what fields that is going to uses... like INSERT INTO tablename (field1, field2...) VALUES ('ha', 'ho'...)
- but some tutorials is just inserting without defining the fields, eg. INSET INTO tablename VALUES('ha', 'ho'...)
What's the diffrence?
- I have a picture upload script, where I store the link to the picture in a mysql table... the problem is that I need to name the picture with the same name as the id field (that is auto_increment).
I don't got a clue on this one... since the link must contain the name of the picture - and I have to name the picture the same as the id field... who do I do this?
It would be ok if the picture would be renamed... it's just important to notis that there may be many uploads at the same time - so that the pictures don't det mixed up!
Need all the help I can get!
Thanks!