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!

More Problems with Parsing

Status
Not open for further replies.

boab

Programmer
May 30, 2001
75
GB
Hi folks it's me again more probs in parse error land

am getting an error message:
Parse error: parse error in output_fns.php on line 270

function display_order($orderId)
{
if(get_Order($orderId))
{
$o_detail=get_order($orderId);
if(is_array($o_detail))
(
//line 270 echo&quot;<table>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>orderId</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;orderId&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>CustomerId</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;cutomerId&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
if(get_customer($customerId))
{
$c_detail=get_customer(customerId);
if(is_array($c_detail))
{
echo&quot;<tr>&quot;;
echo&quot;<td>order total</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;$amount&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td> placed on <td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;date&quot;].&quot;<td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Customer's Name</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;ship_name&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>First Address line</td>&quot;;
echo&quot;<tr>&quot;.$o_detail[&quot;ship_1st_add&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Second Address line</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;ship_2nd_add&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>City/Town</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;ship_city&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>zip/post code</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;ship_zip&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Country</td>&quot;;
echo&quot;<td>&quot;.$o_detail[&quot;ship_country&quot;].&quot;</td>&quot;;
echo&quot;</tr>&quot;;
if(get_ccdet(customerId))
{
$cc_detail=getccdet(customerId);
if(is_array(cc_detail))
{
echo&quot;<tr>&quot;;
echo&quot;<td>Card Number</td>&quot;;
echo&quot;<td>&quot;.$ccno.&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Card expiry</td>&quot;;
echo&quot;<tr>&quot;.$ccend.&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>start date</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Security<td>&quot;;
echo&quot;<td>&quot;.$threed.&quot;</td>&quot;;
echo&quot;</tr>&quot;;
echo&quot;<tr>&quot;;
echo&quot;<td>Card holder</td>&quot;;
echo&quot;<td>&quot;.$card_name.&quot;</td>&quot;;
echo&quot;</tr>&quot;;
if(get_product(orderId))
{
$p_detail=get_product(orderId);
if(is_array($p_detail))
{
while(list( $productId) = each( $p_detail ))
{
display_product_details(get_product_details($p_detail));

}
}
}
}
}
}
}
}
}

}}

any ideas folks?
 
i think it's the wrong bracket type

if(is_array($o_detail))
{
//line 270 echo&quot;<table>&quot;;
echo&quot;<tr>&quot;;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top