Quote:
Originally Posted by playboy
<?PHP
$PHP_SELF = 'msm.php';
$category = "2";
$number = "27";
$template = "Headlines";
include("cutenews/show_news.php"); ?>
|
On the page you're trying to put this information on (I'm guessing it'll be index.php?), you'll have to download the php file, and add that information (quoted) to the file, somewhere above this:
PHP Code:
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###
Although I'm not really sure how your news system is printing this information.. you may want to give some more details on it so I can analyze the solution further. I don't think you need the $PHP_SELF variable, but I could be wrong. You'll have to inform me on what exactly is included with the "show_news.php", as well as what's involved within the "msm.php" file.
However, setting up a variable is easier than you might think. Basically it is assigning something to something. By this I mean, you can set a number to a variable, and use that variable to print off the number. For example:
Using the term $1 anywhere in your page, would print "1". You can do almost anything with variables when you get fluent enough with them.