Re: [PHP-DB] 2 while loops - 2 tables

2001-03-16 Thread olinux
l web development/design > www.ryanflynn.com - Original Message - From: "Ryan Flynn" <[EMAIL PROTECTED]> To: ""olinux"" <[EMAIL PROTECTED]> Sent: Thursday, March 15, 2001 7:40 PM Subject: Re: [PHP-DB] 2 while loops - 2 tables > _

Re: [PHP-DB] 2 while loops - 2 tables

2001-03-16 Thread David
It is a little hard to advise on this without knowing the table schema, but it is generally best to make the database do as much of the work as possible rather than use logic in your script because databases are specifically optimized for what they do. If I were trying to do what you are talking

Re: [PHP-DB] 2 while loops - 2 tables

2001-03-14 Thread JJeffman
PHP-DB <[EMAIL PROTECTED]> Enviada em: quinta-feira, 15 de março de 2001 01:05 Assunto: [PHP-DB] 2 while loops - 2 tables I am trying to display info from 2 tables in a search result format. My problem is... how do I get the variables to display together? for example: A user selects a ci

[PHP-DB] 2 while loops - 2 tables

2001-03-14 Thread olinux
I am trying to display info from 2 tables in a search result format. My problem is... how do I get the variables to display together? for example: A user selects a city to search apartments in. $sql = "SELECT * FROM $table_name WHERE apt_city = \"$apt_city\" "; $result = mysql_query($sql, $co