PHP code: <%php $mysqli = new mysqli('localhost', 'user', 'password', 'world'); $stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)"<img src="images/smilies/23.gif" smilieid="206" border="0" alt="" />; $stmt->bind_param('sssd', $code, $language, $official, $percent); $code = 'DEU'; $language = 'Bavarian'; $official = "F"; $percent = 11.2; /* execute prepared statement */ $stmt->execute(); %>
<%php $mysqli = new mysqli('localhost', 'user', 'password', 'world'); $stmt = $mysqli->prepare("INSERT INTO CountryLanguage VALUES (?, ?, ?, ?)"<img src="images/smilies/23.gif" smilieid="206" border="0" alt="" />; $stmt->bind_param('sssd', $code, $language, $official, $percent); $code = 'DEU'; $language = 'Bavarian'; $official = "F"; $percent = 11.2; /* execute prepared statement */ $stmt->execute(); %>