Ive done some coding of simple CMS, and my Administration form have option to upload a jpg/jpeg picture.
If i upload picture for text what i write it should be related with that text.
So i done simple database that looks like this:
Ok! Now i write upload code and then i have:NEWS (ID(PK), title, content, contact, timestamp, picture);
Code: Select all
imagejpeg($i,"pictures/uploadedfile.jpg",80);Can i make that pic have the same number like news ID,
Or is there any different solution !?pictures/1.jpg
pictures/2.jpg
pictures/3.jpg
pictures/4.jpg
etc...
Thx