a1amattyj Posted May 12, 2008 Share Posted May 12, 2008 Hello, Just ran into another issue: php : $update = "UPDATE {$db_prfix}setting SET value = '1' WHERE variable = restatecost"; $result = MYSQL_QUERY($update) or die(mysql_error()); Table: CREATE TABLE `setting` ( `variable` longtext NOT NULL, `description` longtext NOT NULL, `value` longtext NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `setting` VALUES('restatecost', 'How much does a house cost?', '200000'); Error: Unknown column 'restatecost' in 'where clause' any ideas? Ta Link to comment https://forums.phpfreaks.com/topic/105283-php-update/ Share on other sites More sharing options...
BlueSkyIS Posted May 12, 2008 Share Posted May 12, 2008 $update = "UPDATE {$db_prfix}setting SET value = '1' WHERE variable = 'restatecost'"; Link to comment https://forums.phpfreaks.com/topic/105283-php-update/#findComment-539107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.