All pastes #564530 Raw Edit

Stuff

public php v1 · immutable
·published 2007-06-13 17:08 UTC
rendered paste body
<?php$post_id = $_GET[quote];if (($pid) && is_numeric($pid)) {	$qtpost = "SELECT * FROM `table` WHERE `id` = '" . $pid . "' AND `nid` = '" . $id ."' ";	$qtquery = mysql_query($qtpost);	$qtresult = mysql_fetch_array($qtquery);	if (mysql_result($qtquery,0) > '0') {		echo '$qtresult[text]';	} else {		echo 'No Result';	}}?>