Thread: UPDATE Problems
View Single Post
03-11-2008, 07:00 PM
#6
VernonK is offline VernonK
VernonK's Avatar
Status: Junior Member
Join date: Jan 2007
Location: Western Maryland
Expertise:
Software:
 
Posts: 39
iTrader: 0 / 0%
 

VernonK is on a distinguished road

Send a message via MSN to VernonK

  Old

Are you getting an error of any kind? Replace...
PHP Code:
mysql_query("UPDATE `settings` SET `title` = '$title', `status` = '$status', `main_logo` = '$logo', `offline_text` = '$offline', `logo_left` = '$left_logo' WHERE 1=1") or die(mysql_error()); 
with...
PHP Code:
$s "UPDATE settings SET title = '$title', status = '$status', main_logo = '$logo', offline_text = '$offline', logo_left = '$left_logo' ";
$q mysql_query($s) or trigger_error(mysql_error()); 
Do you get any errors with the above?

Also, try echoing out your query to make sure everything looks right...
PHP Code:
<?php echo $s?>