Hello.
Use:
$link = mysql_connect("mysql_host", "mysql_user", "mysql_password")
or die("Could not connect : " . mysql_error());
to determine what error occurs when you are connecting. Turn on
error reporting in php.ini.
>Hi,
>I have Apache 2, PHP 5 and MySQL 4.1 installed on an XP pro box.
>
>I have created a new database 'ijdb' with a single table 'joke' and have
>entered data into
>two of the three fields in the table.
>
>I can access the database / tables / data from a command prompt, and I can
>access and
>extract the data with an odbc_connect.
>
>However, when I try to connect through a mysql_connect connection type I
>either receive a
>'Unable to connect to the database server at this time.' error message - which
>is my
>default error message, or, I receive a blank window in IE / Mozilla / Opera
>etc and no
>error messages (just a blank screen).
>
>I have attached the code I am using below - hoping that someone can see where
>I am going
>wrong and will point me in the right direction.
>
>I have tried removing the @ from the file and this has no effect -
>interesting?!
>The error logs do not reveal anything that indicates a missing table / field.
>
>I wonder if anyone has any ideas ?
>
>Cheers,
>Mike
>
>>"Mike Francis" <[EMAIL PROTECTED]> wrote:
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Gleb Paharenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.NET
<___/ www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]