PHP, since upgrading to 5.2.17 getting some warning ?

Posted by Jules on Stack Overflow See other posts from Stack Overflow or by Jules
Published on 2011-01-09T14:47:49Z Indexed on 2011/01/09 14:53 UTC
Read the original article Hit count: 154

Filed under:
|

I can't reproduce this on my test server no idea why this is happening, other queries / functions work..

I'm getting this warning

PHP Warning:  mysql_connect() [<a href='function.mysql-connect'>
function.mysql-connect</a>]: Can't connect to MySQL server on 
'--my isps server--' (10060) in D:\domains\mydomain.com\wwwroot\p
hp\_stdfuncs.php on line 191

This function and others like it are having problems (but some are ok), this is my include file...

function AddPageError($PageHandle, $Requested) {

global $server;
global $db;
global $user;
global $pass;
global $sDebug;

$con = mysql_connect($server,$user,$pass);

I have an include file which sets those variables, as I say they work on other pages and functions..

No idea why ??

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql