Ok, I have a problem, here is my code:
Now my problem is that I keep getting error messages for these type of variable:PHP Code:<?
for ($num = 1; $num <= 5; $num++)
{
?>
<TR>
<TD WIDTH=500 ALIGN="LEFT" VALiGN="TOP">
<a name="section1"></a>
<FONT FACE="Arial" size=2 COLOR="#B50042"><b><?= $Row_c->section_heading[$num]?></b></font>
</TD>
</tr>
<tr>
<TD VALIGN="TOP">
<FONT FACE="Arial" size=2>
<?= $Row_c->section_content[$num] ?>
</FONT>
</TD>
</TR>
<tr>
<td>
<table WIDTH="100%" BORDER=0>
<?
$Query_i = ("Select * from product_images WHERE language='$mode' AND title_url='$title_url' and section_number=$num");
$Query_b = ("Select * from products_images_bubble WHERE language='$mode' AND title_url='$title_url' and section_number=$num");
$Result_i=mssql_query($Query_i);
$Result_b=mssql_query($Query_b);
$Row_i = mssql_fetch_object($Result_i);
$Row_b = mssql_fetch_object($Result_b);
?>
<tr>
<? if ($Row_i->image1){?>
<td ALIGN="CENTER" width="30%"><IMG SRC="/images/<?= $Row_i->image1 ?>" ALT="<?= $Row_p->title_url ?>" BORDER=0>
<br>
<FONT FACE="Arial" size=1>
<?= $Row_b->bubble1 ?>
</font>
</td>
<?} if ($Row_i->image2){?>
<td ALIGN="CENTER" width="30%"><IMG SRC="/images/<?= $Row_i->image2 ?>" ALT="<?= $Row_p->title_url ?>" BORDER=0>
<br>
<FONT FACE="Arial" size=1>
<?= $Row_b->bubble2 ?>
</font>
</td>
<?} if ($Row_i->image3){?>
<td ALIGN="CENTER" width="30%"><IMG SRC="/images/<?= $Row_i->image3 ?>" ALT="<?= $Row_p->title_url ?>" BORDER=0>
<br>
<FONT FACE="Arial" size=1>
<?= $Row_b->bubble3 ?>
</font>
</td>
<?}?>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"><FONT FACE="Arial" size=2><a href="#TOP">Back to Top</a></font></td>
</tr>
<!-- Section1 End -->
<?
}
?>
Is there a different way of adding on the $num section because I am using MS SQL. If I had a MySQL db, this code would work.PHP Code:<?= $Row_c->section_content[$num] ?>
Thanks.





Bookmarks