hi guys i just want this code to show in a table but im new to this and dont kno what to change
please help thank you
please
<html>
<head>
<title>Get Data</title></head>
<body>
<?php
$conn = @mysql_connect ( "localhost", "ewood", "woodie")
or die ( "Err:Conn" );
$rs = @mysql_select_db ( "ewood", $conn )
or die ( "Err:Db" );
$sql="select criminalID, firstName, lastName, age, offence, sentence, fingerprint, free from criminal_details";
$rs = mysql_query( $sql,$conn );
while( $row = mysql_fetch_array( $rs) )
{
echo( "criminalID: " . $row["criminalID"] ) ;
echo( " - firstName: " . $row["firstName"] ."<br>" ) ;
echo( " - lastName: " . $row["lastName"] ."<br>" ) ;
echo( " - address: " . $row["address"] ."<br>" ) ;
echo( " - age: " . $row["age"] ."<br>" ) ;
echo( " - offence: " . $row["offence"] ."<br>" ) ;
echo( " - sentence: " . $row["sentence"] ."<br>" ) ;
echo( " - fingerprint: " . $row["fingerprint"] ."<br>" ) ;
echo( " - free: " . $row["free"] ."<br>" ) ;
}
?>
</body></html>
ADMIN EDIT: Put CODE in phpbb CODE tags for readability