SQL-HELL! How select-query with query for UID / PWD

From: Date: Wed, 24 May 2000 10:46:10 +0000
Subject: SQL-HELL! How select-query with query for UID / PWD
Groups: php.general 
Request: Send a blank email to php-general+get-423@lists.php.net to get a copy of this message
Gott der Gerechte... SQL macht wahrhaft demütig. I have a mysql-table, containing a field userid as a relation to the field userid in table users. I query this table for all records, using $result = mysqlquery("quarti","SELECT * FROM resume) - ok so far: ----> Now, what, if I want allow the execution of this query only to users with a valid password and userid, as contained in their record in the table users? I have entry variables $uname and $pword in the authentication routine. $result = mysqlquery("quarti","SELECT * FROM product WHERE username.users=$uname, password.users=$pword) What is wrong with the above sql (or what isn´t)? Thanks for a light. Helmut

« previous php.general (#423) next »