View previous topic :: View next topic |
Author |
Message |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Sat Jul 09, 2005 9:00 pm Post subject: Help...!!!! |
|
|
A freind on mine wrote this script. It's VERY simple. Unfortunatley for me, I have almost no php skills, so I can't debug it for him. When wht browser tries to load it, a blank page appears.
Code: |
<?php
define("DATE","July 9, 2005")
echo "This is part one of todays knowledge update. Today Is ";
echo ,DATE,;
echo " .<br><br><br>";
$x = 400;
$y = 4;
echo "In this part, I'll divide 400 by 4.<br>";
echo "Answer = ";
$total = $x / $y;
echo $total;
echo " .<br><br>";
echo "Not to hard...!!!!!<br><br>";
echo "This ends section 1. Check back later for section 2.";
?>
|
What is the matter with it? |
|
Back to top |
|
 |
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sat Jul 09, 2005 9:10 pm Post subject: Re: Help...!!!! |
|
|
p3 wrote: | A freind on mine wrote this script. It's VERY simple. Unfortunatley for me, I have almost no php skills, so I can't debug it for him. When wht browser tries to load it, a blank page appears.
Code: |
<?php
define("DATE","July 9, 2005")
echo "This is part one of todays knowledge update. Today Is ";
echo ,DATE,;
echo " .<br><br><br>";
$x = 400;
$y = 4;
echo "In this part, I'll divide 400 by 4.<br>";
echo "Answer = ";
$total = $x / $y;
echo $total;
echo " .<br><br>";
echo "Not to hard...!!!!!<br><br>";
echo "This ends section 1. Check back later for section 2.";
?>
|
What is the matter with it? |
1) Missing semicolon on the first line.
2) Commas on line 4.
Code: | define("DATE","July 9, 2005");
echo "This is part one of todays knowledge update. Today Is ";
echo DATE;
echo " .<br><br><br>";
$x = 400;
$y = 4;
echo "In this part, I'll divide 400 by 4.<br>";
echo "Answer = ";
$total = $x / $y;
echo $total;
echo " .<br><br>";
echo "Not to hard...!!!!!<br><br>";
echo "This ends section 1. Check back later for section 2."; |
_________________
 |
|
Back to top |
 |
 |
p3 -
Joined: 17 Jun 2005 Posts: 615
|
Posted: Sat Jul 09, 2005 9:57 pm Post subject: |
|
|
Thanks - It works now... |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|