Angelica Jolly Posted May 16, 2009 Share Posted May 16, 2009 HI, i am creating a table in php server, i am getting errors for my image this is wat my code looks like create table houses { id........ type....... price...... image NOT NULL default 'unknown' } because i havent included a data type like char after - is that why i am getting an error, if so what data type should it be. thanks for any help in advance Link to comment https://forums.phpfreaks.com/topic/158358-php-mysql-question-about-how-you-put-an-image-into-a-table/ Share on other sites More sharing options...
avvllvva Posted May 16, 2009 Share Posted May 16, 2009 You can use datatype either VARCHAR or TEXT Link to comment https://forums.phpfreaks.com/topic/158358-php-mysql-question-about-how-you-put-an-image-into-a-table/#findComment-835213 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.