Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2011, 02:28 PM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Help!

Does anyone know how to connect to a mysql Database using php on a at&t hosted site? I had it working fine on my Yahoo hosted sit But I cannot get the connection string to work at all on my new AT&T Site
 
Old October 11th, 2011, 05:01 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Mysql connect

With yahoo's version on mysql I was using
Code:
$con = @mysqli_connect("mysql",$UserName,$Password);
AT&T's version I must use
Code:
$con = mysql_connect("mysql-g35a.mysqldbserver.com",$UserName, $Password);
I suppose the reason is that AT&T has an older version of mysql running on the server, which does not support the improved connection, mysqli.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.