Richard_1010
11-25-2007, 05:28 PM
Hi all!
I am having a problem, I edited a file which is php and removed some html and replaced it with PHP as I was trying to install something but now I get the following error...
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in
FILE PATH/product_listing.php on line 177
I have took some of the code out of the file which includes line 177 and put it below...
$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
$product_contents[] = $lc_text;
}
echo '<td width=169 valign=top>
<table cellspacing=0 cellpadding=0>
<tr><td width=169 height=49>
<table cellspacing=0 cellpadding=0 align=center>
<tr><td height=10></td></tr>
<tr><td align=center style="padding-left:7px;padding-right:7px">'.$product_contents[1].'</td></tr>
<tr><td height=6></td></tr>
</table>
</td></tr>
<tr><td>
<table cellspacing=0 cellpadding=0 align=center width=115>
<tr><td height=5></td></tr>
<tr><td>'.$product_contents[0].'</td></tr>
<tr><td height=4></td></tr>
<tr><td align=right>'.$product_contents[2].'</td></tr>
</table>
</td></tr>
<tr><td width=169 height=15></td></tr>
<tr><td height=5></td></tr>
<tr><td align=center><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>
if ($productsold ['products_quantity'] > 0)
{
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
}
else
{
$lc_text = '<img src="includes/languages/english/images/buttons/out_stock.gif">';
}</td></tr>
</table>
</td>
';
$column ++;
if ($column >= 3) {
$rows ++;
$column = 0;
Line 177 is...
if ($productsold ['products_quantity'] > 0)
Been trying for a while to sort it out and only use forums when I can't do it, any comments given are greatly appreciated!
I am having a problem, I edited a file which is php and removed some html and replaced it with PHP as I was trying to install something but now I get the following error...
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in
FILE PATH/product_listing.php on line 177
I have took some of the code out of the file which includes line 177 and put it below...
$list_box_contents[$cur_row][] = array('align' => $lc_align,
'params' => 'class="productListing-data"',
'text' => $lc_text);
$product_contents[] = $lc_text;
}
echo '<td width=169 valign=top>
<table cellspacing=0 cellpadding=0>
<tr><td width=169 height=49>
<table cellspacing=0 cellpadding=0 align=center>
<tr><td height=10></td></tr>
<tr><td align=center style="padding-left:7px;padding-right:7px">'.$product_contents[1].'</td></tr>
<tr><td height=6></td></tr>
</table>
</td></tr>
<tr><td>
<table cellspacing=0 cellpadding=0 align=center width=115>
<tr><td height=5></td></tr>
<tr><td>'.$product_contents[0].'</td></tr>
<tr><td height=4></td></tr>
<tr><td align=right>'.$product_contents[2].'</td></tr>
</table>
</td></tr>
<tr><td width=169 height=15></td></tr>
<tr><td height=5></td></tr>
<tr><td align=center><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image_button('small_view.gif', IMAGE_BUTTON_BUY_NOW) . '</a>
if ($productsold ['products_quantity'] > 0)
{
$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
}
else
{
$lc_text = '<img src="includes/languages/english/images/buttons/out_stock.gif">';
}</td></tr>
</table>
</td>
';
$column ++;
if ($column >= 3) {
$rows ++;
$column = 0;
Line 177 is...
if ($productsold ['products_quantity'] > 0)
Been trying for a while to sort it out and only use forums when I can't do it, any comments given are greatly appreciated!