$sql2="select max(id_order) from tb_order,tb_product where tb_order.id_order= tb_product.id_order ";
$result2=mysql_db_query($dbname,$sql2)or die (mysql_error());
$row=mysql_fetch_row($result2);
$sql9="select max(id_order) as id_order from tb_order,tb_product where tb_order.id_order= tb_product.id_order ";
$result9=mysql_db_query($dbname,$sql9)or die (mysql_error());
$rs9=mysql_fetch_array($result9);
$id_order=$rs9[id_order];
$id_order=sprintf("%05d",$id_order);
session_unregister("sess_id");
session_unregister("sess_name");
session_unregister("sess_price");
session_unregister("sess_num");