View Single Post
  #8 (permalink)  
Old 11-16-2002, 08:17 AM
mikem mikem is offline
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
It's simple...Last time I'm explaining this one. My hands are tired from typing this AGAIN!
8O
Your Code:

Code:
function themefooter() 
{ 
global  $index, $bgcolor1, $eXtreme_Colors; 

if ($index == 1) 
{ 

?> 
</td> 
<td valign="top" width="160"> 
<? 

  blocks(right); 
} 

?>
Fixed Code :
Code:
function themefooter() 
{ 
global  $index, $bgcolor1, $eXtreme_Colors; 



?> 
</td> 
<td valign="top" width="160"> 
<? 

  blocks(right); 
 

?>
LOOK closely at what I removed. You have an IF statement. and then soem stuff tha is in between a { and a } if you remove the If statement, you do not need the { and } either around the variable that follows the IF statement..

mikem
Reply With Quote