I am trying to make it so my index.php looks like this:
<div id="main">
<div id="main_left">
<?php echo "$topic"; include 'home/news/forumnews.php'; ?>
Posted by:
<?php echo "$poster"; include 'home/news/forumnews.php'; ?>
<?php echo "$message"; include 'home/news/forumnews.php'; ?>
Thanks,
<?php echo "$poster"; include 'home/news/forumnews.php'; ?>
</div>
<div id="main_right">
<?php echo "$topic"; include 'home/news/servernews.php'; ?>
Posted by:
<?php echo "$poster"; include 'home/news/servernews.php'; ?>
<?php echo "$message"; include 'home/news/servernews.php'; ?>
Thanks,
<?php echo "$poster"; include 'home/news/servernews.php'; ?>
</div>
</div>
I tried doing it like that but it didn't work.
Basically what I'm trying to do is:
Have my forumsnews.php and servernews.php have $poster, $topic, and $message. Then have index.php link them from there (Make index.php smaller and cleaner)
News Linking
Moderator: General Moderators
-
Ranqe Twist
- Forum Newbie
- Posts: 4
- Joined: Fri Jul 23, 2010 4:22 pm
News Linking
Last edited by Ranqe Twist on Sat Jul 24, 2010 11:04 am, edited 1 time in total.
Re: News Linking
could you be less specific, please?I tried doing it somewhat like that but it didn't work.
remember, you're asking for FREE help. don't make us guess what could be wrong.
-
Ranqe Twist
- Forum Newbie
- Posts: 4
- Joined: Fri Jul 23, 2010 4:22 pm
Re: News Linking
Yea but I'm asking for the code to almost be rewritten