horizontal rule problem in code page

paxil

thanx doc heaps for the help. it so worked well.. :-D :-D :-D :-D


paxil

#1
dear all,

im outputting a table using code page in website baker. the display is fine and everything is working well. But when i try to echo a horizontal rule it ends up ruling through the whole page.

the code which im using is as follows :    echo "<hr width='50%' />";


despite using other possibilities of echo statements for horizontal rule it still runs through the whole page.

I have attached a screenshot of my website baker page to display where i want the horizontal rule to be of a smaller width. i would appreciate the help of anyone out there.

_____________________________________________________________________________________


the code i have implemented to display the output is as follows :-


$qry = "Select * from familyname
           ORDER BY family_name, head_givenname ASC";
                
             
       
   $records = mysql_query($qry) or die('Query failed: ' . mysql_error());
   
        echo "<table width='60%' border= '0' bgcolor='#CCCCCC'>";
        echo "<tr>";
        echo  "<th width='25%'>Family Details</th>";
        echo  "<th width='35%' colspan='2'>Residential Address</th>";
        echo  "<th width='20%'>Residential Phone</th>";
        echo  "<tr>";
        echo "</table>";
 
   while ($line = mysql_fetch_array($records, MYSQL_ASSOC))

   {
                echo "<hr width='50%'>";
                echo "<table width='60%' border= '0.5'  bgcolor='white' cellpadding='2' cellspacing='2'>";
       echo "<a href=Displayfamilydetails.php?familynum=" . $line['family_num'] .
           ">" . $line['family_name'] . "</a></td>";
       echo "<td width='20%'>" . $line['head_givenname'] . "</td>";
                echo "<td width='35%'>" . $line['residential_address'] .",". $line['surburb']." ".$line['city'] . "</td>";
                echo "<td width='20%'>" . $line['residential_number'] . "</td>";
               
            echo "</table>";
     }




[gelöscht durch Administrator]