Ok, es este:
Código PHP:
<? include_once("db.php");
//Get Avatar
function avatar($ida){
$avatarToGet = mysql_query("SELECT * FROM avatar WHERE idUser='$ida'");
$avatarGet = mysql_fetch_array($avatarToGet);
$avatarImg = $avatarGet['image'];
return $avatarImg;
}
//Get ShowName
function showname($ids){
$showToGet = mysql_query("SELECT * FROM showname WHERE idUser='$ids'");
$showGet = mysql_fetch_array($showToGet);
$showname = $showGet['showname'];
$showname = ucwords(strtolower($showname));
return $showname;
}
//wall coments
function postFrom($idObj){
$postToGetPost = mysql_query("SELECT * FROM wall_post WHERE id='$idObj' LIMIT 1");
if($postGetPost = mysql_fetch_array($postToGetPost)){
$idfromPost = $postGetPost['idfrom'];
}
return $idfromPost;
}
?>