Re: find (matching) person in other table

From: 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 = "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." $$

« previous php.general (#255871) next »