php-general Digest 13 Jan 2013 16:37:25 -0000 Issue 8096
Topics (messages 320066 through 320078):
Can't connect to MySQL via PHP
320066 by: Rick Dwyer
320067 by: Ray
320068 by: admin
320069 by: Ashley Sheridan
320070 by: Rick Dwyer
320071 by: Jim Giner
320072 by: admin
320073 by: Ashley Sheridan
320074 by: Ashley Sheridan
320075 by: Jim Giner
320076 by: musicdev
320077 by: tamouse mailing lists
320078 by: admin
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hello all.
I used the code below successfully to connect to a MySQL db on one hosting
provider. I've moved the code to a new hosting provider with new values and it
returns:
Access denied for user 'user'@'db.hostprovider.net' (using password: YES)
Even though I can copy and paste these three values (host, user and pass) and
paste into Navicat to make a connection. So the credentials are correct, but
they are not authenticating when used in PHP. I've tried making host
"localhost" and "127.0.0.1"… both with the same result.
Can someone tell me what I am doing wrong here?
Appreciate it.
Thanks,
--Rick
$db_name = "mydb";
$vc_host = "db.hostprovider.net";
$vc_user = "user";
$vc_pass = "pass";
$connection = @mysql_connect($vc_host, $vc_user, $vc_pass);
$db = mysql_select_db($db_name, $connection);
echo mysql_error();
--- End Message ---
--- Begin Message ---
On January 12, 2013 11:25:58 AM Rick Dwyer wrote:
> Hello all.
>
> I used the code below successfully to connect to a MySQL db on one hosting
> provider. I've moved the code to a new hosting provider with new values
> and it returns:
>
> Access denied for user 'user'@'db.hostprovider.net' (using password: YES)
>
> Even though I can copy and paste these three values (host, user and pass)
> and paste into Navicat to make a connection. So the credentials are
> correct, but they are not authenticating when used in PHP. I've tried
> making host "localhost" and "127.0.0.1"… both with the same result.
>
> Can someone tell me what I am doing wrong here?
>
> Appreciate it.
>
> Thanks,
> --Rick
>
>
are navcat and php on the same machine? mysql user accounts can and often do
take into account which machine the connection is comming from?
>
> $db_name = "mydb";
> $vc_host = "db.hostprovider.net";
> $vc_user = "user";
> $vc_pass = "pass";
>
> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass);
> $db = mysql_select_db($db_name, $connection);
>
> echo mysql_error();
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
> Sent: Saturday, January 12, 2013 8:26 AM
> To: php-gene...@lists.php.net
> Subject: [PHP] Can't connect to MySQL via PHP
>
> Hello all.
>
> I used the code below successfully to connect to a MySQL db on one
> hosting provider. I've moved the code to a new hosting provider with
> new values and it returns:
>
> Access denied for user 'user'@'db.hostprovider.net' (using password:
> YES)
>
> Even though I can copy and paste these three values (host, user and
> pass) and paste into Navicat to make a connection. So the credentials
> are correct, but they are not authenticating when used in PHP. I've
> tried making host "localhost" and "127.0.0.1". both with the same
> result.
>
> Can someone tell me what I am doing wrong here?
>
> Appreciate it.
>
> Thanks,
> --Rick
>
>
>
> $db_name = "mydb";
> $vc_host = "db.hostprovider.net";
> $vc_user = "user";
> $vc_pass = "pass";
>
> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
> mysql_select_db($db_name, $connection);
>
> echo mysql_error();
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
Try this for me
-----------------------------------------------------------
$db = mysql_connect($vc_host, $vc_user, $vc_pass);
mysql_select_db($db_name, $db);
if (!$db) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($db);
--- End Message ---
--- Begin Message ---
On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
>
> > -----Original Message-----
> > From: Rick Dwyer [mailto:rpdw...@earthlink.net]
> > Sent: Saturday, January 12, 2013 8:26 AM
> > To: php-gene...@lists.php.net
> > Subject: [PHP] Can't connect to MySQL via PHP
> >
> > Hello all.
> >
> > I used the code below successfully to connect to a MySQL db on one
> > hosting provider. I've moved the code to a new hosting provider with
> > new values and it returns:
> >
> > Access denied for user 'user'@'db.hostprovider.net' (using password:
> > YES)
> >
> > Even though I can copy and paste these three values (host, user and
> > pass) and paste into Navicat to make a connection. So the credentials
> > are correct, but they are not authenticating when used in PHP. I've
> > tried making host "localhost" and "127.0.0.1". both with the same
> > result.
> >
> > Can someone tell me what I am doing wrong here?
> >
> > Appreciate it.
> >
> > Thanks,
> > --Rick
> >
> >
> >
> > $db_name = "mydb";
> > $vc_host = "db.hostprovider.net";
> > $vc_user = "user";
> > $vc_pass = "pass";
> >
> > $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
> > mysql_select_db($db_name, $connection);
> >
> > echo mysql_error();
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> > http://www.php.net/unsub.php
>
>
> Try this for me
>
> -----------------------------------------------------------
>
> $db = mysql_connect($vc_host, $vc_user, $vc_pass);
> mysql_select_db($db_name, $db);
>
> if (!$db) {
> die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
> mysql_close($db);
>
>
>
>
>
Please at least use mysqli_* functions. Every time someone recommends we
use mysql_* functions, a kitten kills a programmer.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Jan 12, 2013, at 3:56 PM, "admin" <ad...@buskirkgraphics.com> wrote:
>
>
>> -----Original Message-----
>> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
>> Sent: Saturday, January 12, 2013 8:26 AM
>> To: php-gene...@lists.php.net
>> Subject: [PHP] Can't connect to MySQL via PHP
>>
>> Hello all.
>>
>> I used the code below successfully to connect to a MySQL db on one
>> hosting provider. I've moved the code to a new hosting provider with
>> new values and it returns:
>>
>> Access denied for user 'user'@'db.hostprovider.net' (using password:
>> YES)
>>
>> Even though I can copy and paste these three values (host, user and
>> pass) and paste into Navicat to make a connection. So the credentials
>> are correct, but they are not authenticating when used in PHP. I've
>> tried making host "localhost" and "127.0.0.1". both with the same
>> result.
>>
>> Can someone tell me what I am doing wrong here?
>>
>> Appreciate it.
>>
>> Thanks,
>> --Rick
>>
>>
>>
>> $db_name = "mydb";
>> $vc_host = "db.hostprovider.net";
>> $vc_user = "user";
>> $vc_pass = "pass";
>>
>> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
>> mysql_select_db($db_name, $connection);
>>
>> echo mysql_error();
>>
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>
>
> Try this for me
>
> -----------------------------------------------------------
>
> $db = mysql_connect($vc_host, $vc_user, $vc_pass);
> mysql_select_db($db_name, $db);
>
> if (!$db) {
> die('Could not connect: ' . mysql_error());
> }
> echo 'Connected successfully';
> mysql_close($db);
Could not connect: Access denied for user 'user'@'localhost' (using password:
YES)
Using mysqli_ returns the same error message as well.
--Rick
--Rick
--- End Message ---
--- Begin Message ---
On 1/12/2013 1:28 PM, Rick Dwyer wrote:
On Jan 12, 2013, at 3:56 PM, "admin" <ad...@buskirkgraphics.com> wrote:
-----Original Message-----
From: Rick Dwyer [mailto:rpdw...@earthlink.net]
Sent: Saturday, January 12, 2013 8:26 AM
To: php-gene...@lists.php.net
Subject: [PHP] Can't connect to MySQL via PHP
Hello all.
I used the code below successfully to connect to a MySQL db on one
hosting provider. I've moved the code to a new hosting provider with
new values and it returns:
Access denied for user 'user'@'db.hostprovider.net' (using password:
YES)
Even though I can copy and paste these three values (host, user and
pass) and paste into Navicat to make a connection. So the credentials
are correct, but they are not authenticating when used in PHP. I've
tried making host "localhost" and "127.0.0.1". both with the same
result.
Can someone tell me what I am doing wrong here?
Appreciate it.
Thanks,
--Rick
$db_name = "mydb";
$vc_host = "db.hostprovider.net";
$vc_user = "user";
$vc_pass = "pass";
$connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
mysql_select_db($db_name, $connection);
echo mysql_error();
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
Try this for me
-----------------------------------------------------------
$db = mysql_connect($vc_host, $vc_user, $vc_pass);
mysql_select_db($db_name, $db);
if (!$db) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($db);
Could not connect: Access denied for user 'user'@'localhost' (using password:
YES)
Using mysqli_ returns the same error message as well.
--Rick
--Rick
Isn't that just telling you that the uid is not defined for the proper
access to any mysql db? It's been awhile since I set my accesses up so
I can't remember. I have one user that I use to do all my connections
with. That user is declared for each db with full access.
--- End Message ---
--- Begin Message ---
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Saturday, January 12, 2013 10:03 AM
To: admin
Cc: 'Rick Dwyer'; php-gene...@lists.php.net
Subject: RE: [PHP] Can't connect to MySQL via PHP
On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
> -----Original Message-----
> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
> Sent: Saturday, January 12, 2013 8:26 AM
> To: php-gene...@lists.php.net
> Subject: [PHP] Can't connect to MySQL via PHP
>
> Hello all.
>
> I used the code below successfully to connect to a MySQL db on one
> hosting provider. I've moved the code to a new hosting provider with
> new values and it returns:
>
> Access denied for user 'user'@'db.hostprovider.net' (using password:
> YES)
>
> Even though I can copy and paste these three values (host, user and
> pass) and paste into Navicat to make a connection. So the credentials
> are correct, but they are not authenticating when used in PHP. I've
> tried making host "localhost" and "127.0.0.1". both with the same
> result.
>
> Can someone tell me what I am doing wrong here?
>
> Appreciate it.
>
> Thanks,
> --Rick
>
>
>
> $db_name = "mydb";
> $vc_host = "db.hostprovider.net";
> $vc_user = "user";
> $vc_pass = "pass";
>
> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
> mysql_select_db($db_name, $connection);
>
> echo mysql_error();
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
Try this for me
-----------------------------------------------------------
$db = mysql_connect($vc_host, $vc_user, $vc_pass);
mysql_select_db($db_name, $db);
if (!$db) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($db);
Please at least use mysqli_* functions. Every time someone recommends we use
mysql_* functions, a kitten kills a programmer.
Thanks,
Ash
http://www.ashleysheridan.co.uk
Ash,
The question was asked about mysql functions.
As much as the php list would like to force people from using mysql, I guess
you should not have invented it, if you don't want people to still use it.
Shoots a small fluffy kitten with big blue eyes... Waste a cap save a gui!!!!
--- End Message ---
--- Begin Message ---
admin <ad...@buskirkgraphics.com> wrote:
>
>
>
>
>From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
>Sent: Saturday, January 12, 2013 10:03 AM
>To: admin
>Cc: 'Rick Dwyer'; php-gene...@lists.php.net
>Subject: RE: [PHP] Can't connect to MySQL via PHP
>
>
>
>On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
>
>
>
>> -----Original Message-----
>> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
>> Sent: Saturday, January 12, 2013 8:26 AM
>> To: php-gene...@lists.php.net
>> Subject: [PHP] Can't connect to MySQL via PHP
>>
>> Hello all.
>>
>> I used the code below successfully to connect to a MySQL db on one
>> hosting provider. I've moved the code to a new hosting provider with
>> new values and it returns:
>>
>> Access denied for user 'user'@'db.hostprovider.net' (using password:
>> YES)
>>
>> Even though I can copy and paste these three values (host, user and
>> pass) and paste into Navicat to make a connection. So the
>credentials
>> are correct, but they are not authenticating when used in PHP. I've
>> tried making host "localhost" and "127.0.0.1". both with the same
>> result.
>>
>> Can someone tell me what I am doing wrong here?
>>
>> Appreciate it.
>>
>> Thanks,
>> --Rick
>>
>>
>>
>> $db_name = "mydb";
>> $vc_host = "db.hostprovider.net";
>> $vc_user = "user";
>> $vc_pass = "pass";
>>
>> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
>> mysql_select_db($db_name, $connection);
>>
>> echo mysql_error();
>>
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>
>
>Try this for me
>
>-----------------------------------------------------------
>
>$db = mysql_connect($vc_host, $vc_user, $vc_pass);
>mysql_select_db($db_name, $db);
>
>if (!$db) {
> die('Could not connect: ' . mysql_error());
>}
>echo 'Connected successfully';
>mysql_close($db);
>
>
>
>
>
>
>
>Please at least use mysqli_* functions. Every time someone recommends
>we use mysql_* functions, a kitten kills a programmer.
>
>
>Thanks,
>Ash
>http://www.ashleysheridan.co.uk
>
>
>
>
>
>Ash,
>
> The question was asked about mysql functions.
>
>As much as the php list would like to force people from using mysql, I
>guess you should not have invented it, if you don't want people to
>still use it.
>
>
>
>Shoots a small fluffy kitten with big blue eyes... Waste a cap save a
>gui!!!!
>
>
>
>
>
>
Actually, the question never mentioned mysql_* functions, so telling someone to
use them is wrong.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Sat, 2013-01-12 at 19:53 +0000, Ashley Sheridan wrote:
>
> admin <ad...@buskirkgraphics.com> wrote:
>
> >
> >
> >
> >
> >From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> >Sent: Saturday, January 12, 2013 10:03 AM
> >To: admin
> >Cc: 'Rick Dwyer'; php-gene...@lists.php.net
> >Subject: RE: [PHP] Can't connect to MySQL via PHP
> >
> >
> >
> >On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
> >
> >
> >
> >> -----Original Message-----
> >> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
> >> Sent: Saturday, January 12, 2013 8:26 AM
> >> To: php-gene...@lists.php.net
> >> Subject: [PHP] Can't connect to MySQL via PHP
> >>
> >> Hello all.
> >>
> >> I used the code below successfully to connect to a MySQL db on one
> >> hosting provider. I've moved the code to a new hosting provider with
> >> new values and it returns:
> >>
> >> Access denied for user 'user'@'db.hostprovider.net' (using password:
> >> YES)
> >>
> >> Even though I can copy and paste these three values (host, user and
> >> pass) and paste into Navicat to make a connection. So the
> >credentials
> >> are correct, but they are not authenticating when used in PHP. I've
> >> tried making host "localhost" and "127.0.0.1". both with the same
> >> result.
> >>
> >> Can someone tell me what I am doing wrong here?
> >>
> >> Appreciate it.
> >>
> >> Thanks,
> >> --Rick
> >>
> >>
> >>
> >> $db_name = "mydb";
> >> $vc_host = "db.hostprovider.net";
> >> $vc_user = "user";
> >> $vc_pass = "pass";
> >>
> >> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
> >> mysql_select_db($db_name, $connection);
> >>
> >> echo mysql_error();
> >>
> >>
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> >> http://www.php.net/unsub.php
> >
> >
> >Try this for me
> >
> >-----------------------------------------------------------
> >
> >$db = mysql_connect($vc_host, $vc_user, $vc_pass);
> >mysql_select_db($db_name, $db);
> >
> >if (!$db) {
> > die('Could not connect: ' . mysql_error());
> >}
> >echo 'Connected successfully';
> >mysql_close($db);
> >
> >
> >
> >
> >
> >
> >
> >Please at least use mysqli_* functions. Every time someone recommends
> >we use mysql_* functions, a kitten kills a programmer.
> >
> >
> >Thanks,
> >Ash
> >http://www.ashleysheridan.co.uk
> >
> >
> >
> >
> >
> >Ash,
> >
> > The question was asked about mysql functions.
> >
> >As much as the php list would like to force people from using mysql, I
> >guess you should not have invented it, if you don't want people to
> >still use it.
> >
> >
> >
> >Shoots a small fluffy kitten with big blue eyes... Waste a cap save a
> >gui!!!!
> >
> >
> >
> >
> >
> >
>
> Actually, the question never mentioned mysql_* functions, so telling someone
> to use them is wrong.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
Sorry, just re-read the OP and realised he was using the mysql_*
functions.
I still stand by my statement of not using them though. People should be
advised that the functions are deprecated fully now and are not safe to
use.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Simple test I just did.
A simple script that first connects to mysql and then tries to select a db.
With a uid/pswd that I just made up for the script, I get the following:
****
Error - Could not connect to database from sql_db_connect
Access denied for user 'albany_ginerjm3'@'localhost' (using password: YES)
****
Going into my host's mysql manager, I created the uid/pswd to match what
my script has in its code. The next execution returns this:
****
Error - Could not select database in sql_db_connect
Access denied for user 'albany_ginerjm3'@'localhost' to database
'albany_jgfiles'
****
Going back to my mysql manager, I added the new user to the db that I am
trying to select. No more error messages.
I would check that the user is defined to access the db that you are
trying to use, if not all the dbs you have.
--- End Message ---
--- Begin Message ---
I agree. Thanks Ash. Always good recommendations from your end.
On Sat, Jan 12, 2013 at 3:03 PM, Ashley Sheridan
<a...@ashleysheridan.co.uk>wrote:
> On Sat, 2013-01-12 at 19:53 +0000, Ashley Sheridan wrote:
>
> >
> > admin <ad...@buskirkgraphics.com> wrote:
> >
> > >
> > >
> > >
> > >
> > >From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
> > >Sent: Saturday, January 12, 2013 10:03 AM
> > >To: admin
> > >Cc: 'Rick Dwyer'; php-gene...@lists.php.net
> > >Subject: RE: [PHP] Can't connect to MySQL via PHP
> > >
> > >
> > >
> > >On Sat, 2013-01-12 at 12:56 -0800, admin wrote:
> > >
> > >
> > >
> > >> -----Original Message-----
> > >> From: Rick Dwyer [mailto:rpdw...@earthlink.net]
> > >> Sent: Saturday, January 12, 2013 8:26 AM
> > >> To: php-gene...@lists.php.net
> > >> Subject: [PHP] Can't connect to MySQL via PHP
> > >>
> > >> Hello all.
> > >>
> > >> I used the code below successfully to connect to a MySQL db on one
> > >> hosting provider. I've moved the code to a new hosting provider with
> > >> new values and it returns:
> > >>
> > >> Access denied for user 'user'@'db.hostprovider.net' (using password:
> > >> YES)
> > >>
> > >> Even though I can copy and paste these three values (host, user and
> > >> pass) and paste into Navicat to make a connection. So the
> > >credentials
> > >> are correct, but they are not authenticating when used in PHP. I've
> > >> tried making host "localhost" and "127.0.0.1". both with the same
> > >> result.
> > >>
> > >> Can someone tell me what I am doing wrong here?
> > >>
> > >> Appreciate it.
> > >>
> > >> Thanks,
> > >> --Rick
> > >>
> > >>
> > >>
> > >> $db_name = "mydb";
> > >> $vc_host = "db.hostprovider.net";
> > >> $vc_user = "user";
> > >> $vc_pass = "pass";
> > >>
> > >> $connection = @mysql_connect($vc_host, $vc_user, $vc_pass); $db =
> > >> mysql_select_db($db_name, $connection);
> > >>
> > >> echo mysql_error();
> > >>
> > >>
> > >>
> > >>
> > >> --
> > >> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> > >> http://www.php.net/unsub.php
> > >
> > >
> > >Try this for me
> > >
> > >-----------------------------------------------------------
> > >
> > >$db = mysql_connect($vc_host, $vc_user, $vc_pass);
> > >mysql_select_db($db_name, $db);
> > >
> > >if (!$db) {
> > > die('Could not connect: ' . mysql_error());
> > >}
> > >echo 'Connected successfully';
> > >mysql_close($db);
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >Please at least use mysqli_* functions. Every time someone recommends
> > >we use mysql_* functions, a kitten kills a programmer.
> > >
> > >
> > >Thanks,
> > >Ash
> > >http://www.ashleysheridan.co.uk
> > >
> > >
> > >
> > >
> > >
> > >Ash,
> > >
> > > The question was asked about mysql functions.
> > >
> > >As much as the php list would like to force people from using mysql, I
> > >guess you should not have invented it, if you don't want people to
> > >still use it.
> > >
> > >
> > >
> > >Shoots a small fluffy kitten with big blue eyes... Waste a cap save a
> > >gui!!!!
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > Actually, the question never mentioned mysql_* functions, so telling
> someone to use them is wrong.
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
>
>
> Sorry, just re-read the OP and realised he was using the mysql_*
> functions.
>
> I still stand by my statement of not using them though. People should be
> advised that the functions are deprecated fully now and are not safe to
> use.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
--- End Message ---
--- Begin Message ---
On Sat, Jan 12, 2013 at 4:49 PM, admin <ad...@buskirkgraphics.com> wrote:
> As much as the php list would like to force people from using mysql, I guess
> you should not have invented it, if you don't want people to still use it.
It's not this php list. It's the php developers. mysql* functions are
set to be removed in a release coming soon.
Time marches on. mysql* functions were written first, then the mysqli*
functions were written. mysql* is old, out of date, and not begin
supported.
Should not have written it? Maybe? But maybe no libraries should have
been written, nothing should move forward, better ways should not have
been found.
Maybe you want to do your computing using pebbles, too.
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: tamouse mailing lists [mailto:tamouse.li...@gmail.com]
> Sent: Saturday, January 12, 2013 7:55 PM
> To: admin
> Cc: a...@ashleysheridan.co.uk; Rick Dwyer; php-gene...@lists.php.net
> Subject: Re: [PHP] Can't connect to MySQL via PHP
>
> On Sat, Jan 12, 2013 at 4:49 PM, admin <ad...@buskirkgraphics.com>
> wrote:
> > As much as the php list would like to force people from using mysql,
> I guess you should not have invented it, if you don't want people to
> still use it.
>
> It's not this php list. It's the php developers. mysql* functions are
> set to be removed in a release coming soon.
>
> Time marches on. mysql* functions were written first, then the mysqli*
> functions were written. mysql* is old, out of date, and not begin
> supported.
>
> Should not have written it? Maybe? But maybe no libraries should have
> been written, nothing should move forward, better ways should not have
> been found.
>
> Maybe you want to do your computing using pebbles, too.
So let me understand how this works.
Someone ask for help, no matter what version they are using or function that is
currently in place.
We slam them.
Call them an idiot.
Not that they ask a question about a function in the CURRENT version. Yes the
documentation does fully express the function is depreciated, but let's deal
with the now.
So let's NOT answer the question? (Hello, welcome to MICROSOFT)
I am very glad 90% of other languages that have list don't have the same
approach.
They would gladly give you the answer, but then go on to express how they may
suggest this (with example) because it is (safer, easier, ect...).
Every time I see someone give a simple answer in an approach to help them
learn, in comes the marching band of ignorance and they are toting the banner
of epic fail.
This is a list to help people understand php and grow the community and
knowledge base of its inner workings.
If you want to answer at question please at least use SOMETHING that is
conducive to educating them.
--- End Message ---