function connect () { global $conn; $conn = new PDO('mysql:host=localhost;dbname=xxx', 'användarnamn', 'lösenord'); }