Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php pdo random multiple insert query

function updateMultipile($table, $data = array())
{
    $db = DBLink::getInstance();
    foreach($data as $id => $update)
    {
        $sql = "UPDATE ?n SET ?u WHERE location_id = ?i";
        $db->query($table,$update,$id); 
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #pdo #random #multiple #insert #query
ADD COMMENT
Topic
Name
5+3 =