Jump to content

[SOLVED] syntax errors


darkfreaks

Recommended Posts

Whats the ":" in the middle for? If your trying to display that, you need to have it between the quotes. Try this:

 

".$catBrowse['items_counter'].")".$catBrowse['items_counter'].")";

 

If thats not right, give an example of what you want the display to look like. Also, show the rest of the code that goes along with that.

Link to comment
https://forums.phpfreaks.com/topic/69825-solved-syntax-errors/#findComment-350782
Share on other sites

THE CODE:

 

 <?php if (eregi('Y', $setts['enable_cat_counters'])) echo ($catBrowse['items_counter']!=0);  
                 "(.$catBrowse['items_counter'].")".$catBrowse['items_counter'].")";
	 ?>

 

i see alot of errors here lol

 

 

its sposed to display the amount of items like

 

Your Items:2

Link to comment
https://forums.phpfreaks.com/topic/69825-solved-syntax-errors/#findComment-350784
Share on other sites

ok i modified it with

 

  <?php if (eregi('Y', $setts['enable_cat_counters']))echo ($catBrowse['items_counter']!=0)."(".$catBrowse['items_counter']
.$catBrowse['items_counter'].)""; 
	  
	 ?>

 

now it gives me unexpected : how do i make it echo : without making it error?

Link to comment
https://forums.phpfreaks.com/topic/69825-solved-syntax-errors/#findComment-350790
Share on other sites

ok i worked out that error now i get

 

expecting ) on line 164

<?php
Article[i] = new Array ("

                <div class='borderfeat'>
                  <div class='c1feat' style='padding: 3px;'>
                    <b>&#160;&#160;&#187;&#160;</b> <a
                    href='%3C?=$site_url.processLink('>$name[$numb], 'id' =>
	    $id([$numb]));?>'>"<? echo titleResize($name[$numb]));?>///line164
?>

Link to comment
https://forums.phpfreaks.com/topic/69825-solved-syntax-errors/#findComment-350803
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.