Código PHP:
<?php
$link=mysql_connect("localhost","root","root");
mysql_select_db("x", $link);
$result=mysql_query("SELECT * FROM articulos WHERE estado='1'",$link) or
die("Problemas en el select:".mysql_error());
$array = array();
while($row = mysql_fetch_array($result)){
array_push($array,$row);
}
?>