Jump to content

casper_ghost

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by casper_ghost

  1. thank you for your replies, I know it should be turned on, I turned it off some time ago to force myself to look for bugs when the code breaks... but it will be a good idea to turn it on next time i can't find the error. cheers guys.
  2. Hi all while in the process of learning php, I wrote some code and couldn't work out why it wouldn't work, After going through everything with a fine tooth comb I couldn't see the problem. Then out of luck I removed $this I had assigned as a variable and it worked. replacing it back into the code broke it again. Is this a bug or does it mean something in php?
  3. it is a CSS declaration that makes sure that the CSS properties associated with the !important rule will always be applied, and will not be overwritten by conflicting CSS. for reading, http://webdesign.about.com/od/css/f/blcssfaqimportn.htm thank you
  4. !important" is that a css class? never seen it
  5. thank you Nono for the link
  6. and don't forget to keep the unminified version for making your changes on a later date
  7. isn't xhtml dead now they have moved away from it and back to html?
  8. to my understanding using mailto is bad
  9. Thank you Zane that was a big help
  10. Hi all I'm learning php and can't see where my error is in this simple code. I just want the country title to display with the states name below. here is the code. And thnk you for any help // create arrays $_Mexico = array ('YU' => 'Yucatan', 'BC' => 'Baja California', 'QA' => 'Oaxaca'); $_US = array ('MD' => 'Maryland', 'IL' => 'Illinois', 'PA' => 'Pennsylvania', 'IA' => 'Iowa'); $_Canada = array ('QC' => 'Quebec', 'AB' => 'Alberta', 'NT' => 'North Territories', 'YT' => 'Yukon', 'PE' => 'Prince Edward Island'); // combine them $_N_america = array ('Mexico' => $_Mexico, 'United States' => $_US, 'Canada' => $_Canada ); // create loop foreach ($_N_america as $country => $list) { echo "<h2>$country</h2><ul>"; } foreach ($list as $k => $v) { echo "<li>$k - $v</li>\n"; } echo '</ul>';
  11. Agreed. However, I have yet to encounter anything programmed in Java that didn't require me to install Java on the client. That is what I was referring to. Not sure I follow. why would you need to install on the client.. thought as a web application it will be server side, and any client side applications ran on java runtime already installed on the clients machine (well hopefully unless they just came out from a rock)
  12. Thank you for your replies. I have thought about learning both, but I'm sure even one will take years to master (but correct me if I'm wrong)
  13. Hello Guy's I know you have seen this question or somewhat of it many of times. But I really need your help to decided. I'm new to programming and stick in the middle of java and php. Everything I have found relating to such questions which is best to learn, the same answer arises. "Depends what you want to do... each has it's strength and weakness and it all comes down to what you want to do with the language, as one will be better then the other" or something on those lines. My questions is without starting a vs war, is what do they do better then each other. or even what do they do the other doesn't. I want to create websites, and possible app's to support those sites. I know java would be suited for the later, but some say java is only used for large web applications. so why can't it be suited for small projects? Anyway I hope you guy's understand what I'm trying to ask. Regards Sorry if I shouldn't post this question here
×
×
  • 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.