Jump to content

realshadow

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

realshadow's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Using radio box for these would be better since I cant imagine someone with sharingan in one eye and byublabla in second eye. Also if you get an array its propably because of name you give to each checkbox. "village[]" should be used for arrays, its kinda same as array_push(). Give them names like village1, village2, etc.
  2. One reason would be that you did not end inputs of villages correctly. You forgot to add "> Try to change it if you havent yet and see if it works. And one more thing, you have a typo there - change "Shariangan" to "Sharingan"
  3. Honestly no idea what is causing the problem. Tested it with your code at my pc and it worked like a charm. (PHP 5.2.6) Something similar happened once to my friend and he had to restart apache and it fixed it self. One of the reasons why it would show you the code instead of result would be that its not php file but html file instead.
  4. Ok. Lets say I have. class a { // methods and stuff } class b extends a { // methods and stuff } Now when I want to call a method from class a, I need to initialize it with $a = new a; And then I can call methods by $a->somemethod(); Same goes for class b. BUT I want to be able to call all methods from class b the same way I call them with class a. So if I have 100000 classes that extend class a, I can call each of them like this $a->blabla(); Do you copy? In the picter is what will I get with get_class_methods()h, where I have three classes that extend the main class. And as you can see when it ends (foreach loop), I get only methods from the last class. I hope you understand it now.
  5. Hello. I am trying to figure out how to call a certain class (main class) so it will have all methods from extended classes. (I hope you understand what I am trying to do ) Here is the code. foreach($objects as $object) { $object = new $object; } Which will result in following. That means the main object will only have his methods and methods from the last class in the list. Not all I am kinda stupid, I know. Any help would be appreciated.
×
×
  • 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.