Re: Interesting Problem
| From: | Jimmy | Date: | Thu, 10 Jan 2002 03:04:13 +0000 |
| Subject: | Re: Interesting Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79985@lists.php.net to get a copy of this message | ||
Hi Yoed,
> mysql_query("SELECT Id, Dep_Date, Return_DateFROM X,Y WHERE Dep_Date LIKE
> '%$SelectDate%' OR Return_Date LIKE '%$SelectDate%' ORDER BY
> Dep_Date");
> Will give you a ton of errors, and I'm not very fimilar with JOIN and SQL
> and how that works. My idea was to create two querys, but the results in
from your table definition i didn't see any relation between those two
tables, so most probably it doesnt make sense to make a "join"
operation.
just do it in 2 query, one for each table.
--
Jimmy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you have a hammer, you tend to treat everything as if it were a nail.