Thanks to all of you again for all the help.
Weedpacket and Lazzerous, the our php guy has been gone now for about 2 weeks and will be gone for another 2 weeks.
I am an asp programmer and I was asked to step in and complete the php app he was working.
I didn't realize I would have this much headache with it.
So, here is a script he wrote that does exactly what I am trying to do.
This script works fine and my problem is, if for some reason this script doesn't work for me, there is got to be another method of using that would do exactly what his script does.
Please take a quick look at his script (this is all of it).
[COLOR=blue]
<?php
include"permissions.php.inc";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> More</title>
</head>
<body bgcolor="#6270B5">
<div align="center">
<?php
$cur = $conn->Parse("select * from spillsMore where record = $record");
$cur->Execute;
$res = $cur->Fetch();
for ($i=0; $i<12; $i++) {
$cn = strtoupper($cur->ColumnName($i));
$$cn = $cur->GetColumn($i);
$cv = $$cn;
}
echo " <div align=\"center\">
<table cellpadding='2' cellspacing='2'>
<td class='header'><font size='-3'>CITY</font></td><td class='name'><font size='-3'>$CITY</font></td><td class='header'><font size='-3'> DATE FOUND</font></td><td class='name'><font size='-3'>$DATE_FOUND</font></td></tr>
<tr><td class='header'><font size='-3'>DATE REPAIRED</font></td><td class='name'><font size='-3'>$DATE_REPAI</font></td><td class='header'><font size='-3'>RECEIVING FLOW</font></td><td class='name'><font size='-3'>$RECEIVING_</font></td></tr>
<tr><td class='header'><font size='-3'>COMMISSIONER</font></td><td class='name'><font size='-3'>$COMMISSION</font></td><td class='header'><font size='-3'>COMMISSION DISTRICT</font></td><td class='name'><font size='-3'>$DISTRICT</font></td></tr>
</table><br>
<button name=\"close\" value=\"Close\" onClick='window.close()'>Close</button>
</div>";
?>
</body>
</html>
[/COLOR]
There are 2 things different about his script from mine.
One, he uses postgres database and I am using access and they are not stored on the same database.
Second is, he uses, as you can see from the include file, a permissions.php where connection and access to his database is defined.
Mine is defined on the same script.
So there is some minor tweak that needs to be made to my script to work like his and that is where I am asking for you guys help.
And Lazzerous, when you said I need to slash my double quotes, do you mean like this:
'".$_GET["site_Code"].\"'"\;
Believe me, as hard as this seems right now, I will come up to speed.
I believe I had similar problem with asp.
Your assistance is greatly appreciated.