hi i am trying to run an update command but it keeps failing
its keeps showing error update failedCode:<?php $updatetext = $HTTP_POST_VARS['welcomeinfo']; $conn=@mysql_connect("localhost", "ckids_ckids1", "christiankids") or die("MYSQL Connection Error"); $rs = @mysql_select_db("ckids_wcms1", $conn) or die("Database Error"); $sql = "UPDATE `hompage` SET `welcome` = '$updatetext' WHERE `id` = 1 LIMIT 1"; mysql_query($sql) or die("Error: Update Failed"); echo "Updated"; ?>
i have tried many things and cant get it to work, i know that $updatetext contains a value as i have echoed this in trying to fix it




Reply With Quote