Answers for "php pdo random multiple insert query"

PHP
0

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); 
    }
}
Posted by: Guest on October-01-2021

Browse Popular Code Answers by Language