simple need variable help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jasondavis
Forum Commoner
Posts: 60
Joined: Sat Feb 04, 2006 5:35 pm

simple need variable help

Post by jasondavis »

I have code like this below

Code: Select all

<?echo $sitename;?> Picture train <? 
echo "".number_format($trainid[0],0);
?>.......... The Best Train on MyCrib with a viewable Archive of <?
echo "".number_format($total_riders[0],0);
?> users!

I need to make

$bulletinsubject = that code above but I don't know the proper format please help
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

I think what your saying is that you want that to be in a variable so that you can call it on other pages and location?

I don't know about that, but you could put that code on a seperate PHP page, and then just do this where you want that to be displayed:

Code: Select all

<?php
include("the_page_this_the_code_on_it.php");
?>
Post Reply