Sipt please help

  • Thread starter yaboo
  • Start date
4
0
script please help

PHP:
<?php
$time=date('H');
if($time<=10){
	$say='Hi';
}
else {
	$say='bye';
}
echo $say.'it is now '.date('H');
?>
it does not work,can u help me ???

TNX
 
Last edited:
551
1
Edit: actually no, I think that was wrong.

Are you getting error messages? The code works fine on my machine.
 
Last edited:

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top