Help...!!!!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sat Jul 09, 2005 9:00 pm    Post subject: Help...!!!! Reply with quote

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 View user's profile Send private message Send e-mail
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Jul 09, 2005 9:10 pm    Post subject: Re: Help...!!!! Reply with quote

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 View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sat Jul 09, 2005 9:57 pm    Post subject: Reply with quote

Thanks - It works now...
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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


Powered by phpBB phpBB Group