Jump to content

chigley

Members
  • Posts

    957
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    charlie@charlie-h.co.uk

Profile Information

  • Gender
    Male
  • Location
    Merseyside, England

chigley's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php $lines = file("akc.txt"); foreach($lines as $line) { $line = trim($line); if(substr($line, 0, 1) == "!") { $breed = substr($line, 1, (strlen($line) - 2)); $query = mysql_query("UPDATE table SET AKC = 'YES' WHERE breed = '{$breed}'") or die(mysql_error()); } } ?> ^ Try that
  2. <?php $event = $_GET['event']; header("Location: http://www.website.com/index.php?page=checkout&event={$event}"); ?> Use double quotes when using variables inside them. I also added {} to make doubly sure
  3. http://www.phpfreaks.com/forums/index.php?action=pm;sa=send;u=50039
  4. Should work and, yes, I'll need the info.
  5. You won't be able to use their current login data with the script, which would mean the PHP will require a username/password to use to login. I'm a bit bored, so I'm happy to help with this, but I'll need some account credentials
  6. Just below the bottom post, and a bit to the left is a "Topic Solved" button
  7. UPDATE calendar SET am700='1', am730='1' WHERE date='14/04/08'
  8. That link requires a login so isn't much help. Is there no way you could have all the item stats in a database somewhere? Or shown on a page that doesn't require a login?
  9. So... Attack: 10 HP: 10 Max rage: 10 Experience per turn: 10 Rage per turn: 10 Rampage: 10 Would become: 11.5 for each (after 1 enchant) 12.5 for each (after 2 enchants) 13.5 for each (after 3 enchants) 14.5 for each (after 4 enchants) Is that right? If yes, that's easy, now all we need to do is understand the input.
  10. If you're in PHP 5, you can use file_put_contents(). If not, fopen() and fwrite() will do the job.
  11. If the question was for me: Mysql Data Types, like "date" or "time"!!! See the manual If not sorry. Nah it was aimed at the OP
  12. You'll have to explain it better than that. We need to know: - What the input will be - How to process the input - What the output will be - Exactly where the statistics are stored Plus, members of this forum tend to fix existing code rather than do your code from scratch.
  13. cURL and/or file_get_contents() depending on whether the form uses POST or GET.
  14. What's the formula for the calculation? And where are the statistics stored?
×
×
  • 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.