-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MatAsmat
committed
Jul 24, 2021
1 parent
2fc9aee
commit 6fe3ad2
Showing
14 changed files
with
209 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<meta charset="utf-8"> | ||
<?php | ||
include('../../condb.php'); | ||
|
||
if(isset($_POST['deletedata'])) { | ||
|
||
$DogWeightID = $_POST['delete_id']; | ||
|
||
$query = "DELETE FROM tbl_member_dog_weight WHERE DogWeightID ='$DogWeightID'"; | ||
$result = mysqli_query($condb, $query); | ||
|
||
if($result){ | ||
echo "<script type='text/javascript'>"; | ||
echo "alert('ลบข้อมูลสำเร็จ');"; | ||
echo "window.history.back();"; | ||
echo "</script>"; | ||
}else{ | ||
echo "<script type='text/javascript'>"; | ||
echo "alert('Error!!');"; | ||
echo "window.history.back();"; | ||
echo "</script>"; | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<meta charset="utf-8"> | ||
<?php | ||
//condb | ||
include('../../condb.php'); | ||
|
||
if(isset($_POST['updatedata'])) { | ||
|
||
$DogWeightDate = $_POST["DogWeightDate"]; | ||
$DogWeight = $_POST["DogWeight"]; | ||
$DogWeightID = $_POST["DogWeightID"]; | ||
|
||
$sql = "UPDATE tbl_member_dog_weight SET | ||
DogWeightDate='$DogWeightDate', | ||
DogWeight='$DogWeight' | ||
WHERE DogWeightID=$DogWeightID | ||
"; | ||
|
||
|
||
$result = mysqli_query($condb, $sql) or die ("Error in query: $sql " . mysqli_error()); | ||
|
||
mysqli_close($condb); | ||
|
||
if($result){ | ||
echo "<script type='text/javascript'>"; | ||
echo "alert('เพิ่มข้อมูลสำเร็จ');"; | ||
echo "window.history.back();"; | ||
echo "</script>"; | ||
}else{ | ||
echo "<script type='text/javascript'>"; | ||
echo "alert('Error!!');"; | ||
echo "window.history.back();"; | ||
echo "</script>"; | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters