All pastes #478390 Raw Edit

Miscellany

public php v1 · immutable
·published 2007-05-09 04:05 UTC
rendered paste body
mysql_connect($server,$username,$password) or die(mysql_error());mysql_select_db($database);$query = "SELECT postid FROM vbthread 		WHERE forumid = '6' 		LIMIT '3' 		ORDER BY 'dateline' ASC";while($row = mysql_fetch_array(mysql_query($query))){				if(!isset($postid['1']))		{			$postid['1'] = $row['postid'];			}				else if(!isset($postid['2']))			{				$postid['2'] = $row['postid'];			}					else if(!isset($postid['3']))			{				$postid['3'] = $row['postid'];				}