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>





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to