Jump to content
MakeWebGames

bluegman991

Members
  • Posts

    394
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by bluegman991

  1. if this stuff is in a function and the defined variable is outside of the function make sure u have global $r; or global $memb; or whatever ur variable is, somewhere in there also make sure the variable is defined before u call to it if u know this stuff srry if im making it seem like u didnt know it i just dont know why any of this stuff isnt working
  2. no prob ;)
  3. u have to use a different variable than $h because its a variable that is already defined that u need try this   if($r['hospital']) { $hos="[img=images/icons/hosp.png]"; }
  4. this should work if($r['hospital']) { $h="[img=images/icons/hosp.png]"; } u forgot the } at he end
  5. i see the problem in function index() change global $db, $ud, $uID; to global $db, $ud, $uID, $run_admin;
  6. first try removing the "()" from $select_admin if that doesnt work post 5 lines before and after where u got the error from
  7. cookies are stored on your computer so no 1 person on 1 computer cant steel another person login info on another computer from that all that does is save ur username and password so u dont have to retype it in everytime ur logged out which is not really needed anymore cuz most good browsers have save password options built in
  8. its 1am where im at soz i can only think of 1 way to do it right now i could probably think of more l8tr depends on what comes to mind the way is on submit u can have check for the username and password in 2 different queries then send off 4 session variables loggedinsite1,loggedinsite2,useridsite1,useridsite2 or whatever you use to define your users
  9. lol didnt even know they people had already posted them but made em myself :thumbsup: but after just looking at them. first there scattered all over the forums also mine r a bit lighter and easier customizable than the ones i just looked at and all updates from the crons are seen on page load. that means no refresh to see ur status
  10. anybody having trouble with crons and not that familiar with php/mysql? ill sell u database ran cron jobs :thumbup: $10(usd)
  11. not sure what kind of macro cheat protection u r using but i think ur problem is probably u have to make sure a session is started before the code starts
  12. if u dont feel like typing $_GET['blah']=abs($_GET['blah']); u can just put this in global functions   function get($gname) { return $_GET[$gname]=abs($_GET[$gname]); }   then where ever u need to cleanse a $_GET just do this   get(blah); then anytime after that when u print or echo $_GET['blah'] it will output the clean version :D u can also do this for post   function post($pname) { return $_POST[$pname]=abs($_POST[$pname]); }
  13. this works fine on mysite check to make sure your link to the images is correct then check to make sure your using the right variable and your sql query is correct if($r['laston'] >= time()-15*60) { $on="[img=onlinee.png]"; } else { $on="[img=offlinee.png]"; }
  14. that 1 works immortal :) i didnt know we still needed the ['username'] part
  15. it prints the same thing when i use what u just said immortal :S Array
  16. using what alabamahit said prints this Array
  17. nope samething Resource id #18
  18. $test=$db->query("SELECT `username` FROM users WHERE userid=1"); print "{$test}";   is that right?   if so i get this when i do it   Resource id #18
  19. $test=$db->query("SELECT `username` FROM users WHERE userid=1"); print "{$test}"; is that right? if so i get this when i do it Resource id #20Resource id #23
  20. i was wondering tho in the sql query immortal said not to SELECT * FROM i was wondering how to select a certain field from the table and print it without selecting them all
  21. immortal is right in a function you have to redefine your variables or u can just put this instead of re-defining them global $var1,$var2; but im not sure if when u global a $_GET vaiable it will import the variable u secured or import it straight from the url
  22. if($r['laston'] >= time()-15*60) { $on="[img=onlinee.png]"; } else { $on="[img=offlinee.png]"; } that should work i changed <img src=onlinee.png> to
  23. wow thats interesting something i would totally try when they finish it
  24. lol i made a page like this for my site except it was all 1 page :|
  25. i would recommend putting a textbased rpg app on facebook unless it is very different from most other text based rpg's because there are already a few on there as 2nd,3rd,etc... servers of other exceptionally large tb rpg games and all of them are pretty much the same and because of this they turn out to be not even 1/4th as popular as their main servers basically im saying it would be a waste of time unless u plan on putting up something entirely different
×
×
  • Create New...