note 89171 added to mysqli-stmt.bind-param

From: Date: Wed, 25 Feb 2009 10:29:21 +0000
Subject: note 89171 added to mysqli-stmt.bind-param
Groups: php.notes 
Request: Send a blank email to php-notes+get-151095@lists.php.net to get a copy of this message
/* just explaining how to call mysqli_stmt_bind_param with a parameter array */ $sql_link = mysqli_connect('localhost', 'my_user', 'my_password', 'world'); $type = "isssi"; $param = array("5", "File Description", "File Title", "Original Name", time()); $sql = "INSERT INTO file_detail (file_id, file_description, file_title, file_original_name, file_upload_date) VALUES (?, ?, ?, ?, ?)"; $sql_stmt = mysqli_prepare ($sql_link, $sql); call_user_func_array('mysqli_stmt_bind_param', array_merge (array($sql_stmt, $type), $param); mysqli_stmt_execute($sql_stmt); ---- Server IP: 69.147.83.197 Probable Submitter: 78.181.109.181 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-param.php Edit -- https://master.php.net/note/edit/89171 Del: integrated -- https://master.php.net/note/delete/89171/integrated Del: useless -- https://master.php.net/note/delete/89171/useless Del: bad code -- https://master.php.net/note/delete/89171/bad+code Del: spam -- https://master.php.net/note/delete/89171/spam Del: non-english -- https://master.php.net/note/delete/89171/non-english Del: in docs -- https://master.php.net/note/delete/89171/in+docs Del: other reasons-- https://master.php.net/note/delete/89171 Reject -- https://master.php.net/note/reject/89171 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151095) next »