Layout not looking right
Posted: Wed Aug 14, 2002 10:53 pm
Well i have PHP reading the database fine, its just the appearance im not happy with, i would like to be able to <center> the text, and font size arial 1 .. the page in question is at:
http://www.kunzair.com/searchform.php?p ... ael+Driggs
the code is:
<html>
<body>
<?php
mysql_connect (localhost, kunzair_Michael, poster1);
mysql_select_db (kunzair_pirep);
include("header.php");
if ($pilotid == "")
{$pilotid = '%';}
$result = mysql_query ("SELECT * FROM pirep WHERE pilotid LIKE '$pilotid%'");
if ($row = mysql_fetch_array($result)) {
print "<CENTER>";
print "
<table>
<TD>{$row['pilotid']}</TD>\n";
print "<br><br>";
print "<TABLE BORDER=\"0\">\n";
print "<TR>\n<TD><b>PilotID_________________</b></TD>\n";
print "<hr>";
print "<TD><b>Departure___</b></TD>\n";
print "<TD><b>Destination__</b></TD>\n";
print "<TD><b>Hours__</b></TD>\n";
print "<TD><b>Route</b></TD>\n</TR>\n";
do {
print "<TR>\n";
print "<TD>{$row['pilotid']}</TD>\n";
print "<TD>{$row['departure']}</TD>\n";
print "<TD>{$row['destination']}</TD>\n";
print "<TD>{$row['hours']}</TD>\n";
print "<TD>{$row['route']}</TD>\n";
print "</TR>\n";
} while($row = mysql_fetch_array($result));
print "</TABLE>\n</CENTER\n";
print "<center>";
print "<br><br>";
print "<br><br>";
} else {print "<center>You need to enter a PIREP first!</center>";}
print "<BR>\n";
include("footer2.php");
?>
</body>
the page i would like it to look like is:
http://www.kunzair.com/kva101.htm
is that possible??!!??
Michael
http://www.kunzair.com/searchform.php?p ... ael+Driggs
the code is:
<html>
<body>
<?php
mysql_connect (localhost, kunzair_Michael, poster1);
mysql_select_db (kunzair_pirep);
include("header.php");
if ($pilotid == "")
{$pilotid = '%';}
$result = mysql_query ("SELECT * FROM pirep WHERE pilotid LIKE '$pilotid%'");
if ($row = mysql_fetch_array($result)) {
print "<CENTER>";
print "
<table>
<TD>{$row['pilotid']}</TD>\n";
print "<br><br>";
print "<TABLE BORDER=\"0\">\n";
print "<TR>\n<TD><b>PilotID_________________</b></TD>\n";
print "<hr>";
print "<TD><b>Departure___</b></TD>\n";
print "<TD><b>Destination__</b></TD>\n";
print "<TD><b>Hours__</b></TD>\n";
print "<TD><b>Route</b></TD>\n</TR>\n";
do {
print "<TR>\n";
print "<TD>{$row['pilotid']}</TD>\n";
print "<TD>{$row['departure']}</TD>\n";
print "<TD>{$row['destination']}</TD>\n";
print "<TD>{$row['hours']}</TD>\n";
print "<TD>{$row['route']}</TD>\n";
print "</TR>\n";
} while($row = mysql_fetch_array($result));
print "</TABLE>\n</CENTER\n";
print "<center>";
print "<br><br>";
print "<br><br>";
} else {print "<center>You need to enter a PIREP first!</center>";}
print "<BR>\n";
include("footer2.php");
?>
</body>
the page i would like it to look like is:
http://www.kunzair.com/kva101.htm
is that possible??!!??
Michael