Why might a PHP code say there is an error on the last line whil using crimson editor?

  • Thread starter Thread starter plazmaplanna
  • Start date Start date
P

plazmaplanna

Guest
Can't get this program to run...keeps saying there is an error on the last line. (using crimson editor)

Here is my actual code
<?php
$loanAmmount = 0;
$deposit = 0;

printf("Enter Loan Ammount: ");
fscanf(STDIN, "%d", $loanAmmount);

if($loanAmmount >= 50000);
{
$deposit = "5";
}
if($loanAmmount >= 25000);
{
$deposit = "6";
{
if($loanAmmount >= 1);
{
$deposit = "7";
{

printf("Deposit on %d loan will be %d", $loanAmmount, $deposit);
print("Deposit on $loandAmmount loan will be $deposit.");
printf("\n\n\n");
?>
either ending will do..whether print or printf...i didn't mean to post both on this one though
 
Back
Top