Answers for "Which of the following are true? a. MySQL supports Object oriented way of accessing the database b. MySQL supports Prepared statement c. MySQLi supports Object oriented way of accessing the database d. MySQLi supports Prepared statement"

PHP
2

mysqli_connect using prepare statement

$stmt = $mysqli->prepare("DELETE FROM myTable WHERE id = ?");
$stmt->bind_param("i", $_SESSION['id']);
$stmt->execute();
$stmt->close();
Copy
Posted by: Guest on May-20-2020
0

mysqli_connect using prepare statement

$stmt = $mysqli->prepare("UPDATE myTable SET name = ? WHERE id = ?");
$stmt->bind_param("si", $_POST['name'], $_SESSION['id']);
$stmt->execute();
$stmt->close();
Copy
Posted by: Guest on May-20-2020

Code answers related to "Which of the following are true? a. MySQL supports Object oriented way of accessing the database b. MySQL supports Prepared statement c. MySQLi supports Object oriented way of accessing the database d. MySQLi supports Prepared statement"

Browse Popular Code Answers by Language