Author Topic: horizontal rule problem in code page  (Read 1892 times)


  • Guest
horizontal rule problem in code page
« on: May 23, 2008, 07:50:27 AM »
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]
« Last Edit: May 23, 2008, 07:52:52 AM by paxil »


  • Guest


  • Guest
Re: horizontal rule problem in code page
« Reply #2 on: May 24, 2008, 01:22:49 AM »
thanx doc heaps for the help. it so worked well.. :-D :-D :-D :-D