|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-02-17 16:35 UTC] turhan_rahmi at mailexcite dot com
Hi, I make a php program with MySql database. When I do a connection to MySql I have the same Id number connection (every time, Id number 1). If I do several connections with other username and password, for all these connections I have the same Id number 1. I dont' know if it is normal or not... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 22:00:01 2025 UTC |
Associate the links with different variables. $db = mysql_pconnect(...); $db_other = mysql_pconnect(...); $query = mysql_query("...", $db); /* OR */ $query = mysql_query("...", $db_other); Now you know which identifier you are using at any given time.