Like any other string
$stmt = $mysqli->prepare('insert into foo (dt) values (?)');
$dt="2009-04-30 10:09:00";
$stmt->bind_param('s', $dt);
$stmt->execute();
More Related Contents:
- inserting information and image in php and mysql
- mysqli or die, does it have to die?
- How to display errors for my MySQLi query? [duplicate]
- Fatal error: Call to a member function bind_param() on boolean [duplicate]
- When should I use MySQLi instead of MySQL?
- How to get count of rows in MySQL table using PHP?
- Correct way to use LIKE ‘%{$var}%’ with prepared statements?
- Example of how to use bind_result vs get_result
- mysqli::query(): Couldn’t fetch mysqli
- PHP MySQLI Prevent SQL Injection [duplicate]
- How to test if a MySQL query was successful in modifying database table data?
- How can I enable the MySQLi extension in PHP 7?
- mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in [duplicate]
- How can I use mysqli_fetch_array() twice?
- Advantages Of MySQLi over MySQL [closed]
- check if the query results empty row mysqli [duplicate]
- PHP PDO and MySQLi [duplicate]
- using nulls in a mysqli prepared statement
- Is mysql_real_escape_string() necessary when using prepared statements?
- Updating from MYSQL to MYSQLI [duplicate]
- PHP + MySql + Stored Procedures, how do I get access an “out” value?
- How to prepare statement for update query? [duplicate]
- php password_verify() hash and pass won’t match
- mysqli – fetch_Array error call to a member function fetch_array() on a non-object mysqli [duplicate]
- PHP to MySQL SSL Connections
- Using Prepared Statement, how I return the id of the inserted row?
- Strange problem with the length of the field gotten from database [duplicate]
- PHP prepared statements and transactions in a loop [duplicate]
- When should I close a database connection in PHP?
- Mysqli multiple row insert, simple multi insert query [duplicate]