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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.