Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange Parse Error

Status
Not open for further replies.

boab

Programmer
May 30, 2001
75
GB
Hi guys am trying to get a project finnished and am not getting much joy from the code I am using code below

//set shipping address same as address
if(!$ship_name&&!$ship_1st_add&&!$ship_2nd_add&&!$ship_city&&!$ship_state&&!$ship_zip&&!$ship_country)
{
$ship_name = $name;
$ship_1st_add = $1st_add; //line 23
$ship_2nd_add = $2nd_add;
$ship_city = $city;
$ship_state = $state;
$ship_zip = $zip;
$ship_country = $country;
}
and this is generating the error message below

Parse error: parse error, expecting `T_VARIABLE' or `'$'' in order_fns.php on line 23

Any ideas?
 
The var cannot start with a number. You have 2 bad var names ($1st_add and $2nd_add).

That's the only thing i see there.
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top