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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.