Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- email REGEXP "^[a-k]"? yes
- email REGEXP "^[a-g]"? yes
- email REGEXP "^[a-d]"? no
- email REGEXP "^[e-g]"? yes, no need to ask!
- DELETE FROM posts WHERE id=1234 OR 1 -- LIMIT 1
- $stmt = $conn->prepare("INSERT INTO MyGuests (firstname, lastname, email) VALUES (?, ?, ?)");
- $stmt->bind_param("sss", $firstname, $lastname, $email);
- $stmt->execute();
- $req = $bdd->prepare('INSERT INTO decisions(decision, numero, publique, date, ip) VALUES(:decision, :numero, :publique, NOW(), :ip)');
- $req->execute(array(
- 'decision' => $want,
- 'numero' => $nombremagique,
- 'publique' => $publique,
- 'ip' => $ip
- ));
- conn.execute("SELECT * FROM ... WHERE firstname=%s AND lastname=%s", (val1,val2))
- data = {'firstname': 'Bob', 'lastname': 'Smith'}
- conn.execute("SELECT * FROM ... WHERE firstname=%(firstname)s AND lastname=%(lastname)s", data)
Add Comment
Please, Sign In to add comment