//conexión a la BD $ssql="SELECT * FROM tabla"; $rs=mysql_query($ssql); while($row=mysql_fetch_array($rs)){ echo "hola"; }