Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doSomeQueries()
- {
- if($stmt = $mysqli->prepare("INSERT INTO table VALUES (?, ?, ?);"))
- {
- $stmt->bind_param("sss", $a, $b, $c);
- if(!$stmt->execute())
- {
- sendMail("mysqliError");
- }
- $stmt->close();
- }
- else
- {
- sendMail("mysqliError");
- }
- if($stmt = $mysqli->prepare("INSERT INTO table VALUES (?);"))
- {
- $stmt->bind_param("s", $a);
- if(!$stmt->execute())
- {
- sendMail("mysqliError");
- }
- $stmt->close();
- }
- else
- {
- sendMail("mysqliError");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement