Jump to content

[SOLVED] Quick php output question?


Solarpitch

Recommended Posts

Hey Guys,

 

Having a slight problem with the below code. As it loops through the db and outputs the data . . it displays it along the webpage as one continuous line.

 

ie:  <output box> <output box> <output box> <output box>

 

I want it to display like

 

<output box>

<output box>

<output box>

<output box>

 

So how could I put a break in this code to allow my data to format like that?

 

Thanks,

Ger

 

while($row = $result->fetch_assoc())
  {

				  echo "<td class='table_style'><table width='700' height='32' border='0' cellpadding='0' cellspacing='0'>
                <tr>
                  <td> </td>
			  <td width = 100>image</td>
                  <td width = 100>". $row['header'] ."</td>
                  <td width = 100>" . $row['make'] . "</td>
                  <td width = 100>" . $row['county'] . "</td>
                  <td width = 100>" . $row['price'] . "</td>
			  <td width = 100>View Ad</td>
                </tr>
              </table></td>";

		  }

		  }

Link to comment
https://forums.phpfreaks.com/topic/54887-solved-quick-php-output-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.