Hi, total PHP n00bie here ...
I made this little script to try and display 3 lots of 2 bits of information (last 3 review titles and summary).
However it always shows up like this...
Review Title (content_heading)
Blurb (content_summary)
<?php
$text = "<span class=\"smalltext\">";
//make query
$result = mysql_query('SELECT content_heading, content_page, content_datestamp, content_summary
FROM e107_content WHERE 1 AND content_page >0 ORDER BY content_datestamp DESC LIMIT 3');
while ($latestthreads = mysql_fetch_array($result)) {
//Create text variable to pass HTML
$text .="$result[content_heading]<br />$result[content_summary]";
}
//Render table with E107 support and then display $text query variable
$text .="</span>";
$ns -> tablerender("Last 3 Reviews", $text);
?>
What Im trying to achieve is 3 columns in a 100% HTML table... like this...
Review Review Review
Blurb Blurb Blurb
Can anyone help me find out to (loop I think!) make it generate that way? I really have tried but Im still just getting to grips with this and I have messed it up a whole bunch of times 🙁