Re: Using results from one mysql query to make another
| From: | Adam Royle | Date: | Thu, 27 Feb 2003 12:26:09 +0000 |
| Subject: | Re: Using results from one mysql query to make another | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-25954@lists.php.net to get a copy of this message | ||
SELECT b.name FROM apliexperts a LEFT JOIN experts b ON a.expid = b.id WHERE softid = 2
I have a table that includes the ids of software aplications and experts (apliexperts). My page is loaded with the variable of the software id (softid), which it uses to match the experts for that software. But instead of returning just the expert id (expid), to use that expid to get the full row entry from the "experts" table. So if my apliexperts table has the rows: [softid] [expid] [id]3 0 0 2 1 1 2 2 3And the experts table has: [id] [Name]0 paul 1 john 2 markIt needs to return john and mark if the softid is 2. thanks, Jay