Created
July 21, 2010 17:07
-
-
Save Goddard/484772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sql2 = "UPDATE users SET logintime=?, iplog = CONCAT(iplog, ?) WHERE id=? AND iplog NOT LIKE ?"; | |
$query2 = $DB->prepare($sql2); | |
$query2->execute(array($date_time, $ip ."':'", $id, "'%'". $ip ."'%'")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is a good example of how to use a PDO object to prepare a SQL statement and execute it.