[AJUDA]PHP
#8

Quote:
Originally Posted by [JD]BlackFire
View Post
PHP Code:
<?php
$conexao 
mysql_connect('localhost''root''') or die ('Descriзгo do erro -' .mysql_error());
mysql_select_db('bancodedados',$conexao);
$query mysql_query("SELECT * FROM tabela WHERE Coluna = 'resultado'");
mysql_result($query,linha,"Coluna");//use esta funзгo para pegar o valor
?>
e caso queira pegar o valor de outra tabela para fazer a comparaзгo faзa a query desta maneira
PHP Code:
$query mysql_query("SELECT * FROM tabela WHERE Coluna = outratabela.colunadaoutratabela"); 
use tabela.coluna para pegar informaзoes de outra tabelas, portanto que estejam no mesmo BD.
Como eu poderia aplicar na opзгo do select(drop down list)
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)