Jump to content
MakeWebGames

SilverStar

Members
  • Posts

    71
  • Joined

  • Last visited

Everything posted by SilverStar

  1. <?php switch($location) { case "New York": $url = "URL HERE"; break; case "Los Angeles": $url = "URL HERE"; break; }
  2. Ahem. You could use a simple mysql_num_rows query to check the users table to see if an account with the desired username already exists, if 0 is the output then obviously it doesn't exist (no need to use all lowercase letters then). I still can't understand your concern about spaces but fair enough. Ok. Fair enough but I'd also recommend strip_tags rather than mres on it's own.
  3. How do you know he isn't using mres on the variable he will input into the database? Why would you not allow users to have uppercase and lowercase letters? In a mysql query Bob, BoB and BOB would be queried in the same way. Why would you want to remove spaces? I know quite a few games do remove spaces but it's not essential (I know it can cause some issues in some cases). Why would you want to remove numbers from usernames? This makes no sense.
  4. There's a decent shoutbox in the Way of The Mafia script which uses AJAX so need to ask the user to refresh the page and you could probably edit it to fit the engine you're using. However, I'm not sure what you require from your shoutbox.
  5. I'll be watching the opening ceremony. :)
  6. I can't associate the word "good" with "free" when it comes to web hosting. :rolleyes:
  7. How would using the post method work in this situation? You're GETTING information from the URL.
  8. But won't every user have their own respective position? I'm not sure I fully understand the concept.
  9. It would depend on how many users you have.
  10. I assume you're looking for Shared Hosting, http://www.hostgator.com
  11. Could you please answer my question on the previous page?
  12. What's the demand like for these mods? How many are purchased on a daily/weekly basis? Any figures for this?
  13. @hotmail.co.uk, seriously?
  14. Just in case some of you don't know, http://www.namecheap.com are offering coupons until July 16th 23:59 PM EST which allow you to purchase a domain for $1.16 for a year with free WHOIS protection. Go to this page: https://www.namecheap.com/deals/30000-retweets-0.98-domains-july-2012.aspx You must have a twitter and be following Namecheap (https://twitter.com/namecheap) to get a coupon code.
  15. Cool, cool. :rolleyes: Do you have any examples of your work? Any sort of portfolio?
  16. You honestly can't figure out what these errors are telling you? Or are you just lazy? :rolleyes:
  17. Your attitude is awful. If you don't want people to critique your website then don't post it on a forum.
  18. I haven't seen the Way of The Mafia script editted like this before, it looks decent, nothing unique though.
  19. You're already doing it. :confused: You're not being very clear hence the confusion.
  20. Display the rank where you display the other information? $top[rank]
  21. Here you go: http://php.net/manual/en/language.operators.increment.php
  22. Try this:   function hof_level() { global $db,$ir,$c,$userid, $myf; print "Showing the 50 users with the highest levels <table width=75% cellspacing=1 class=tablehof><tr style='background:gray'> <th>Rank</th> <th>User</th> <th>Level</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY level DESC,userid ASC LIMIT 50"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="<b><font color=red>";$et="</font></b>"; } else { $t="";$et=""; } if ($col=="0"){ $color="FFFFFF"; $col="1"; }else{ $color="000000"; $col="0"; } print "<tr style=background-color:#$color> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t{$r['level']}$et</td> </tr>"; } if ($color=="FFFFFF"){ $color="000000"; $col="1"; }else{ $color="FFFFFF"; $col="0"; } print "</table></div><div><img src='images/generalinfo_btm.jpg' alt='' /></div></div></div></div></div></div>"; }
  23. I'm the opposite. I HAVE to work from the inside to the outside. :p
  24. Change <? echo "".rep($fetch->sex.""); ?> to <? echo "$fetch->sex"; ?>
×
×
  • Create New...