Peter Lovatt wrote:

> $sql = "SELECT * FROM users WHERE (name='$name')"
> 
> if you are not getting an error, it is usually worth echoing the query SQL
> 
> echo $sql ;
> 
> and perhaps trying it manually.
> 
> Is it possible the quotes around the $name are giving
> 
> SELECT * FROM users WHERE (name='$name')
> and not evaluating $name
> 
> rather than
> 
> SELECT * FROM users WHERE (name='fred')
> 
> which you wanted

echo $sql gives me:
SELECT * FROM users WHERE (name='admin') 
when entering admin as user. So the name is passed to the function but from 
then on ...

M.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to