Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

0 *H 01 0 +0 *H $ Reply-To: "Pedro M. S. Oliveira" email protected>> From: "Pedro M. S. Oliveira" email protected>> To: "PHP db" email protected>> Subject: Fw: [PHP-DB] Drop-down menus Date: Thu, 4 Jan 2001 12:22:02 -0800 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 ----- Original Message ----- From: "Pedro M. S. Oliveira" email protected>> To: "PHP db" email protected>> Sent: Thursday, January 04, 2001 12:11 PM Subject: Re: [PHP-DB] Drop-down menus > hello all, this is a piece of code i made, it works... > some of the vars name are in portuguese. my first language. > as the query but if you know a bit of sql and how php you will put this > working fast > > > > $db = mysql_connect ($host,$mysqluser,$mysqlpass); > mysql_select_db ($database,$db); > $query="select disponibilidade from disponibilidade"; > $values = mysql_query ( $query,$db); > if (!$values) > { > echo "erro"; > exit; > } > $opcao = mysql_fetch_array ($values); > do > { > $disp[$i]=$opcao[disponibilidade]; > $i++; > > } > while ($opcao=mysql_fetch_array ($values)); > $options = join("