WAHT is my error???
| From: | Andre | Date: | Fri, 20 Aug 2004 18:34:51 +0000 |
| Subject: | WAHT is my error??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-194357@lists.php.net to get a copy of this message | ||
Inside of one ARRAY can I make one WHILE
function tabelas($tabela_tipo){
$sql = mysql_query("SELECT * FROM ".$tabela_tipo."_credito ORDER BY
".$tabela_tipo."_ordenar");
$return = "<select name=\"tabelas\" class=\"textblack\">\n";
$tabela_array = array("".
while($registo = mysql_fetch_array($sql)){
array ("".$registo[0]."",
"".$registo[0]." ".$registo[0]."");
}.""
foreach($tabela_array as $subarray) {
list($num, $text) = $subarray;
$return .= "<option value=\"$num\"
selected>$text</option>\n";
}
$return .= "</select>\n";
return $return;
}