Jump to content
MakeWebGames

CrazyT

Members
  • Posts

    708
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by CrazyT

  1. Well, i got on here first, saw the post, i saw the > removed it and posted. :]
  2. Line 37 print "\n<tr><td>{$r['itmname']}</td>><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; Change to: print "\n<tr><td>{$r['itmname']}</td><td>[img=itempics/{$r[]</td><td>{$r['itmdesc']}</td><td>\${$r['itmbuyprice']}</td><td>\${$r['itmsellprice']}</td><td><form action='itembuy.php?ID={$r['itmid']}' method='post'>Qty: <input type='text' name='qty' value='1' /><input type='submit' value='Buy' /></form></td></tr>"; :)
  3. This is pritty useless when your using, is_numeric, abs, and int at the same time. $_GET['ID'] = isset($_GET['ID']) && ctype_digit($_GET['ID']) ? $_GET['ID'] : 0;
  4. Umm - No why would you even use money_formatter, that is just the stupidest function there includig mysql_escape too.
  5. Incorrect, remove the { and }echo "House tax: \$".number_format($ir['Taxes']);
  6. You could change this for different styes in the game, say dragons and vampires, of course you can add more in the array. $templates = array ( 'dragon', 'vampire' ); include_once './templates/'. (isset($templates[$ir['type']]) ? $templates[$ir['type']] : 'dragon') .'_header.php'; @illusions, maybe something like this? include_once './templates'. ($ir['gender'] === 'Male' ? '' : 'fe') .'male_header.php';
  7. Yet, your hosting site is slow for a while then i visited it again after now its fine. Why would someone want hosting from you when they can go to a different bigger hosting, company and be better off. -.-
  8. Then you check the image before you display it, to see if it contains php inside. simple.
  9. Fail! xD
  10. You say you secured, the img tag, but i done a few tests and i've spoofed it.. So how can have you secured it..
  11. CrazyT

    Help save dogs

    LOL!
  12. Yes' this may be your thought up idea to add to the topic, but by far is not your code as it has been pretty much used before you most likely got into php. As I have stated here in the past. I am no coder and only come here for extra ideas to use myself, but when someone here may be asking for help with something or I may be able to add to something being posted that may or may not work. I will do so. Also, what I posted does work just as well as what you have posted on the first page. I only said I think it will work because of simple people like yourself that have nothing better to do than to talk trash to other members of the forum (Internet Gangster)! You posted this: if ( isset($_SESSION['HTTP_USER_AGENT']) ) { if ( $_SESSION['HTTP_USER_AGENT'] != sha1( $_SERVER['HTTP_USER_AGENT'] )) { session_unset(); session_destroy(); header("Location: login.php"); } } else { $_SESSION['HTTP_USER_AGENT'] = sha1( $_SERVER['HTTP_USER_AGENT'] ); }   I posted this: $IP = $_SERVER['REMOTE_ADDR']; $IP = mysql_real_escape_string($IP); if (isset($_SESSION['HTTP_USER_AGENT']) && ($_SESSION['HTTP_USER_AGENT'] !== sha1($_SERVER['HTTP_USER_AGENT']))) { session_write_close(); header('Location: login.php'); die; } else { $_SESSION['HTTP_USER_AGENT'] = sha1($_SERVER['HTTP_USER_AGENT']); }   :thumbsup: LOL Don't try claim stuff i posted (edited) :) n00b
  13. CrazyT

    PHP [Explode]

    Why should i help you when you keep sending e-mails from my e-mail to other people. IE: Pudda, and same to Pudda to me? Are you a idiot? I'm sure you are. But here anyway.   $names = "a,b,c,d,e,f,g,h,i"; $names = explode(",", $names); echo "<pre>"; print_r($names); echo "</pre>";   Now you would have something like: array ( 0 => 'a', 1 => 'b', 2 => 'c', 3 => 'd', 4 => 'e', 5 => 'f', 6 => 'g', 7 => 'h', 8 => 'i' );   Now to get f you would need to do. echo $names[5]; Done :)
  14. Wow you got that out of another topic i commented on = (MINE)
  15. I could go on for ever (old topic xD) C Cr Cra Craz Crazy I could carry on doing loads lmao xD
  16. Seen shes a girl and shes mine now lmao - :D message me (L) :P
  17. lmao You need to select there userids'
  18. Always on xbox? = sad lol I always play GTA IV LC - Add me/my bros account - CrazzzzzyC Don't test me on GTA ya'll die hard. xD
  19. Oh please, i get laid more times than you will ever - Plus i get laid with your mum every few days. lmao
  20. Lissen your starting to piss me fucking off, lissen yeah you idiot dumbass fuck, so suck a fucking dick you have no life like i said don't let your dad touch you down there damn kid whats going on.. lmaoo SUCK A FUCKING DICK YOU NO LIFE FUCK! LMAO!
  21. Yet still a failure why would you run more queries when you don't need to? n00b. Changed into one: $db->query("INSERT INTO inventory VALUES ('',1,$userid,100), ('',2,$userid,100)"); Simple n000b.
  22. lol - I'm just saying so you don't add it again into another mod :)
  23. CrazyT

    Traffic

    Second one gets my vote, don't really like first one to much blue :s
  24. Well the way he is doing it it would only match lower case, if you wanted to match upper case and lower case you would need to change this line: ~(www\.|http\://|\.com|\.co\.uk|\.net|\.org)~ to this line: ~(www\.|http\://|\.com|\.co\.uk|\.net|\.org)~i   Thanks :)
  25. I see quite a few of you people doing the same thing using It's pritty useless, if your using switch() because you all have a default one, so if it isn't found, it would just use the default switch, function.
×
×
  • Create New...