$baglan = mysqli_connect("localhost", "root", "root" );
mysqli_select_db("yeni");
$sql = "select * from user where id IN (1)";
$result = mysqli_query($sql);
if ( mysqli_num_rows($result) > 0 ) {
while($row = mysqli_fetch_assoc( $result )) {
echo $row['name'];
}
}


Bunu dener misiniz?:)