[AJUDA]PHP
#10

Quote:
Originally Posted by [JD]BlackFire
View Post
pode colocar o cуdigo aqui para dar uma olhada?
info.php >
PHP Code:
<?php
#chama o arquivo de configuraзгo com o banco
require 'conn.php';
#seleciona os dados da tabela produto
$query mysql_query("SELECT usuario FROM informacoes");
?>
<form name="usuario" method="post" action="">
 <label for="">Selecione um produto</label>
 <select>
 <option>Selecione...</option>
 
 <?php while($usuario mysql_fetch_array($query)) { ?>
 <option value="<?php echo $usuario['usuario'?>"></option>
 <?php ?>
 
 </select>
</form>
conn.php
PHP Code:
<?php
mysql_connect
('localhost','root','3630207') or die(mysql_error());
mysql_select_db('informacoes') or die(mysql_error());
?>
Ele tб criando tudo, sу que no drop down list, aparece sу a mensagem " Selecione ".. era pra aparecer o resto
Reply


Messages In This Thread
[AJUDA]PHP - by mengueh - 22.05.2012, 20:52
Re: [AJUDA]PHP - by Kuddy - 22.05.2012, 21:02
Re: [AJUDA]PHP - by Jeffrey_Hatrix Jeffrey_ - 22.05.2012, 21:03
Re: [AJUDA]PHP - by mengueh - 22.05.2012, 21:03
Re: [AJUDA]PHP - by BreakDriFT - 22.05.2012, 21:03
Re: [AJUDA]PHP - by paulor - 22.05.2012, 21:22
Re: [AJUDA]PHP - by [JD]BlackFire - 22.05.2012, 21:45
Re: [AJUDA]PHP - by mengueh - 22.05.2012, 21:50
Re: [AJUDA]PHP - by [JD]BlackFire - 22.05.2012, 21:56
Re: [AJUDA]PHP - by mengueh - 22.05.2012, 22:09
Re: [AJUDA]PHP - by [JD]BlackFire - 22.05.2012, 22:18
Re: [AJUDA]PHP - by mengueh - 22.05.2012, 22:19
Re: [AJUDA]PHP - by BreakDriFT - 22.05.2012, 22:20
Re: [AJUDA]PHP - by [JD]BlackFire - 22.05.2012, 22:22
Re: [AJUDA]PHP - by mengueh - 22.05.2012, 22:24
Re: [AJUDA]PHP - by BreakDriFT - 22.05.2012, 22:25
Re: [AJUDA]PHP - by [JD]BlackFire - 22.05.2012, 22:26
Re: [AJUDA]PHP - by Ricop522 - 22.05.2012, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)