0
Trying to Save Image
Good day all I am new to web development, I am trying to store images in my sql database using php pdo library but In a form with other information like name but it seems not work. Sample code would be appreciated.
6 Respostas
+ 4
It might be in your PDO syntax.
+ 3
The data type of the image should be BLOB in order to accept image type datas.
+ 1
Joshua Otonte Bamson Sorry I can't help you this time because I only knew mysqli and not PDO. :(
0
I know but but the form contains other input data types and when i submit no data entres the database.
but when done separately it entres the database.
i think its my code so i need a sample code for a form with name, dob, phone no, profile pic and documents data types.
0
ok so what do you suggest
0
ok give me your code for sqli i will convert it to PDO