table sizeing ?

Discussion in 'Programming' started by jmad, Apr 23, 2007.

to remove all ads.
  1. jmad

    jmad New Member

    i am placing information from my db in a table i am having problems controlling the size of the table is it because of the fact that i am inserting info using php n mysql or is it an html error? I know the code is a lil messy but if u see my error plz help?

    mysql_select_db("ecomm", $con);


    echo $i;
    // echo $Q;

    $result = mysql_query("SELECT * FROM $show");

    echo "<br/>";
    echo '<h2 > Items </h2>';
    echo '<table width="750" border="0" bgcolor="F0F8FF" cellpadding="0">

    <th width="5" >Item</th>
    <th width="200">Description</th>

    while($row = mysql_fetch_array($result))
    echo "<tr>";

    echo '<td width"5">' . $row['itemid'] . "</td>";
    echo '<td>' . $row['desc1'] . "&nbsp;" . $row['desc2'] . "</td>";
    echo '<td align="right">' . $row['Price'] . "</td>";
    '<td width="10" align="right">
    <form name="qty" action="index.php"
    <input type="hidden" name="session" value=' . $j . '>
    <input type="hidden" name="recordno" value=' . $rod . '>
    <input type="hidden" name="qty" value='. $Q . '>
    <input type="submit" value="add to cart!">


    echo "</tr>";
    echo "</table>";
  2. TimRainey

    TimRainey New Member

    Your width tag has no equal sign. This may throw up some issues in some browsers.

Share This Page