"; } $dif=3-$c; for($i=1; $i<=$dif; $i++){ echo "

 

"; } }else{ $query = "select * from recetas where id_receta='".$_GET['id_receta']."'"; $result = mysql_query($query) or die("Error en el Query : " . mysql_error()); $num_rows = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { extract($row); echo "
"; $query1 = "select * from img_recetas where id_receta='".$_GET['id_receta']."' limit 4"; $result1 = mysql_query($query1) or die("Error en el Query : " . mysql_error()); $num_rows1 = mysql_num_rows($result1); if($num_rows1!=0){ echo "
    "; while ($row1 = mysql_fetch_array($result1)) { extract($row1); echo "
  • "; } echo "
"; } echo "

$nombre

Ingredientes

".nl2br($ingredientes)."

Preparación:

".nl2br($descripcion)."


<< Volver

"; echo "
"; } echo "
"; $query = "select * from recetas where estado=0 ORDER BY RAND() LIMIT 5"; $result = mysql_query($query) or die("Error en el Query : " . mysql_error()); $num_rows = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { extract($row); echo " "; } echo "
"; } ?>