Jump to content

[Solved] Prepared statements


chokk

Recommended Posts

How do you use more than one placeholder in prepared statements?Answer:

$statement = $this->connect->prepare("INSERT INTO tablename (coloumn1, coloumn2) VALUES (?, ?)");$statement->bind_param("ss", $string1, $string2);$statement->execute();$statement->close();

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...