RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > salestax(15.00,.075); > echo "" . co

Re: [PHP] Fatal error when calling nested function

2007-10-26 Thread Kefaleas Stavros
Edward Kay wrote: Here's the list : I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); From http://www.daaq.net/old/php/index.php?page=php+adv+functions&parent=php+flo

Re: [PHP] Fatal error when calling nested function

2007-10-26 Thread Kefaleas Stavros
Edward Kay wrote: Here's the list : I get the following error : *Fatal error*: Call to undefined function convert_pound() in ...*Untitled-1.php* on line *18 *line 18 is this one : echo convert_pound(15); From http://www.daaq.net/old/php/index.php?page=php+adv+functions&parent=php+flo

RE: [PHP] Fatal error when calling nested function

2007-10-26 Thread Edward Kay
> Here's the list : > > function salestax($price,$tax) { > function convert_pound($dollars, $conversion=1.6) { > return $dollars * $conversion; > } > $total = $price + ($price * $tax); > echo "Total cost in dollars: $total. Cost in British pounds: " > .convert_pound($total); > } > echo convert_po