logixxxx Posted April 13, 2007 Share Posted April 13, 2007 This isn't working $sql = "CREATE TABLE " . $prefix . "category (TINYINT DEFAULT 0 NOT NULL)"; Link to comment https://forums.phpfreaks.com/topic/46795-not-working/ Share on other sites More sharing options...
clown[NOR] Posted April 13, 2007 Share Posted April 13, 2007 maybe this will do the trick.. (added a space between TINY & INT) $sql = "CREATE TABLE " . $prefix . "category (TINY INT DEFAULT 0 NOT NULL)"; Link to comment https://forums.phpfreaks.com/topic/46795-not-working/#findComment-228074 Share on other sites More sharing options...
logixxxx Posted April 13, 2007 Author Share Posted April 13, 2007 That's what I'm trying to do to write to my MySQL database. I'm working on an updater script, and that's all that isn't working. You shouldn't need anything else :-/ . $prefix . is hblog_ Link to comment https://forums.phpfreaks.com/topic/46795-not-working/#findComment-228075 Share on other sites More sharing options...
logixxxx Posted April 13, 2007 Author Share Posted April 13, 2007 Thanks, clown. Worked. :-) Link to comment https://forums.phpfreaks.com/topic/46795-not-working/#findComment-228078 Share on other sites More sharing options...
clown[NOR] Posted April 13, 2007 Share Posted April 13, 2007 no problem... NOTE: Remember to mark as solved Link to comment https://forums.phpfreaks.com/topic/46795-not-working/#findComment-228081 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.