Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


sKunKbad last won the day on August 14 2014

sKunKbad had the most liked content!

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Temecula, CA, USA

sKunKbad's Achievements

Advanced Member

Advanced Member (4/5)




Community Answers

  1. I'm guilty, so shoot me.

  2. Even on my day off I end up in Codeland.

  3. It's too hot to work. Wish I had a pool.

    1. davidannis


      Just move to Michigan.

  4. PHP 5.6.0 released!

  5. If you're only internet is a touch screen device, I feel sorry for you.

  6. I'm way overdue for a vacation.

  7. Time changes this weekend. Ahhhhhhhhh!

  8. class Homepage extends CI_Controller { public function __construct() { parent::__construct(); // Assuming layout.php or Layout.php is located in /application/libraries/ $this->load->library('layout'); } public function index() { $whatever = $this->layout->some_method(); } }
  9. I am envious of your short URL, but that being the most interesting thing about your site, I'd say you have some work to do.
  10. I think you might be going about this all wrong... or at least that is my opinion. When playing war, player one and player two are both dealt a hand of cards, or 1/2 the deck. You might represent these cards as arrays that are held in a cookie or session array. These arrays would be added to (if the player wins), or subtracted from (if the player loses), but in your game the cards come from a sizeless deck that doesn't ever ends. Also, the cards in each players hand do not get played randomly in a real game of war. The card that is played comes off the top of the players dealt hand (which is face down in front of them). So, I think you need to go back to the basics of how to play the game of war, and then think about using cookies or the session array to hold your cards. There's only 52 cards in a deck, and none of them are the same (with the exception of jokers). Again, consider using cookies or the session array.
  11. It's hard to see what is going on without seeing cardfunctions.php
  12. Any basic MySQL w/ PHP tutorial should be sufficient to get your started. What you are trying to accomplish is the basics of a web database application. Try seaching Yahoo! or Google for tutorials. I'm sure you will find millions.
  13. You should simplify your script to the bare essentials for testing, and also use code tags when posting.
  • 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.