Guest User

Untitled

a guest
Jun 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2.  
  3. $dbh = mysql_connect("localhost","team_del_smf1","stanton2") or die (mysql_error());
  4. $db = mysql_select_db("team_del_smf1");
  5.  
  6. $query = mysql_query("SELECT `ID_TOPIC` FROM `smf_topics` WHERE `ID_BOARD`='8' ORDER BY `ID_LAST_MSG` DESC LIMIT 8");
  7. while(list($ID_TOPIC) = @mysql_fetch_array($query))
  8. {
  9. $query2 = mysql_query("SELECT `subject`, `posterName` FROM `smf_messages` WHERE `ID_TOPIC`='$ID_TOPIC'");
  10. list($subject, $posterName) = @mysql_fetch_array($query2);
  11.  
  12. $scenenews .=<a href=\"/forums/index.php/topic,$ID_TOPIC.2.html\" class=\"Index_03\">$subject</a><br/>";
  13. }
Add Comment
Please, Sign In to add comment