perezf Posted May 15, 2007 Share Posted May 15, 2007 I need help, Everytime an item is placed into my MySQL table under pictures it stops my php script from loading the username from the session can someone let me know if it is MySQL database issue or php -- -------------------------------------------------------- -- -- Table structure for table `pictures` -- CREATE TABLE `pictures` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL, `type` varchar(30) NOT NULL, `size` int(11) NOT NULL, `content` mediumblob NOT NULL, `username` varchar(30) NOT NULL, `nameofhoe` varchar(30) NOT NULL, `buildofhoe` varchar(30) NOT NULL, `hobbyofhoe` varchar(30) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `username` varchar(25) NOT NULL, `password` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; Link to comment https://forums.phpfreaks.com/topic/51430-mysql-insert-error/ Share on other sites More sharing options...
perezf Posted May 15, 2007 Author Share Posted May 15, 2007 can someone let me know if this is set up correct Link to comment https://forums.phpfreaks.com/topic/51430-mysql-insert-error/#findComment-253290 Share on other sites More sharing options...
bubblegum.anarchy Posted May 15, 2007 Share Posted May 15, 2007 looks ok'ish Link to comment https://forums.phpfreaks.com/topic/51430-mysql-insert-error/#findComment-253321 Share on other sites More sharing options...
btherl Posted May 15, 2007 Share Posted May 15, 2007 perezf, can you post your script? Link to comment https://forums.phpfreaks.com/topic/51430-mysql-insert-error/#findComment-253361 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.