Photo Gallery Coming Soon
$pageID = htmlspecialchars($_REQUEST['pageID']); $oConn = mysql_connect("174.121.3.221","user_ironhorse","WackoJocko8"); mysql_select_db("client_ironhorse") or die("database not found.");if($oConn) { //Update content if(isset($_POST["txtContent"])) { $sTitle=stripslashes($_POST["inpTitle"]);//remove slashes (/) $sTitle=ereg_replace("'","''",$sTitle);//fix SQL $sContent=stripslashes($_POST['txtContent']);//remove slashes (/) $sContent=ereg_replace("'","''",$sContent);//fix SQL $sSQL="Update content set content='$sContent', title='$sTitle' where id=$pageID"; mysql_query($sSQL,$oConn); } //Load content $sSQL="Select title,content From content where id=$pageID"; $oResult=mysql_query($sSQL,$oConn); if($oResult) { $sTitle=mysql_result($oResult,0,"title"); $sContent=mysql_result($oResult,0,"content"); } } mysql_close($oConn); ?>