Page 1 of 1

problems with varaibles?

Posted: Thu Oct 09, 2003 12:58 am
by weasel
i am geting this error...
Parse error: parse error in /home/triggerh/public_html/rs/process.php on line 3
when i use this script

Code: Select all

<?php
$result = $certs * $days * $price
echo 'If you get ' .$certs. 'a day for' .$days. ' and sell them for' .$price. ' each, you will make' .$result. ' when you are done.';
?>
any help please? thx

Posted: Thu Oct 09, 2003 1:04 am
by Paddy
No ; after the second line.

Posted: Thu Oct 09, 2003 1:07 am
by weasel
if u mean...

Code: Select all

<?php 
$result = $certs * $days * $price 
echo 'If you get ' .$certs. 'a day for' .$days. ' and sell them for' .$price. ' each, you will make' .$result. ' when you are done.'
?>
this diddent work either :S

Posted: Thu Oct 09, 2003 1:09 am
by Paddy
Sorry, I meant there is no ; after the second line. That is producing your error. Correctly

Code: Select all

<?php
$result = $certs * $days * $price;
echo 'If you get ' .$certs. 'a day for' .$days. ' and sell them for' .$price. ' each, you will make' .$result. ' when you are done.';
?>
My apologies for the confusion.

Posted: Thu Oct 09, 2003 1:11 am
by weasel
*kicks self*
thx... it works now :)