Arrays returning same result - Help!

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

jackbrigd
New php-forum User
New php-forum User
Posts: 1
Joined: Wed Mar 27, 2013 1:53 am

Arrays returning same result - Help!

Postby jackbrigd » Wed Mar 27, 2013 1:55 am

}else{
$body .="Sale Conveyancing Costs<br/>";

$billDetails1 = $billDetails[0];
$body .= "<b>Fees:</b> &pound;" . $billDetails1['fees'] . "<br/>";
$body .= "<b>VAT:</b> &pound;" . $billDetails1['vat'] . "<br/>";
$body .= "<b>Office Copies:</b> &pound;" . $billDetails1['off_copy'] . "<br/>";
$body .= "<b>Total<sup>(inc VAT)</sup>:</b> &pound".$billDetails1['grant_total']."<br/><br/>";

$body .="Purchase Conveyancing Costs<br/>";

$billDetails2 = $billDetails[0];
$body .= "<b>Fees:</b> &pound;" . $billDetails2['fees'] . "<br/>";
$body .= "<b>VAT:</b> &pound;" . $billDetails2['vat'] . "<br/>";
$body .= "<b>Land Registry Fees:</b> &pound;" . $billDetails2['reg_fee'] . "<br/>";
$body .= "<b>Search Pack:</b> &pound;" . $billDetails2['search_pack'] . "<br/>";
$body .= "<b>Final Searches:</b> &pound;" .$billDetails2['final_search_pack'] . "<br/>";
$body .= "<b>Total<sup>(inc VAT)</sup>:</b> &pound".$billDetails2['grant_total']."<br/><br/>";
$body .= "<b>Stamp Duty:</b> &pound;" . $billDetails2['stamp'] . "<br/>";


These are both found in PHP mailer and are found in an else statement...
The if statements for the fees for purchase and sale produce the correct results, however, when put together, they have the same results, can anyone suggest why these arrays are returning the same result?

chrisranjana.com
New php-forum User
New php-forum User
Posts: 8
Joined: Sat Dec 07, 2002 6:47 pm
Location: Chennai , Tamil Nadu , India
Contact:

Re: Arrays returning same result - Help!

Postby chrisranjana.com » Wed Mar 27, 2013 7:37 am

You mean $billDetails1 contains the same result as $billDetails2 ?


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests