Jump to content
MakeWebGames

Karlos

Members
  • Posts

    951
  • Joined

  • Last visited

    Never

Everything posted by Karlos

  1. Re: Storing And Reading OS/Browser Information Meh.. That's what I forgot... Thanks Floyd :oops:
  2. Re: TwIsTeD WiShEs ! Granted.... But it lasts for 1 hour.. I wish I didn't need to work for 2 weeks :-D
  3. Re: FIRST THOUGH! Gold
  4. Re: [mccode2] 3 in one bank for people with multiple currencys :wink:   $db->query(" UPDATE `users` SET `bankmoney`=IF(`bankmoney`=-1, -1, `bankmoney`*1.5), `bankcrystals`=IF(`bankcrystals`=-1, -1, `bankcrystals`*1.5), `bankdiamonds`=IF(`bankdiamonds`=-1, -1, `bankdiamonds`*1.5) ");
  5. Re: Storing And Reading OS/Browser Information Iso.. I have done what you said but yet... No success... My lines in php.ini: The files in the same directory: Yet it still errors out (Despite stopping all services (PHP, Apache, ect.))
  6. Re: Storing And Reading OS/Browser Information Well so far without using get_browser() because of php.ini settings.. I get a decent working Browser Detection: Firefox 3.0.10.. But the OS Detection gives a faint idea... like Windows
  7. Re: Storing And Reading OS/Browser Information Warning - while you were typing a new reply has been posted. You may wish to review your post. Actually... I think I have a way.. :-) It uses an array but not get_browser()
  8. Re: Storing And Reading OS/Browser Information Yes. I was reading it for a while to think about how I could do it. I also read a few of the user comments and they didn't help very well.
  9. Re: Storing And Reading OS/Browser Information I was looking at that earlier.. But then I was thinking, staff who are not coders/website developers might not understand it. So is there an easy way to select what I want from $_SERVER['HTTP_USER_AGENT']?
  10. Hey, [*]Firstly, what would be the best way to store OS/browser information in my MySQL database? [*]Secondly, what would be the best way to display the the answer to question one?  
  11. Re: [V2] My home   <?php include_once (DIRNAME(__FILE__) . '/globals.php'); if ($ir['tv'] == 1) { echo 'You Already Did This Today'; exit($h->endpage()); } if (!isset($_GET['get'])) { echo '<center>What would you like to do? <table border="1" class="table"> <tr> <td>[url="myhome.php?get=tsf1"]Watch My T.V[/url]</td> <td>[url="myhome.php?get=tsf2"]Food[/url]</td> </tr> </table>'; } else if ($_GET['get'] =='tsf1') { echo 'You Watched A Bit Of Tv For A Bit & Got Full Energy. > [url="index.php"]Back[/url]'; $db->query(sprintf("UPDATE `users` SET `energy`=`maxenergy`, `tv`='1' WHERE `userid`='%d'", abs($userid))); } else if ($_GET['get'] =='tsf2') { echo 'You Had Chicken & Chips And Felt A Bit Of Will Coming Back > [url="index.php"]Back[/url]'; $db->query(sprintf("UPDATE `users` SET `will`=`maxwill`, `tv`='1' WHERE `userid`='%d'", abs($userid))); } else { echo 'Error! Go Away!'; } $h->endpage(); ?>   +1 For trying...
  12. Re: Monkey Wrench Do you know how long till this has roughly got till it's completed? :-P
  13. Re: [mccode v2] Crystal Temple I'll keep that in mind from now on :wink:
  14. Re: [mccode v2] Crystal Temple So your basically saying to keep it an integer and don't convert it to a string?
  15. Re: [mccode v2] Crystal Temple What do you mean by that?
  16. Re: help with crystal temple   Umm... Thanks? :lol:
  17. Re: [mccode v2] Crystal Temple However that is true... I prefer to encase numbers in single quotes, just preference, I would also add this script does still work with them being encased in numbers. :wink:
  18. Re: [mccode v2] Secure Bank! Could do... But most people have sense to know only numbers are allowed to be inputted. Also I would use a preg_* function ;)
  19. Re: FIRST THOUGH! Gorilla
  20. Re: FIRST THOUGH! Karlos
  21. Re: How to use sprintf? Well the query you had was basically 'hard coded' as I say.. As for the function.... Why use it on a number? Secondly... Magic Quotes will be deprecated in PHP 5.3.0 and removed in PHP 6
  22. Re: FIRST THOUGH! // FAIL   n00b :wink:
  23. Re: FIRST THOUGH! Sword
  24. Re: How to use sprintf?   // With sprintf(); if ($color == 1) { if($ir['crystals'] < 1000) { echo '<span style="color: #FF0000; font-wieght: 800;">Error! Sorry you do not have enough Crystals to make this purchase</span>'; } else { $db->query(sprintf("UPDATE `users` SET `usercolor`='#ffffff', `crystals`=`crystals`-'1000' WHERE userid=%d", $userid)); echo '<span style="color: #FF0000;">Congratulations, You successfully puchased your colored name...</span> > [url="index.php"]Back[/url]'; } } // Without sprintf(); if ($color == 1) { if($ir['crystals'] < 1000) { echo '<span style="color: #FF0000; font-wieght: 800;">Error! Sorry you do not have enough Crystals to make this purchase</span>'; } else { $db->query("UPDATE `users` SET `usercolor`='#ffffff', `crystals`=`crystals`-'1000' WHERE userid=".$userid); echo '<span style="color: #FF0000;">Congratulations, You successfully puchased your colored name...</span> > [url="index.php"]Back[/url]'; } }   :wink:
  25. Re: [mccode v2] Crystal Temple I provide support if it was an error/bug on my half.. I just don't provide support for my code being modified as it is not at my error in the code.
×
×
  • Create New...