Jump to content

php UPDATE


a1amattyj

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.