[AJUDA]PHP
#18

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 * FROM informacoes") or die(mysql_error()); 
?> 
    <form name="usuario" method="post" action=""> 
        <label for="">Selecione um produto</label> 
         <select> 
             <option>Selecione...</option> 
             <?php 
             
while($dados mysql_fetch_array($query)) 
             {
                 echo
'<option value="'.$dados['usuario'].'"></option>'
             } 
             
?>  
        </select> 
    </form>
Vocк tб selecionando o usuario e depois dando um while pegando todo os dados da tabela..
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)