PHP is all about logic. If you don't have logic, you will never get anywhere.
yep, so basically what your error, this one:
( Parse error: parse error, unexpected ')' in /home/artorb5/public_html/max/ao.php on line 72 )
means that there was something wrong with the syntax itself, the actual way you wrote the code. and unexpected ')' meant that you had a close-parenthesis character that shouldn't have been there!
just to help you boost your learning curve
Don't worry about my learning curved, its been boosted. Why don't you try and run that code under php 5 and see? I don't know what problems you are having, but it is an error free snippet.
And here is another snippet for you of those who don't strive for updated techniques.
$d = date ( 'H' ); if ( $d > 22 ) { echo 'Good Night!'; } else if ( $d > 18 ) { echo 'Good Evening!'; } else if ( $d > 15 ) { echo 'Good Afternoon!'; } else if ( $d > 12 ) { echo 'Good Day!'; } else if ( $d > 6 ) { echo 'Good Morning'; } else { echo 'Hello'; }
Anyways:
@ http://www.pixel2lif...p...st&p=178938
Change it with this:
if ( $d >= 22 && $d < 6 ) {