I\'m using the following script to use a database using PHP:
try{ $db = new PDO(\'mysql:host=\'.$host.\';port=\'.$port.\';dbname=\'.$db, $user, $pass, $o
try{ if(!is_null($db)) { $query = $db->prepare("INSERT INTO users (...) VALUES (...);"); $query->execute(array( '...' => $..., '...' => $... )); } } catch(Exception $e){ $GLOBALS['errors'][] = $e; }