Hi all, I am modifying the layout of a webpage that is sent to a printer or PDF.
I have it set up and working to pull the data from one table column, but I want to present it in two columns by simply separating the odd and even rows and displaying them side by side.
This works to pull the data and present it, but it’s all still stacked into one column in the final presentation.
$select_pstructure="select * from pstructure where pid=$id";
$result_pstructure=mysql_query($select_pstructure);
$con_row2=mysql_fetch_array($result_pstructure);
$pstructure='';
while($row_pstructure=mysql_fetch_array($result_pstructure))
{
$pstructure.="<tr><td>".$row_pstructure['pmessage']."</td></tr>";
}
$image2=$con_row2['image_path2'];*
I’ve noodled around with all kinds of options but cannot get it separated and better presented.
Any suggestions??
EDIT
This post has been reformatted by enclosing the code block in 3 backticks
```
on their own lines.
Thanks a bunch Drummin.
I didn’t think about it, sorry, but there was a call further down in the script to the one I previously posted. Hence the lack of table tag.
I’m noodling around with what you suggested but not getting it to fire yet.