Jump to content

MemphiS

Members
  • Posts

    258
  • Joined

  • Last visited

    Never

About MemphiS

  • Birthday 02/21/1989

Profile Information

  • Gender
    Male
  • Location
    Australia

MemphiS's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Currently i have script that runs when a users time ends or is before the current time. The script then updates a value for the user and adds a new value. This works 99% of the time but that 1% of the time it suddenly doesnt update mysql! Its extremely annoying, has anyone else come across this problem or have any information on how to ensure the scirpt works 100% of the time.
  2. I get the following X-Powered-By: PHP/4.4.4 Content-type: text/html
  3. Hmm None of my scripts used for cron have echo or prnt outputs. Its just to upated Statistics every 10minutes and to update afew other website mysql functions
  4. So ive already created poker, but im wondering if theres a more efficent way of working out the final card scores. Currently i just go through starting checking for a royal fush and work my way dwn to a high card with if statments etc.. Is there a better way or iis this the only way?
  5. Thanks, There ist any errors as such.. Just sick of all the Emails!! What is the command for just receiving mail when theres an error?
  6. is this the correct command? php /home/username/public_html/cronjobs/runcron.php > /dev/null ?????
  7. Thanks for both your responces didnt need to use mysql_real_escape_string(); for the purpose i was using it for
  8. if (isset($_POST'submit']) && is_numeric($_POST['cost'])) { $cost = (int) $_POST['cost']; } Is tis fine for entering $cost into a database without any risk of hacking? Or do i need to secure $cost anymore? Also When using switch isit fine to place mysql querys within the cases? Just want to double check my work before uploading it live
  9. Hmm ok thought that might the case, which sucks.. Thanks for your help
  10. I have a deck of cards started when i press submit, then i set round to 2, and i click another submit button and i loose all data and it returns to the default value of 1. Everytime you submit and i have $card = new cards(); Does this mean all data is reset? as i want to keep the data set?
  11. Thanks Projectfear =) haha gotta laught when i turns out to be something as small as that =p
  12. Doesnt seem to be workin for me at all :s <?php class cards { function cards(){} var $deck = array("2-H","3-H"); //.. And so on up to 52 cards } $start = 1; if ($start == 1) { $a = new cards(); $array = array ("$a->deck[0]","$a->deck[1]"); print_r($array); Just Gives out Array ( [0] => Array[0] [1] => Array[1] ) and so on so im not really to sure how to solve this Thanks for your help }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.