yeah corey that seemed to work great. thanks.
I'm trying to put them in the same row but it doesnt seem to be working.
Any idea why the following code doesnt work?
if (!empty($content)){
if (!empty($picresult)){
while ( list($key,$val)=each($picresult) ) {
$pictitle = stripslashes($val["pictitle"]);
$picture = stripslashes($val["picture"]);
$content = nl2br($content);
print "<tr>
<td align=\"left\">
<img src=\"$picturepath$picture\" alt=\"$pictitle\" align=\"right\" style=\"margin: 15px 15px 15px 0px;\"><br>$pictitle<br>$content
</td></tr>";
(originally taken from)
if (!empty($content)){
if (!empty($picresult)){
while ( list($key,$val)=each($picresult) ) {
$pictitle = stripslashes($val["pictitle"]);
$picture = stripslashes($val["picture"]);
print "<tr>
<td align=\"left\">
<img src=\"$picturepath$picture\" alt=\"$pictitle\" align=\"right\" style=\"margin: 15px 15px 15px 0px;\"><br>$pictitle<br>
</td></tr>";
}
}
$content = nl2br($content);
print "<tr><td>$content</td></tr>";
}
I also tried simply removing the <tr> and <td> tags to put it in the same row, but then it moveis the current row above the $intro row.