Re: find (matching) person in other table
| From: | Jared Farrish | Date: | Wed, 30 May 2007 20:50:27 +0000 |
| Subject: | Re: find (matching) person in other table | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255871@lists.php.net to get a copy of this message | ||
On 5/30/07, Jared Farrish <farrishj@gmail.com> wrote:
$lastname = strpos('Rogers',0,2); $firstname = strpos('Timothy',0,2); $select = "SELECTStrike the above and make it: $lastname = substr('Rogers',0,3); $firstname = substr('Timothy',0,3); $select = "SELECTuid,LastName,FirstNameFROMusersWHERE LastName='$lastname%' AND FirstName='$firstname%'";
uid,LastName,FirstName
FROM users
WHERE LastName='$lastname%'
AND FirstName='$firstname%'";
Foolisness!
--
Jared Farrish
Intermediate Web Developer
Denton, Tx
Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$