Jump to content


Photo

calling an array id from another phpfile


  • Please log in to reply
No replies to this topic

#1 pneudralics

pneudralics
  • Members
  • PipPipPip
  • Advanced Member
  • 241 posts

Posted 02 April 2006 - 06:11 AM

How do I call an array id from another php file? I did the include and $array [id];
Still nothing..? I want to get id [WELCOME_INTRO] to display on another php page.
This is the array (array.php):

$ar_build = array(
        'WELCOME_INTRO' => !$VAR[4] ? get_source("".$VAR[5]."/blah.html") : get_source("".$VAR[5]."/haha.html"),
        'ADS' => html_adds(3),
        );


This is part of a phpfile (myphpfile.php)
<table style="width:100%;" cellspacing="4" cellpadding="4">
<tr>
<td style="font-size:10pt;">

<span style="vertical-align:middle;"><b>LATEST ANNOUNCEMENTS</b></span>


<div style="padding:8px;">
<div>
<?php echo $ar_build [WELCOME_INTRO]; ?>
</div>
</div>
</td>
</tr>
</table>

(I include the array.php to this php file)

All I want is the stuff on blah.html page to be written where WELCOME_INTRO is.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users