<?php
include ("db.inc.php");
$sql = "SELECT wo_order_uids from wo_table where work_order_uids =417";
$result = mysql_query($sql2);
$nums = mysql_num_rows($result);
if(!$nums > 0);
$sql2= "UPDATE wo_stats SET wo_status_codes = 4 WHERE work_order_uid =417";
$result2 = mysql_query($sql2);
if (!mysqli_query($link,$sql2))
{
$error = 'Errorrr updating submitted data. ' ;
include ("error.html.php") ;
}
else
{
echo 'table is not empty. ' ;
}
?>
|