dagger2002
Programmer
I am running a data drivin site and am writing the update portion. My add new meetings part works, now i need to b able to edit the records. It works to show the record and to edit info but it won't write to the database. If I take the query that the code creates and drop it in to phpMyAdmin it works and updates the database. any ideas?
Replace code:
database:
Replace code:
Code:
REPLACE INTO meetings SET mtg_id="5", date="2005-01-01", type="M", text="Fried Green Tomatoes751", include="1"
database:
Code:
CREATE TABLE `meetings` (
`mtg_id` int(4) NOT NULL auto_increment,
`date` date NOT NULL default '0000-00-00',
`type` char(1) NOT NULL default '',
`text` text NOT NULL,
`include` smallint(1) NOT NULL default '1',
PRIMARY KEY (`mtg_id`)
) TYPE=MyISAM AUTO_INCREMENT=8 ;
--
-- Dumping data for table `meetings`
--
INSERT INTO `meetings` VALUES (5, '2005-01-01', 'M', 'Fried Green Tomatoes751', 1);
INSERT INTO `meetings` VALUES (4, '2005-01-01', 'M', 'David123', 0);
INSERT INTO `meetings` VALUES (6, '0000-00-00', 'A', '50550500505464657894131498641564589784567964216746546465\r\n56465467895645796456467987613464646446465465498798464998', 1);
INSERT INTO `meetings` VALUES (7, '0000-00-00', 'A', 'Frankfooter\r\n', 1);