Jump to content

bassichonda96

New Members
  • Posts

    2
  • Joined

  • Last visited

About bassichonda96

  • Birthday 02/23/1986

Contact Methods

  • AIM
    ismokedurneon05
  • MSN
    bowl339@adelphia.net
  • Yahoo
    bassichonda96

Profile Information

  • Gender
    Not Telling
  • Location
    Vincennes, IN

bassichonda96's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I figured it out, i needed to return instead of echo in the function.. works fine now thanks for the help.
  2. I have this... [code] function RandomNews(){ $query = mysql_query("SELECT * FROM tbl_news WHERE active='1' ORDER BY rand() LIMIT 0,1"); if (mysql_num_rows($query) == "1"){ $r = mysql_fetch_object($query); $id = $r->id; $title = $r->title; echo "<a href='view_news.php?id=$id'>$title</a>"; } } $news = RandomNews(); $tags = array('title'=>'Sparetime Recreation','news'=>$news); $tp->parseTemplate($tags); echo $tp->display();[/code] for some reason, when it parses the template, it puts the 'news' at the beginning of the parsed html. If i dont use the function RandomNews(); it works fine and puts it in the right place in the html... im confused. Help please. Thanks, Adam
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.