Inserting Data Into MySql Data

0 Kumi Festus · June 19, 2014
What is the Data Type for Inserting an Image(jpg,jpeg,png,gif) into Mysql Table?

Eg

mysql_connect("localhost","root","password") or die(mysql_error());
mysql_select_db("MyDatabase") or die(mysql_error());
mysql_query("CREATE TABLE MyTable(
id int(11)NOT NULL AUTO_INCREMENT,
FirstName varchar(255)NOT NULL,
LastName varchar(255)NOT NULL,
Image ???? NOT NULL,
PRIMARY KEY(id)
)") or die(mysql_error());
mysql_close();


Thanks for your answer

Post a Reply

Replies

Oldest  Newest  Rating
  • 1

SQL & Databases

107,246 followers
About

Everything SQL and Databases related in here!

Links
Moderators
Bucky Roberts Administrator