SQL Problem, WHERE Statment is wrong
Posted
by stck777
on Stack Overflow
See other posts from Stack Overflow
or by stck777
Published on 2010-03-20T10:43:34Z
Indexed on
2010/03/20
10:51 UTC
Read the original article
Hit count: 233
$sql = 'SELECT
id,
DATE_FORMAT(date,"%d.%m.%Y - %H.%i Uhr") AS dat,
user1,
user2,
p_user1,
p_user2,
be_user1,
be_user2,
win
FROM
kok_1on1_matches
WHERE
user1="$user"
OR
user2="$user"';
What is wrong with the WHERE statement?
© Stack Overflow or respective owner