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
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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.