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

Shiny’s picture

what's on line 56?

or even better, post the whole file.

usmc4life’s picture

Only local images are allowed.
Only local images are allowed./img/bullet_arrow.gif" width="15" height="15" hspace="4" vspace="1" align="absmiddle" >Stores
Only local images are allowed./img/bullet_arrow.gif" width="15" height="15" hspace="4" vspace="1" align="absmiddle">Classifieds
Only local images are allowed./img/bullet_arrow.gif" width="15" height="15" hspace="4" vspace="1" align="absmiddle">Forum


Only local images are allowed.
<?

// KEV'S CHANGES - changed
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']; ?>
Only local images are allowed./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'].")";?>

<?
}
?>

Only local images are allowed./img/pixel.gif" width="2" height="1">   Only local images are allowed./img/pixel.gif" width="2" height="1">

Thanks

jbrauer’s picture

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

--

nathandigriz’s picture

Most commonly this error means that the line before 57 , line 56 does not end in a semi colon ;

rave420’s picture

i have the same error