flup
03-22-2003, 06:23 AM
I need some help.
I made a template: $adminnews
I want to display that on the /admin/index.php page.
What i thried is:
<?php
$adminnews = ".gettemplate[adminnews]."
?>
<?php
eval("$adminnews" = \".gettemplate[adminnews]."\;";")
?>
And some others.
After that i Tried:
<?php
print $adminnews
?>
Nothing showed up, so i tried:
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title="adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic="adminnews"")
?>
These 4 i tried, and again after that truing to print $adminnews.
But i just can't get it. What am i doin' wrong?
I made a template: $adminnews
I want to display that on the /admin/index.php page.
What i thried is:
<?php
$adminnews = ".gettemplate[adminnews]."
?>
<?php
eval("$adminnews" = \".gettemplate[adminnews]."\;";")
?>
And some others.
After that i Tried:
<?php
print $adminnews
?>
Nothing showed up, so i tried:
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE title="adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic<>"adminnews"")
?>
<?php
$adminnews = mysql_query("SELECT * FROM template WHERE topic="adminnews"")
?>
These 4 i tried, and again after that truing to print $adminnews.
But i just can't get it. What am i doin' wrong?