PHP help

Brad

Well-Known Member
Jun 5, 2012
2,320
993
this doesn't seem to echo the included file any help? heres the code

PHP:
<?PHP
if($rank<5){

echo "<!-- LOL -->";

}
else
include("/furni/assets/showtools.php");
?>
 

GarettM

Posting Freak
Aug 5, 2010
833
136
this doesn't seem to echo the included file any help? heres the code

PHP:
<?PHP
if($rank<5){

echo "<!-- LOL -->";

}
else
include("/furni/assets/showtools.php");
?>

Do a mock up and see if it works
PHP:
<?php

  # Mockup data
   
  $user_id  = 3;
   
  if($user_id <= 4) // dont wanna exclude 4.
  {
  header('Location: http://nicetry.com');
  exit;
  } else {
  require( dirname(__FILE__) . '//furni/assets/showtools.php');
  }

?>
 

Users who are viewing this thread

Top