note 108321 added to function.mysql-connect

From: Date: Tue, 17 Apr 2012 11:04:45 +0000
Subject: note 108321 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-187202@lists.php.net to get a copy of this message
When using or migrating to WAMP (version 2.2) package and using multiple databases, be sure to create new connection by using 4th parameter on mysql_connect. According to documentation, new connection is created if different input data are given. This is NOT true with this package's default configuration (the old connection is returned instead). The same code worked well with XAMPP package. It took me a day to figure this one out. ---- Server IP: 217.73.17.12 Probable Submitter: 217.73.20.15 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- https://master.php.net/note/edit/108321 Del: integrated -- https://master.php.net/note/delete/108321/integrated Del: useless -- https://master.php.net/note/delete/108321/useless Del: bad code -- https://master.php.net/note/delete/108321/bad+code Del: spam -- https://master.php.net/note/delete/108321/spam Del: non-english -- https://master.php.net/note/delete/108321/non-english Del: in docs -- https://master.php.net/note/delete/108321/in+docs Del: other reasons-- https://master.php.net/note/delete/108321 Reject -- https://master.php.net/note/reject/108321 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187202) next »