Hi All,
Im a bit stuck and looking for help.
My situation. I have a MySQL database that a user can register and log in to. Whilst registering the user may require to upload a file, mainly an image.
I am desperate need to find out how to write a script that will allow the user to upload a picture and store it within the database in a field belonging to that user. I dont want to actually display the picture, just to display the file name as an attached file.
For example:
I have a table called users. Within this table I have 3 fields. Field 1: user_id, field 2: user_name, field 3: file.
I have 1 user. user_id = joe, user_name = joe bloggs, file = .....
I want the picture to be uploaded and stored as the file name within that field. Can anyone please help as I am getting desperate and I dont think I can handle another sleepless night!!!
Knobby 😕