// Include the header file
include ("../../include/header.php");
require("../../include/sqlcon.php");
$sql = new MySQL_class;
$sql->Create("triumphstag_db");
$sql1 = new MySQL_class;
$sql1->Create("triumphstag_db");
echo("
Db connect OK.
");
//********************List the individual entry by id **********************************
$sql->Query("SELECT * from stagdataaltparts where id ='$id'");
$sql->Fetch($i);
$id = $sql->data[0];
$indexid= $sql->data[1];
$altdesc= $sql->data[2];
$altpartno= $sql->data[3];
$alttext= $sql->data[4];
$alturl= $sql->data[5];
$name = $sql->data[6];
$email= $sql->data[7];
$datestamp= $sql->data[8];
$date1 = (date ("d F Y h:iA",$datestamp));
if ("http://" == $alturl OR "" == $alturl) {
$url = "";
} Else {
$url = "Click Here For Supporting URL ";
}
// old query I could not figure out !!! *** $refno = $sql1->QueryItem("select refno from stagdatapartsindex where partnumber='$partnumber'"); next one WORKS!!
$refno = $sql1->QueryItem("select id from stagdataaltparts where altpartno='$altpartno'");
echo(" Alternative for Part Number : $partnumber ($desc) on Diagram $refno | ");
//echo("Entered in Database on : $date1 By : $name |
");
echo("|
Alternative part number$altpartno |
");
echo ("Description : $altdesc |
");
echo ("Additional notes for this alternative $alttext $url |
");
echo(" Added By : $name on $date1 |
");
//echo("$url |
");
Echo ("Please quote :TriumphStag.net Ref=($partnumber / $id): If you have any queries regarding this entry |
");
echo("
");
echo ("");
?>