States select ( "select * from states where countryID=" . $_GET ['id'] . " order by name" ); //$db->print_last_query(); while ( $row = $db->get_row ( $res, 'MYSQL_BOTH' ) ) { ?>
select ( "select * from states where id=" . $_GET ['Sid'] ); $stat = $db->get_row ( $res, 'MYSQL_BOTH' ); } ?>

Country Name:

State Name:

Deliver Charge

"; ?> "; ?>
insert_sql ( "INSERT INTO `states` (`countryID` ,`name`,`delivery`) VALUES ('" . $_GET ['id'] . "', '" . $_POST ['name'] . "','" . $_POST ['delivery'] . "')" ); //$db->print_last_query(); print ""; exit (); } if (isset ( $_POST ['bt_update'] )) { $id = $db->update_sql ( "update `states` set `name`='" . $_POST ['name'] . "' ,`delivery`='" . $_POST ['delivery'] . "' where id=" . $_GET ['Sid'] ); //$db->print_last_query(); print ""; } if (isset ( $_GET ['del'] )) { $id = $db->delete ( "delete from states where id=" . $_GET ['del'] ); //$db->print_last_query(); print ""; } ?>