Initial commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
//addgroup.php
|
||||
include "connect.php";
|
||||
|
||||
if(isset($_POST["id"]))
|
||||
{
|
||||
// $connect = mysqli_connect("localhost", "root", "", "rebolusyon");
|
||||
$addgroup_query = "SELECT * FROM characters WHERE char_id = '".$_POST["id"]."'";
|
||||
$addgroup_result = mysqli_query($conn, $addgroup_query);
|
||||
while($row = mysqli_fetch_array($addgroup_result))
|
||||
{
|
||||
$row_char_name = $row["firstname"] . " " . $row["lastname"];
|
||||
|
||||
$data["id"] = $row["char_id"];
|
||||
$data["content"] = $row_char_name;
|
||||
$data["title"] = $row["title"];
|
||||
$data["age"] = $row["age"];
|
||||
$data["birth"] = date('Y', strtotime($row["birth"]));
|
||||
$data["death"] = date('Y', strtotime($row["death"]));
|
||||
$data["desc"] = $row["description"];
|
||||
$data["filename"] = $row["image_filename"];
|
||||
}
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user