|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Man My Brain Hurts
Can someone help me write code to enter my data into a webpage.
When i get my results from my php script, getting info from MYSQL it writes it so sloppy, Id like to put the info recieved in a nice HTML table. Any IDEAS? I have been trying for 3 dats now , and my brain is fried! the page in question is http://www.thevirtualpilotplanner.com/searchform1.php the info in the middle is what id like to contain in an html table, or any table, with headers of PilotID Departure Destination Route and Hours. Please help! |
|
#2
|
|||
|
|||
|
RE: Man My Brain Hurts
forgot to send my code, Told ya my brain isnt quite right now
<html> <body> <?php mysql_connect (localhost, xxx, xxx); mysql_select_db (xxx); include("header.php"); if ($pilotid == "") {$pilotid = '%';} $result = mysql_query ("SELECT * FROM pirep WHERE pilotid LIKE '$pilotid%' "); if ($row = mysql_fetch_array($result)) { do { PRINT "<CENTER>"; PRINT "<BR>"; print $row["pilotid"]; print $row["departure"]; print $row["destination"]; print $row["route"]; print $row["hours"]; } while($row = mysql_fetch_array($result)); } else {print "Sorry, no records were found!";} PRINT "<CENTER>"; PRINT "<BR>"; PRINT "<CENTER>"; include("footer2.php"); ?> </body> </html> |
|
#3
|
|||||
|
|||||
|
RE: Man My Brain Hurts
Here, give something like this a try:
php Code:
|
|
#4
|
|||
|
|||
|
RE: Man My Brain Hurts
you rock!,
Thank you very Much! Michael |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Man My Brain Hurts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|