Initial commit

This commit is contained in:
2026-05-13 23:25:30 +08:00
commit ef6961ba5a
105 changed files with 69505 additions and 0 deletions
+26
View File
@@ -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);
}
?>