Location: PHPKode > projects > Qwench > Qwench-master/controllers/helpers.php
<?php

function getUser($id) {
	global $helper;

	$id = sanitize($id,"int");
	$sql = ("select * from users where id = '".escape($id)."'");
	$query = mysql_query($sql);
	$result = mysql_fetch_array($query);
	
	$helper->set('user',$result);
	return $helper->render();
}

 
Return current item: Qwench