if (isset($_GET['id'])){
$query = "SELECT name,type,DATE_FORMAT(stamp,'%b %d, %Y'),id,REPLACE(testimony,'\n','
') FROM {$schema}.testimonies WHERE approved = 'Y' and status = 'Active' AND id = {$_GET['id']}";
$res = mysqli_query($db,$query);
if (mysqli_num_rows($res) == 0){
print "Testimony is not available";
mysqli_close($db);
return;
}
$rows = mysqli_fetch_row($res);
print "
Testimony
\n";
if (strlen($rows[0]) > 1)
print "
Name: " .$rows[0];
print "
Type: ". $rows[1];
print "
".stripslashes($rows[4]);
print "
Return to Testimonies Listing\n";
}
else{
$query = "SELECT type,DATE_FORMAT(stamp,'%b %d, %Y'),id FROM {$schema}.testimonies WHERE approved = 'Y' and status = 'Active' ORDER BY stamp DESC";
$res = mysqli_query($db,$query);
if (mysqli_num_rows($res) == 0){
print "
Currently there are no testimonies.";
print "
Submit Testimony
\n";
mysqli_close($db);
return;
}
?>
Prayers Book Testimonies
This page is for testimonies only. To order books or to check on the status
of your order, please write us at:
428 Southland Dr.
Lexington, KY 40503.
Submit Testimony
|
Testimony
|
Testimony Date
|
while ($row = mysqli_fetch_row($res)){
print "| $row[0] | $row[1] |
\n";
}
print "
\n";
print "
\n";
print "These Testimonies are for the sole purposes of: glorifying the Lord Jesus Christ, edifying our brothers and sisters in Christ, and those that read these may be inspired to pray!
Thank you!
Christian Word Ministries
\n";
}
print "