PHP beginner |
|
Hi,
Ik zit al even met een klein probleempje, wanneer ik gebruik maak van fate_format in mijn SELECT query, moet ik alle overige velden 1 per 1 typen, aangezien ", *" na de date_format niet meer werkt, is hier iets aan te doen?
$sQuery = "SELECT id, username, type, company, function, name, lastname, btw, street, nr, zip, city, country, telephone, mobile, msn, website_url, facebook, twitter, hyves, linkedin, avatar, DATE_FORMAT(online, '%d/%m/%Y %H:%i:%s') AS online_date, DATE_FORMAT(signup_date, '%d/%m/%Y') AS signup_date FROM users WHERE id = '".antisql($_GET['id'])."' ";
$sQuery = "SELECT id, username, type, company, function, name, lastname, btw, street, nr, zip, city, country, telephone, mobile, msn, website_url, facebook, twitter, hyves, linkedin, avatar, DATE_FORMAT(online, '%d/%m/%Y %H:%i:%s') AS online_date, DATE_FORMAT(signup_date, '%d/%m/%Y') AS signup_date FROM users WHERE id = '".antisql($_GET['id'])."' ";
Met vriendelijke groet,
Niels
|