var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Can't connect to MySQL server on 'myserver' (146)
Does anyone know how to fix this error?
My php code is:
@ $db = mysql_connect("myserver", "admin", "admin") or die (mysql_error());
mysql_select_db("mydb") or die (mysql_error()); ;
I'm using MySQL version 4.5.1-gamma-pro
Thanks in advance.
Last edited by helios1; 10-27-04 at 17:14.
this functions must have 2 arguments:
mysql_select_db("mydb",$db) or die (mysql_error());
Actually, my code was just fine. PHP wouldn't work unless it was on the same server as MySQL. I thought there was a way to point to the correct server.