if ($packages == "1"){

if ($airporttransfer == "car"){
$airporttransfer2 = "12.00"};
if ($airporttransfer == "bus"){
$airporttransfer2 = "10.00"};
if ($airporttransfer == "none"){
$airporttransfer2 = "0.00"};

};


() round brackets round the condition {} braces around the 'do it' bit :)

HTH

Peter

-----Original Message-----
From: Chris Payne [mailto:[EMAIL PROTECTED]
Sent: 27 February 2003 00:43
To: php
Subject: [PHP-DB] Parse Error


Hi there everyone,

I'm trying to run an if statement and inside that have other if's, but it
keeps telling me I have a parse error on the first if in the if statement
(The second if down).  Can anyone see what i'm doing wrong?

if ($packages == "1")(

if ($airporttransfer == "car")(
$airporttransfer2 = "12.00");
if ($airporttransfer == "bus")(
$airporttransfer2 = "10.00");
if ($airporttransfer == "none")(
$airporttransfer2 = "0.00");

);

Thanks for your help :-)

Chris



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to