Now, I have this query here,
$consultapedidos = mysql_query("SELECT * FROM pedidos WHERE produzido = '0'");
if(mysql_num_rows($consultapedidos)==true){
while($lnped = mysql_fetch_array($consultapedidos))
}
When it returns true I want it to list the results it finds, but if it returns false, I want it to update the page every 5 seconds until it finds a record. Anyone have any idea how I can do this?