'; $result = mysql_query("SELECT * FROM table"); while($res = mysql_fetch_assoc($result)){ echo $res['text'].'
'; }