Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php mysql prepare query

$stmt = $mysqli->prepare("SELECT * FROM myTable WHERE name = ? AND age = ?");
$stmt->bind_param("si", $_POST['name'], $_POST['age']);
$stmt->execute();
$stmt->close();
Source by websitebeaver.com #
 
PREVIOUS NEXT
Tagged: #php #mysql #prepare #query
ADD COMMENT
Topic
Name
4+8 =