Dynadot โ€” .com Transfer

Can't see what is wrong with small bit of code. Any ideas?

Spaceship Spaceship
Watch

edmarriner

Established Member
Impact
4
hi,

i cant see what i have done wrong, its problly something simple.

any help welcome

PHP:
  <?php 
  if($p=="0"){
  echo"<script language='JavaScript' src='http://digg.com/diggjs/front/$cat/30' type='text/javascript'></script>";
  }
  elseif($p=="1"){
  echo"<script language='JavaScript' src='http://digg.com/diggjs/submitted/$cat/30' type='text/javascript'></script>";
  }
  else(!$cat){
  echo"$intro";
  } 
  ?>

thanks ,

-ed

--edit--

lol, i worked it out. my else at the end was wrong.

thanks anyways
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
PHP:
  else(!$cat){
  echo"$intro";
  }
  ?>

'else' shouldn't have an expression.
 
0
•••
0
•••
Appraise.net
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back