displaying results vertically

displaying results vertically

am 21.11.2007 22:03:13 von Chris

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

several times before the "); 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 ("
To find out more information regards any of our
special offers please enter your details against the relevant offer below
and click submit



/>

");
$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 ("

cellspacing=\"0\">
























$row[offer_title]

Name
$row[offer_text]

Post Code

House Number

Email address

Telephone Number
 

value=\"$row[offer_id]\" />

value=\"Submit\" />













/>






");

Re: displaying results vertically

am 21.11.2007 23:40:01 von Martin Jay

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 ("
>


> >cellspacing=\"0\">

Try removing align="left" from the above table element.
--
Martin Jay

Re: displaying results vertically

am 23.11.2007 12:26:49 von Chris

that work fine now a big thanks thanks Martin

"Martin Jay" wrote in message
news:sqc9k3tgl5au4ed0c5v6pv97pvpm6057ti@4ax.com...
> 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 ("
>>
>>

>>cellspacing=\"0\">
>
> Try removing align="left" from the above table element.
> --
> Martin Jay