Jump to content

Strider64

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Strider64

  1. The only problem I could probably see is if you are writing something that might conflict with queries or other predefined statements and maybe a person might get it confused with another class that is not extended with extends? Come to think of it I really can't think of a time that I wrote something like that within public, protected or private function and I can't think of reason why to? And I don't know why you would be using a lot of getter or setter classes/methods?
  2. Strider64

    Preg_Match()

    preg_match("/word/i", $string_to_examine); // The i allows for upper & lower case words..... I personally do this : $user_edits = str_ireplace($patterns, $replacements, $text); //replace it
  3. I think you have to do something like the following: while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf("ID: %s Name: %s", $row[0], $row[1]); } You can find more info here: PHP Manual
  4. I use a neat little hack for older browsers to see the newer html5 tags (It works pretty good for the most part). In your css stylesheet put this at the top. body, header, hgroup, nav, article, section, footer { display: block; } Then I created a javascript, (actually I use an external file and I know I am missing some tags(elements)) <!--[if lt IE 9]> <script type="text/javascript"> document.createElement('header'); document.createElement('section'); document.createElement('nav'); document.createElement('aside'); document.createElement('article'); document.createElement('footer'); document.createElement('hgroup'); </script> <![endif]--> There's even external javascript scripts on the web that do the same thing (maybe even a little better); however, I having tested this with IETester and for the most part it does a pretty good job. John
×
×
  • Create New...