note 48889 deleted from function.mysqli-real-connect by tularis

From: Date: Tue, 11 Jan 2005 10:38:19 +0000
Subject: note 48889 deleted from function.mysqli-real-connect by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-83066@lists.php.net to get a copy of this message
Note Submitter: hunreal at gmail dot com ---- To use different character to connet mysql. Try this, $mysqli = mysqli_init(); $mysqli->options(MYSQLI_INIT_COMMAND, "SET NAMES 'UTF8'"); $mysqli->real_connect($mysqli_addr, $mysqli_user, $mysqli_pass, $mysqli_db); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); }

« previous php.notes (#83066) next »