芝麻web文件管理V1.00
';
}
else
{
echo 'Danger! Currency Not Added. Try Again.
';
}
}
if(isset($_POST['edit']))
{
$id = $_POST['id'];
$name = mysqli_real_escape_string($cn,$_POST['name']);
$amount = $_POST['amount'];
$title = mysqli_real_escape_string($cn,$_POST['title']);
$currency_symbol = mysqli_real_escape_string($cn,$_POST['currency_symbol']);
$sqlSubject = mysqli_query ($cn,"update `tbl_currency` set `name`='".$name."', `value`='".$amount."', `title`='".$title."', `currency_symbol`='".$currency_symbol."' where `id`='$id'");
if($sqlSubject)
{
echo 'Success! Currency Update Successfully.
';
}
else
{
echo 'Warrning! Currency Not Updated. Try again.
';
}
}
if(isset($_GET['edit_id']))
{
$id = $_GET['edit_id'];
$sql = mysqli_query($cn, "select * from `tbl_currency` where id='$id'");
$sqlData = mysqli_fetch_array ($sql);
}
?>
Currency Master
Currency List
Sr. No. |
Name |
Amount |
Title |
Action |
|
|
|
|
Edit |