Here are the scripts:
PrnScrn.php
<?php
include("Loc_cverse_connect.php");
doDB();
//verify the Event exists
$Get_Verse_sql = "SELECT ID, Event, Sub_Type, Verse FROM verses WHERE ID = '".$_POST["ID"]."'";
$Get_Verse_res = mysqli_query($mysqli, $Get_Verse_sql) or die(mysqli_error($mysqli));
//echo $_POST[iD];
if (mysqli_num_rows($Get_Verse_res) < 1) {
//this Event does not exist
$display_block = "<p><em>You have selected an invalid Event.<br/>
Please try again.</em></p>";
} else {
//get the Event ID
while ($Verse_info = mysqli_fetch_array($Get_Verse_res)) {
$Verse = stripslashes($Verse_info['Verse']);
}
//create the display string
$display_block = "<h1>$Verse</h1>";
//free results
mysqli_free_result($get_Verse_res);
//close connection to MySQL
mysqli_close($mysqli);
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="Prn_Scrn.css" media="all">
<title> List of Verses</title>
</head>
<body>
<?php
ECHO $display_block;
?>
</body>
</html>
PrnScrn1.php
<?php
include("Loc_cverse_connect.php");
doDB();
//verify the Event exists
$Get_Verse_sql = "SELECT ID, Event, Sub_Type, Verse FROM verses WHERE ID = '".$_POST["ID"]."'";
$Get_Verse_res = mysqli_query($mysqli, $Get_Verse_sql) or die(mysqli_error($mysqli));
//echo $_POST[iD];
if (mysqli_num_rows($Get_Verse_res) < 1) {
//this Event does not exist
$display_block = "<p><em>You have selected an invalid Event.<br/>
Please try again.</em></p>";
} else {
//get the Event ID
while ($Verse_info = mysqli_fetch_array($Get_Verse_res)) {
$Verse = stripslashes($Verse_info['Verse']);
}
//create the display string
$display_block = "<h1>$Verse</h1>";
//free results
mysqli_free_result($get_Verse_res);
//close connection to MySQL
mysqli_close($mysqli);
}
?>
<html>
<head>
<style type="text/css">
body{
background-color: #FFFFFF;
h1 {font-family:Arial, sans-serif; font-size:x-large;}
}
</style>
<title> Print Verse</title>
</head>
<body>
<?php
ECHO $display_block;
?>
</body>
</html>
Prn_Scrn.css
/*--- Page Style ---*/
@page {size:landscape; margin-left: 175mm; margin-top: 55mm}
h1 {font: large Ariel; color: Black;}
/*--- EndOfFile ---*/
Any ideas why either of these do not work?