Location: PHPKode > scripts > WH Social > wh_social/framework/functions/retrieve.php
<?php

	$id = mysql_real_escape_string($_GET['id']);
	$id = intval($_GET['id']);

    $sql = "SELECT
                name
            FROM
                members
            WHERE
                id = " . $id;

    $result = mysql_query($sql) OR die(mysql_error());
    $row = mysql_fetch_assoc($result);

    if($row['name']) {

        echo htmlentities($row['name'], ENT_QUOTES);

        }else{

        echo $lang['user_not_exists'];
        }

?>
Return current item: WH Social