开发者

SQL WHERE Statement is wrong

$sql = 'SELECT
    id,
    DATE_FORMAT(date,"%d.%m.%Y - %H.%i Uhr") AS dat,
 开发者_StackOverflow   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?


I think you use single quote ( ' ) that is why your variable is still a string and not a variable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜