mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-11-29 09:27:53 +01:00
Add competitor functionality and enhance Pokémon management features
This commit is contained in:
1 parent
e65250d484
commit
54df59d3a8
9 files changed
+341
-6
No files matched your search
+2
-2
@@ -32,7 +32,7 @@ if (isset($_GET['id'])) {
|
||||
LEFT JOIN pokemon_abilities pa ON p.id = pa.pokemon_id
|
||||
LEFT JOIN abilities a ON pa.ability_id = a.id
|
||||
LEFT JOIN stats st ON p.id = st.pokemon_id
|
||||
WHERE p.id = $id
|
||||
WHERE p.id = $id AND p.deleted = 0
|
||||
GROUP BY p.id";
|
||||
logMessage("Executing query: $sql");
|
||||
$result = $conn->query($sql);
|
||||
@@ -48,7 +48,7 @@ if (isset($_GET['id'])) {
|
||||
echo json_encode(["error" => "No Pokémon found"]);
|
||||
}
|
||||
} else {
|
||||
$sql = "SELECT * FROM pokemon";
|
||||
$sql = "SELECT * FROM pokemon WHERE deleted = 0";
|
||||
logMessage("Executing query: $sql");
|
||||
$result = $conn->query($sql);
|
||||
|
||||
|
||||
Reference in new issue
Block a user