FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

please check my code and tell me where the error is

 


jossylala
hello, i got this default code:
Code:
  <? }
if($user_id=="13" || $user_id=="5"){
?>
and i want to make it it a way that all users would be include, that is user id 1-1000. how do i modify the code becuase the modification i did gave me erro. thanks.Please i really need to know this quick
Peterssidan
I see no reason for errors as long as you have an { earlier that is closed by the } on the first row, and you also close the if case.

If you want all users to be included do you really need the if statement at all? If you want to allow user id 1-1000 you can do it like this
Code:
if($user_id >= 1 && $user_id <= 1000){
Marcuzzo
what error were you getting? because this is pretty basic stuff
sonam
Your } bracket is on wrong position.

Code:
<?php
if($user_id >= 1 && $user_id <= 1000){
echo "something";
}
?>


Sonam
jossylala
thanks guys, its now working perfectly.
Related topics

Hello There I am new to frihost Please check my new page at
Admins please check out the games section..
whats ur fav music?
Joomla - frontpage 2 columns help!
login and register system error

AJAX tutorial [2nd part now updated]
Problem connecting to MySQL database with PHP [RESOLVED]
mail system......an mysql....
Problems with Member System (RMB-SCRIPTING)
Dynamic PHP Images

Programming Help & Support Guidelines
PHP Tutorial: Basic Shoutbox w/ MySQL
preview my site
Problem with MySQL Server Please Help!!
C++, simple things???
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.