rpgmaker's Profile User Rating: -----

Reputation: 2 Apprentice
Active Members
Active Posts:
224 (0.15 per day)
02-October 11
Profile Views:
Last Active:
User is offline Apr 05 2014 05:02 PM

Previous Fields

Dream Kudos:
Icon   rpgmaker has not set their status

Posts I've Made

  1. In Topic: Programming a Pokedex pt. 2

    Posted 5 Mar 2014

    View PostKruSuPhy, on 03 March 2014 - 08:57 PM, said:

    View PostiLiTH, on 03 March 2014 - 09:10 AM, said:

    Hmm. To me it would seem smarter to migrate the database your using and modify it to have all types in the type field, explode the type field and print them all. On the other hand, to prevent that much work... I'm not yet experienced enough with PHP (or programming in general) to offer a better idea, but here's one option I can think of.

    class displayModule() {
       private $currentPokemon;
       private $previousPokemon;
       public function displayPokemon() {
          foreach(getPokemon() as $pokemon) {
             $this->currentPokemon = $pokemon;
             if($currentPokemon['name'] == $previousPokemon['name']) {
                echo $currentPokemon['type'];
             } else {
                echo $currentPokemon['type'] . $previousPokemon['type'];
             $this->previousPokemon = $pokemon;

    The database we're using is veekun's, which is an available pokemon database online. It's a pretty massive database, and doing that much could take hours/days from the way he's got it set up. Thank you, and the others who posted as well, for the suggestions, though. I'm going to try doing it using the JOINs, but if that doesn't work, I'll definitely just try doing it in PHP.

    I own a pokemon online game. I could send you my pokemon table. It has all the pokemon names types etc in.... 660 od rows. Its a mysql database so ull need to import it.

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown

Contact Information




rpgmaker has no profile comments yet. Why not say hello?