hi,
my update query is not working in script but when i print this query and directly run in Cpanel then it work confuse me so much ..
script is
<?
print"UPDATE DST_wrapers SET wrapName='$wrapName', wrapPrice=$wrapPrice WHERE catId=$catName AND wrapId='$wrapId'" ;
$res=mysql_query("UPDATE DST_wrapers SET wrapName='$wrapName', wrapPrice=$wrapPrice WHERE catId=$catName AND wrapId='$wrapId'") or die( "Cannot update wrapers" );
?>
the print result i get is
UPDATE DST_wrapers SET wrapName='TestName5', wrapPrice=25 WHERE catId=3 AND wrapId='Testnumber'Cannot update wrapimage
so when i run this script directly in CPanel it work nice
UPDATE DST_wrapers SET wrapName='TestName5', wrapPrice=25 WHERE catId=3 AND wrapId='Testnumber'
why it not run in script..?
more here before this script i also run another script it is..
<?
$res = mysql_query( "SELECT imageId FROM DST_wrapers WHERE catId = $catName and wrapId = '$wrapId'" ) or die( "Cannot select from wrapers" );
$row = mysql_fetch_array( $res );
?>
this script work nice so there is no confusion of database connection.