hi,all i have been working on my script and my edit page page doesnt seem to work i change the name of the pcontent and it doesnt seem to work
[CODE]
<?php
if($_POST[‘update’])
{
$PName=trim($_POST[‘PName’]);
$PTitle=trim($_POST[‘PTitle’]);
$PDesc=trim($_POST[‘PDesc’]);
$PKey=trim($_POST[‘PKey’]);
$PContent=trim($_POST[‘Pcontent’]);
$PSTATUS=trim($_POST[‘PSTATUS’]);
if($PName)
{
$PNameErr=”Please Enter a Page Name”;
}
else if($PDesc)
{
$PDescErr=”Please Enter a Page Description”;
}
else if($PKey)
{
$PKeyError=”Please Enter some keywords for this Page”;
}
else if($Pcontent)
{
$PContentErr=”Please Enter in Some Page Content”;
}
else if($PSTATUS)
{
$PSTATUSErr=”Please Choose to publish or unpublish this page”;
}
else
{
$pQuery=”UPDATE pages SET PName=’$PName’,PTitle=’$PTitle’,PDesc=’$PDesc’,PKey=’$PKey’,Pcontent=’$Pcontent’,
PSTATUS=’$PSTATUS’ WHERE PID=$PID”;
$rs=$con->query($pQuery);
if(!$rs)
{
echo “Error:”.mysqli_error();
}
else
{
echo “Page Sucessfully Updated”;
}
}
/*$s2Query=”UPDATE sengine SET PName=’$PName’,PTitle=’$PTitle’,PDesc=’$PDesc’,PKey=’$PKey’,Pcontent=’$Pcontent’,
PSTATUS=’$PSTATUS’ WHERE PID=$PID”;
$rs=$con->query($s2Query);
if(!$rs)
{
echo “ERROR:”.mysqli_error();
}
else
{
echo “<br/>Search Engine System Updated Sucessfully”;*/
}?>