Location: PHPKode > projects > PHP Enter > www/print.php
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$name=$_GET['name'];
include('settings.php');
$resulty = mysql_query("select * from newser where univer = '" . mysql_real_escape_string($name) ."'")
or die(mysql_error()); 
while($nrow=mysql_fetch_array($resulty)){
$val[] = $nrow;
}
$revres = mysql_query("select * from reviews where comrev = '" . mysql_real_escape_string($name) ."' order by cdate desc")
or die(mysql_error()); 
while($revrow=mysql_fetch_array($revres)){
$reval[] = $revrow;
}
$incname=$_GET['name'];
$smarty->assign('incname', $incname);
$smarty->assign('newser', $val);
$smarty->assign('reviews', $reval);
$smarty->caching = 0;
$smarty->display('print.php',$name);
?>
Return current item: PHP Enter