










|
|
if ($state){
print ("\n");
print (" \n");
print ("U.S. Locations \n");
print (" \n");
print ("\n");
$queryState = "SELECT * FROM States WHERE StateAbbr = '$state'";
//connect and do query
$link=mysql_connect("localhost", "minigraph", "m7l8t9");
$resultState = mysql_db_query("Minigraphics", $queryState, $link);
while ($row1=mysql_fetch_array($resultState))
{
print("\n");
print("| $row1[State] | \n");
print(" \n");
}
$query = "SELECT pp_locations.*, State, StateAbbr FROM pp_locations, States WHERE pp_locations.StateID = States.StateID and States.StateAbbr = '$state'";
$Result=mysql_db_query("Minigraphics", $query, $link);
//print out results to page
while ($Row=mysql_fetch_array($Result))
{
print("\n");
print ("| $Row[StoreName] | \n");
print ("$Row[Street] | \n");
print ("$Row[City] | \n");
print ("$Row[State] | \n");
print ("$Row[Zipcode] | \n");
if ($Row[Phone] == NULL)
{
print (" | \n");
}
print ("$Row[Phone] | \n");
print (" \n");
}
mysql_close($link);
print ("\n");
print ("| | \n");
print (" \n");
print ("\n");
print ("\n");
}
print ("BACK \n");
print ("Copyright © 2000 MiniGraphics. All Rights Reserved. \n");
print ("2975 Exon Avenue | Cincinnati, Ohio | 45241 \n");
print ("Orders: (800) 442-7035 | Office: (513) 563-8600 | Fax: (513) 563-6650 \n");
print ("Email: minig@one.net\n");
print (" | \n");
print (" \n");
print (" \n");
print (" | \n");
print ("
\n");
print ("