now is working, but itsn't...
| From: | ::: Flavio Bastos Amiel::::::> | Date: | Fri, 09 Aug 2002 06:46:09 +0000 |
| Subject: | now is working, but itsn't... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111774@lists.php.net to get a copy of this message | ||
now is working, but itsn't doing the while, here's the new code
<?
require("conexion.php");
$accion=mysql_query("SELECT * FROM empresas");
IF (!$accion) {
echo "<div alig=\"center\">no se puede ver la solicitud</div>";
}
?>
<form name="form1" method="post" action="">
<select name="select">seleccione</select>
<?
IF ($accion) {
WHILE ($r = mysql_fetch_array($accion)) { ?>
<select name="<? echo $empresas ?>"><? echo $empresas ?></select>
<? } } ?>
</form>