Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
pepiuox committed Jul 18, 2024
1 parent 9b9586c commit 0e1e345
Show file tree
Hide file tree
Showing 1,890 changed files with 514 additions and 595,516 deletions.
10 changes: 5 additions & 5 deletions admin/views/pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</thead>
<tbody>
<?php
$presult = $conn->query("SELECT * FROM page");
$presult = $conn->query("SELECT * FROM pages");
$pnumr = $presult->num_rows;
if ($pnumr > 0) {
while ($prow = $presult->fetch_array()) {
Expand Down Expand Up @@ -126,7 +126,7 @@
$change = 0;

if ($startpage === 1) {
$qlv1 = $conn->prepare("SELECT id, startpage FROM page WHERE startpage=?");
$qlv1 = $conn->prepare("SELECT id, startpage FROM pages WHERE startpage=?");
$qlv1->bind_param("i", $startpage);
$qlv1->execute();
$presult = $qlv1->get_result();
Expand Down Expand Up @@ -355,7 +355,7 @@ function mkeyup() {
$active = protect($_POST['active']);

if ($startpage === 1) {
$qlv1 = $conn->prepare("SELECT id, startpage FROM page WHERE startpage=?");
$qlv1 = $conn->prepare("SELECT id, startpage FROM pages WHERE startpage=?");
$qlv1->bind_param("i", $startpage);
$qlv1->execute();
$presult = $qlv1->get_result();
Expand Down Expand Up @@ -407,7 +407,7 @@ function mkeyup() {
<?php
if (isset($_GET['id']) && !empty($_GET['id'])) {
$id = $_GET['id'];
$qlv2 = $conn->prepare("SELECT * FROM page WHERE id = ?");
$qlv2 = $conn->prepare("SELECT * FROM pages WHERE id = ?");
$qlv2->bind_param("i", $id);
$qlv2->execute();
$presult = $qlv2->get_result();
Expand Down Expand Up @@ -522,7 +522,7 @@ function mkeyup() {
} elseif ($cms == "delete_page") {

if (isset($_POST['submit'])) {
$sql = "DELETE FROM page WHERE id='$id'";
$sql = "DELETE FROM pages WHERE id='$id'";
if ($conn->query($sql) === TRUE) {
echo '<div class="alert alert-primary" role="alert">';
echo "<h4>Record deleted successfully</h4>";
Expand Down
Loading

0 comments on commit 0e1e345

Please sign in to comment.