Jump to content


Photo

Calling function in table cell


  • Please log in to reply
2 replies to this topic

#1 Terry103

Terry103
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 23 September 2006 - 10:19 PM

How do I call a function from within a cell in a table?

I have tried:
<?php echo 'calcprice('; echo $row_rs_ebicases['price']; echo ','; echo $discnt; echo ')';?>

This shows the correct values that are passed, but does not call the function and return a value

#2 wolves

wolves
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts

Posted 23 September 2006 - 10:25 PM

<?php echo calcprice($row_rs_ebicases['price'],$discnt); ?>


#3 Terry103

Terry103
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 23 September 2006 - 11:19 PM

Thank you, that worked.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users