Good to hear guys 😉 that's how I'm doing since I've learnt PHP/MySQL, but I was wondering maybe it's wrong. But apparently it's not. Thanks for that 😉
Second question - does anybody know why function NOW() doesn't work when I'm using it in my querys in PDO ? It's working without PDO and all my PDO querys are working fine, but when I'm trying to:
$query = $conn->prepare('SELECT * FROM profiles WHERE date>NOW()');
doesn't work! doesn't give me any errors, just doesn't output any data. but as I said exactly the same statement works fine with plain mysql, what's going on ? is it a bug or something ? I'm using PHP 5.3.0 ...