[insert_php]
$num = $_REQUEST[‘num’];
include(“/home/trcmaine/scripts/connect.php3”);
if ($num != NULL) {
$result = mysql_query (“SELECT * FROM veterans WHERE num LIKE ‘$num'”);
$num_rows = mysql_num_rows($result);
if ($num_rows == 0) {
$num = NULL;
}
else {
$row = mysql_fetch_array($result);
$pic = $row[pic];
if ($pic != NULL) {
//$blampic = explode(“.”,$pic);
$thefileuploadpathandname = $pic;
// $thefileuploadpathandname = “..”.$thefileuploadpathandname;
$thefilename = strrchr(strtolower($pic), “/”);
$thefilename = str_replace(“/”, “”, $thefilename);
$theext = strrchr(strtolower($thefilename), “.”);
$picfinalized = substr_count($pic, ‘temp’);
}
else if ($pic == NULL) {
$blampic = NULL;
$thefileuploadpathandname = NULL;
$thefileuploadpathandname = NULL;
$thefilename = NULL;
$thefilename = NULL;
$theext = NULL;
$picfinalized = NULL;
}
$name = $row[name];
$town = $row[town];
$content = $row[content];
}
}
if ($num != NULL) :
//echo ““.html_entity_decode($name).” of “.$town.”
“;
if ($thefileuploadpathandname != NULL) {echo “
“;}
echo “
echo “
“; echo nl2br(html_entity_decode($content)).” |
“;
$result = mysql_query (“SELECT * FROM veterans WHERE num < '$num' ORDER BY num DESC LIMIT 1 ");
$num_rows = mysql_num_rows($result);
$row = mysql_fetch_array($result);
$prevnum = $row[num];
$prevname = $row[name];
$result = mysql_query ("SELECT * FROM veterans WHERE num > ‘$num’ LIMIT 1 “);
$num_rows = mysql_num_rows($result);
$row = mysql_fetch_array($result);
$nextnum = $row[num];
$nextname = $row[name];
echo “
|
||
“;
if ($prevnum != NULL) {echo “Previous: $prevname“;} echo “ |
“;
if ($nextnum != NULL) {echo “ “;} echo “ |
“;
else :
echo “
Many favorable comments have been received appreciating the veteran history articles, to those I humbly thank you. Before going into further articles a clarification is perhaps helpful in the forms of military service and sacrifices.
It is a very small percentage of the military that actually sees or takes the life of their enemy. The infantry squad of nine to eleven soldiers is the primary source of a military mission or action with the most likely opportunity or misfortune of direct contact with the enemy. Obviously the squad leader has the most responsibility for the training and welfare of the squad. All other ranks and other fields such as supply, medical, maintenance, communications and transportation are in place to support the squad.
Ideally, military mission intent is to bring about a favorable condition that could lead to a lasting peace with the enemy or potential enemy. Sometimes just the readiness of the military deters the enemy from possible war; such was the cold war era. Every position in the military was created to support the overall mission regardless of branch and all military personnel went through their training and are prepared to complete their mission regardless of their location. They all sacrificed something, and some had no choice such as a drafted soldier. They all deserve our gratitude for their service.
“;
echo “
“;} if($col == “25”){echo “ |
“; $col == “0”;} else {$col++;} echo “$name “; // end while echo “ |
“;
// end else
endif;
[/insert_php]