Change mysql to mysqli