By usmc4life on
Please help I keep getting the same error message. I am new to all of this.
Parse error: parse error, unexpected T_STRING in /home/biddzon/public_html/themes/15/left.php on line 57
Here is line 57 and 58
// KEV's CHANGES -
changed following line to include items_counter
$getCats = mysql_query("SELECT
id,name,items_counter, hover_title FROM bidware_categories WHERE parent=0
AND hidden=0 ORDER BY theorder,name");
Please help if you can I have done all that I can do. I have someone that wants $50 to fix this but I am determined to do it myself. I am not wasting money on something that should be easy to fix.
Thanks
Comments
what's on line 56?or even
what's on line 56?
or even better, post the whole file.
Here is the whole file
// KEV'S CHANGES - changed
/img/bullet_arrow.gif" width="15" height="15" hspace="4" vspace="3" align="absmiddle">" <? echo ($catBrowse['hover_title']!="") ? "title=\"".$catBrowse['hover_title']."\"":""; ?>><? echo $c_lang[$catBrowse['id']];;?> <? echo ($catBrowse['items_counter']!=0) ? "(".$catBrowse['items_counter'].")":"(".$catBrowse['items_counter'].")";?>
following line to include items_counter
$getsCats = mysql_query("SELECT
id, name,item_counter, hover_title FROM bidware_categories WHERE parent=0
AND hidden=0 ORDER BY theorder,name");
while ($catBrowse=mysql_fetch_array($getCats))
{
$nbSubCats = getSqlNumber("SELECT id FROM bidware_categories WHERE parent='".$catBrowse['id']."'");
if ($nbSubCats>0) $catLink=$path."categories.php?parent=".$catBrowse['id']."&show=subcats";
else
$catLink=$path."categories.php?parent=".$catBrowse['id']; ?>
<?
}
?>
Thanks
May need to put code around your file
To post your file you'll need to put the code tags (look below) around your file so it's not parsed into HTML.
The likely cause is a missing semi-colon, quote mark, or other syntax error in your file left.php It's possible to see this by going directly to site/themes/15/left.php -- which may be easier for testing purposes.
------------------
Adding Understanding
--
Most commonly this error
Most commonly this error means that the line before 57 , line 56 does not end in a semi colon ;
humm
i have the same error