PHP Theme

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kasya
    New Member
    • Jun 2006
    • 57

    PHP Theme

    Please Correct This theme's mistakes:


  • Niheel
    Recognized Expert Moderator Top Contributor
    • Jul 2005
    • 2432

    #2
    You need to explain the problem better. You can't really expect people to help if you don't make the effort to explain exactly what your problem is. Post some background information.

    - KUB
    niheel @ bytes

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Actually I suspect this is advertising, there appears to be nothing wrong with the pages this link points.

      I was going to post as much and give the author a chance to explain though.

      Comment

      • Kasya
        New Member
        • Jun 2006
        • 57

        #4
        When i write the render_header() ; in the end of file a lot of errors occur.

        Comment

        • Banfa
          Recognized Expert Expert
          • Feb 2006
          • 9067

          #5
          What errors? Give us as much information as you have?

          As I saw in a newsgroup recently, imagine you walked into a garage said said the's a problem with my car, what do you think the mechanic would say in response?

          Comment

          • Kasya
            New Member
            • Jun 2006
            • 57

            #6
            Warning: Missing argument 1 for render_header() in z:\home\localho st\www\crysalis \theme.php on line 9

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 15

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 16

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 17

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 20

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 28

            Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 31




            Fatal error: Call to undefined function: dbquery() in z:\home\localho st\www\crysalis \theme.php on line 36

            Comment

            • Banfa
              Recognized Expert Expert
              • Feb 2006
              • 9067

              #7
              [play]

              Customer: My right hand indicator is not working.

              Mechanic: Well that could be the bulb, the switch the relay or the wiring.

              Customer: Good, can you fix it?

              Mechanic: Certainly where is your car?

              Customer: Oh I left it at home.

              Mechanic: So it's not here?

              Customer: No, is that going to stop you fixing it?

              Mechanic: You are a very silly customer!

              [/play]


              Warning: Missing argument 1 for render_header() in z:\home\localho st\www\crysalis \theme.php on line 9

              I'd hope that this is rather obvious, you have called render_header without a required argument. The following example would produce this

              [php]

              function EchoWithNewLine ( $text )
              {
              echo( $text . "\n" );
              }

              EchoWithNewLine ();
              [/php]

              Notice: Use of undefined constant THEME - assumed 'THEME' in z:\home\localho st\www\crysalis \theme.php on line 15

              You have used a constant that is not defined, so PHP assumes you mean the name of the constant itself as a string.

              [php]
              $THEME = "HELLO";

              $text = THEME; /* Undefined constant, missing $ */

              $array = ( "THEME" => "BLUE", "SIZE" => "BIG" );

              $myTheme = $array[THEME];
              /* Undefined constant, THEME should have " or '
              round it, this will break later if someone
              defines the constant THEME */
              [/php]


              Fatal error: Call to undefined function: dbquery() in z:\home\localho st\www\crysalis \theme.php on line 36

              You have called a function that is not defined anywhere

              [php]
              ThisFunctionDoe sNotExist();
              [/php]

              Comment

              Working...