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.

10th Sep 2018, 12:39 PM
Joshua Otonte Bamson
Joshua Otonte Bamson - avatar
6 Respuestas
+ 4
It might be in your PDO syntax.
10th Sep 2018, 4:05 PM
Email Not Activated
+ 3
The data type of the image should be BLOB in order to accept image type datas.
10th Sep 2018, 2:25 PM
Email Not Activated
+ 1
Joshua Otonte Bamson Sorry I can't help you this time because I only knew mysqli and not PDO. :(
10th Sep 2018, 5:12 PM
Email Not Activated
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.
10th Sep 2018, 4:03 PM
Joshua Otonte Bamson
Joshua Otonte Bamson - avatar
0
ok so what do you suggest
10th Sep 2018, 4:11 PM
Joshua Otonte Bamson
Joshua Otonte Bamson - avatar
0
ok give me your code for sqli i will convert it to PDO
10th Sep 2018, 8:23 PM
Joshua Otonte Bamson
Joshua Otonte Bamson - avatar