thats because your query was an UPDATE and updates do not return results (records) as SELECT does, mysql_fetch_array has no meaning in this context just remove it.
PHP Code:
if ($num_result == 1)
{
if($row = mysql_fetch_array($result)); // <-- dont know if you noticed this semicolon here
echo"success= 1";
echo"udate=$udate";
}
else
{
echo( "success=0" );
}
corrected code
PHP Code:
<?php
include_once("conn.php");
$udate = rawurlencode($_GET["udate"]);
$id = rawurlencode($_GET["id"]);
// This is the SQL statement that will update the appropriate table in the database
$query = "UPDATE ipcinfo SET udate = $udate WHERE id = $id";
$result = mysql_query($query) or die(mysql_error());
/* This just gets the number of rows in the Query - It's just a check to see if the id exists - If not it echos out an error statement. */
$num_result = mysql_affected_rows($dblink);
echo "success = $num_result"; // show success code ... comment this out
if ($num_result == 1) echo "udate = $udate"; // if its a success then show $udate
// Clean up
mysql_close($dblink);
?>