displaying results vertically

Discussion in 'HTML' started by chris, Nov 21, 2007.

  1. chris

    chris Guest

    Hi hope someone can help this is written in php but im thinking its a html
    question I am trying to display a special offers page that I want to display
    the results vertically down the page but it is displaying
    horizontally and being cut off. I can resolve this by entering <br />
    several times before the </form> "); but im not happy with this is there
    another way I have never had a problem before but this has stumped me.
    Thanks

    function display_offers(){
    global $id_link;
    print (" <tr>
    <td class=\"text\">To find out more information regards any of our
    special offers please enter your details against the relevant offer below
    and click submit </td>
    </tr>
    <tr>
    <td height=\"25\"><hr width=\"80%\" size=\"1\" noshade=\"noshade\"
    /></td>
    </tr>
    ");
    $sql= "select * from offers where offer_status = 'y' ORDER BY offer_id
    DESC";
    $result = mysql_query($sql, $id_link);
    if ($result){
    while($row = mysql_fetch_array($result)){
    print ("
    <form name=\"form1\" id=\"form1\" method=\"post\" action=\"\">
    <table width=\"100%\" border=\"0\" align=\"left\" cellpadding=\"3\"
    cellspacing=\"0\">
    <tr>
    <td width=\"60%\" class=\"largeGreenBold\">$row[offer_title]</td>
    <td width=\"40%\"class=\"textsmall\">
    <input name=\"name\" type=\"text\" id=\"name\" />
    Name</td>
    </tr>
    <tr>
    <td rowspan=\"4\" valign=\"top\" class=\"textsmall\">$row[offer_text]
    </td>
    <td><input name=\"pcode\" type=\"text\" id=\"pcode\" />
    Post Code</td>
    </tr>
    <tr>
    <td><input name=\"house_no\" type=\"text\" id=\"house_no\" />
    House Number</td>
    </tr>
    <tr>
    <td><input name=\"eml_addr\" type=\"text\" id=\"eml_addr\" />
    Email address</td>
    </tr>
    <tr>
    <td><input name=\"tel\" type=\"text\" id=\"tel\" />
    Telephone Number</td>
    </tr>
    <tr>
    <td valign=\"top\">&nbsp;</td>
    <td>
    <input type=\"hidden\" name=\"action\" value=\"submit\" />
    <input type=\"hidden\" name=\"offer_id\"
    value=\"$row[offer_id]\" />
    <input type=\"hidden\" name=\"offer\" value=\"$row[offer]\" />
    <input name=\"Submit\" type=\"submit\" class=\"buttonText\"
    value=\"Submit\" />
    </td>

    </tr>
    <tr>
    <td colspan=\"2\" valign=\"top\"><hr width=\"80%\" /></td>
    </tr></table>
    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br
    /><br /><br /><br /><br /><br /><br />
    </form> ");
    chris, Nov 21, 2007
    #1
    1. Advertising

  2. chris

    Martin Jay Guest

    On Wed, 21 Nov 2007 21:03:13 GMT, "chris" <>
    wrote:

    >Hi hope someone can help this is written in php but im thinking its a html
    >question I am trying to display a special offers page that I want to display
    >the results vertically down the page but it is displaying
    >horizontally and being cut off.


    > $sql= "select * from offers where offer_status = 'y' ORDER BY offer_id
    >DESC";
    > $result = mysql_query($sql, $id_link);
    >if ($result){
    > while($row = mysql_fetch_array($result)){
    > print ("
    > <form name=\"form1\" id=\"form1\" method=\"post\" action=\"\">
    > <table width=\"100%\" border=\"0\" align=\"left\" cellpadding=\"3\"
    >cellspacing=\"0\">


    Try removing align="left" from the above table element.
    --
    Martin Jay
    Martin Jay, Nov 21, 2007
    #2
    1. Advertising

  3. chris

    chris Guest

    that work fine now a big thanks thanks Martin

    "Martin Jay" <> wrote in message
    news:...
    > On Wed, 21 Nov 2007 21:03:13 GMT, "chris" <>
    > wrote:
    >
    >>Hi hope someone can help this is written in php but im thinking its a html
    >>question I am trying to display a special offers page that I want to
    >>display
    >>the results vertically down the page but it is displaying
    >>horizontally and being cut off.

    >
    >> $sql= "select * from offers where offer_status = 'y' ORDER BY offer_id
    >>DESC";
    >> $result = mysql_query($sql, $id_link);
    >>if ($result){
    >> while($row = mysql_fetch_array($result)){
    >> print ("
    >> <form name=\"form1\" id=\"form1\" method=\"post\" action=\"\">
    >> <table width=\"100%\" border=\"0\" align=\"left\" cellpadding=\"3\"
    >>cellspacing=\"0\">

    >
    > Try removing align="left" from the above table element.
    > --
    > Martin Jay
    chris, Nov 23, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Timo
    Replies:
    4
    Views:
    465
    clintonG
    May 8, 2004
  2. Peter Lapic

    Display Images vertically via web service

    Peter Lapic, Jan 3, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    720
    Steven Cheng[MSFT]
    Jan 9, 2006
  3. Mark Wiewel
    Replies:
    3
    Views:
    336
    Mark Wiewel
    Mar 8, 2006
  4. Eric
    Replies:
    1
    Views:
    493
    Craig Deelsnyder
    Mar 29, 2006
  5. Monique Y. Mudama
    Replies:
    1
    Views:
    442
    Monique Y. Mudama
    Jun 28, 2005
Loading...

Share This Page