$result = mysql_query('SELECT * FROM lentele'); if(mysql_num_rows($result) > 0) { while($data = mysql_fetch_array($result)) { echo "<em>" . $data['laukelis'] . "</em>"; } }