Re: find (matching) person in other table
- From: farrishj@xxxxxxxxx ("Jared Farrish")
- Date: Wed, 30 May 2007 15:50:27 -0500
On 5/30/07, Jared Farrish <farrishj@xxxxxxxxx> wrote:
$lastname = strpos('Rogers',0,2);
$firstname = strpos('Timothy',0,2);
$select = "SELECT `uid`,`LastName`,`FirstName`
FROM `users`
WHERE LastName='$lastname%'
AND FirstName='$firstname%'";
Strike the above and make it:
$lastname = substr('Rogers',0,3);
$firstname = substr('Timothy',0,3);
$select = "SELECT `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." $$
- References:
- Re: find (matching) person in other table
- From: "Jared Farrish"
- Re: find (matching) person in other table
- Prev by Date: Re: [PHP] preg_match() returns false but no documentation why
- Next by Date: Re: [PHP] ini_set() security question
- Previous by thread: Re: find (matching) person in other table
- Next by thread: Re: [PHP] Re: find (matching) person in other table
- Index(es):
Relevant Pages
|