Re: Function Alias: mysql()

From: Date: Thu, 06 Dec 2001 21:58:21 +0000
Subject: Re: Function Alias: mysql()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-76948@lists.php.net to get a copy of this message
I think it is aliased to mysql_db_query(). However the documentation states that this function is deprecated in PHP4.0.6. "Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use mysql_select_db() and mysql_query() instead. " (www.php.net documentation) My question is why is my code still working? If so, what are the consequences of using mysql() or mysql_db_query(0 with PHP4.0.6? /dkm ----- Original Message ----- From: "Tyler Longren" <tyler@captainjack.com> To: "Dennis Moore" <dmoore@ravens-nest.com>; <php-general@lists.php.net> Sent: Thursday, December 06, 2001 4:23 PM Subject: Re: [PHP] Function Alias: mysql() > Are you sure that isn't a custom function in your code (assuming you're > using somebody else's code)? > > It could be an alias to: mysql_db_query() > It has the same handlers, ex: > $rez=mysql_db_query($dbname,$query); > > Tyler Longren > > ----- Original Message ----- > From: "Dennis Moore" <dmoore@ravens-nest.com> > To: <php-general@lists.php.net> > Sent: Thursday, December 06, 2001 3:12 PM > Subject: [PHP] Function Alias: mysql() > > > I cannot seem to find in the documentation the what the function mysql() is > aliaseed to using PHP4.0.6. Any ideas? > > Example: > > $rez=mysql($dbname,$query); > > Everything works fine... But I want to be sure what is actually being used. > > /dkm > > >

« previous php.general (#76948) next »