Jump to content

Calling functions inside of functions help.


spires

Recommended Posts

Hi

 

I have a function inside on one include file. I also have another function inside of another include file.

 

What I need to be able to do is call one of the functions inside the other function.

 

Can this be done?

 

Here's my code for the main function which is trying to call other function into it:

Calling functions: landline_anynetwork_mins() - landline_anynetwork_price()

<?php

function myFunction(){
include("Library/deal_variables.php");

echo'
<table width="165" height="163" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" valign="top" background="GFX/Page_Business_mobiles/Column_Call_Action/Latest_offers.jpg">

<table width="145" height="158" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="31" colspan="3" align="left"><a href="latest_offers_open.php" class="link">Our Latest Offers</a> </td>
</tr>
<tr>
<td width="43" height="36" align="left" valign="top"></td>
<td width="15" align="center" valign="top"><img src="GFX/Wrapper_Business_Mobiles/Call_arrow.jpg" alt="business mobiles for business people" width="5" height="11" /></td>
<td width="87" align="left" valign="top"><a href="deal_landline_anynetwork.php" class="prodNavi">'.landline_anynetwork_mins().' mins for £'.landline_anynetwork_price().'</a></td>
</tr>
<tr>  
</table>

</td>
</tr>
</table>';
}

?>

 

 

As you can see here, it outputs the results above the table, not in the position that I want them.

http://www.businessmobiles.com/test2.php

 

 

Any help would be great.

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.