deleting crumbles

master
snowflake 3 years ago
parent bffbe34c6e
commit 7d819c580d

@ -17,13 +17,12 @@ if(!is_null($title)){
$conn = $pdo; $conn = $pdo;
try { try {
$sql = "INSERT INTO article ( title, body ) values ( '$title', '$body' );"; $sql = "INSERT INTO article ( title, body ) values ( '$title', '$body' );";
echo $sql;
$conn->exec($sql); $conn->exec($sql);
} catch (PDOException $e) { } catch (PDOException $e) {
echo "Error in $from: Not Found"; echo "Error in $from: Not Found";
} }
} }
//header("location: ../insertWhat.php"); header("location: ../insertWhat.php");
?> ?>
<!DOCTYPE html> <!DOCTYPE html>

@ -30,7 +30,7 @@ if(!is_null($name)){
echo "Error in $from: Not Found"; echo "Error in $from: Not Found";
} }
} }
// header("location: ../insertWhat.php"); header("location: ../insertWhat.php");
?> ?>

@ -24,7 +24,7 @@ if(!is_null($name)){
echo "Error!"; echo "Error!";
} }
} }
// header("location: ../insertWhat.php"); header("location: ../insertWhat.php");
?> ?>
<!DOCTYPE html> <!DOCTYPE html>

@ -2,4 +2,4 @@
session_start(); session_start();
print_r($_GET); print_r($_GET);
//header("location: index.php"); header("location: index.php");

@ -22,7 +22,7 @@ $title = "LATEST Breweries";
$where = "5"; $where = "5";
$what = "brewery"; $what = "brewery";
$array = listLatestBreweries($pdo, $where); $array = listBeersByBreweryNAN($pdo);
require("sidebar/sidebarLister.php"); require("sidebar/sidebarLister.php");

Loading…
Cancel
Save