View previous topic :: View next topic |
Author |
Message |
Mean -
Joined: 05 Jun 2009 Posts: 2
|
Posted: Fri Jun 05, 2009 7:40 pm Post subject: Mysql error missing |
|
|
I try to run this code
<?php
echo "1";
$conn = mysql_connect("localhost:3306", "testuser", "abc") or die ('Error connecting to mysql');
echo "2";
mysql_select_db("test");
?>
and I get the output
"1"
Where is my "2"? Should I not get some kind of error if there is problems connecting?
Some setup info
Win xp SP3
Abyss Web Server X1 (v 2.6)
Interpreters : CGI/ISAPI C:\Program Files\PHP\php.exe php
mysql-5.1.35-win32
php-5.2.9-2-Win32
I'm able to connect to my database and do stuff using another tool so the mysql is running for sure. |
|
Back to top |
|
|
Mean -
Joined: 05 Jun 2009 Posts: 2
|
Posted: Sun Jun 07, 2009 7:01 pm Post subject: Never mind |
|
|
I missed installing all the extensions with the php package. Also there is errors in the logfile. |
|
Back to top |
|
|
aprelium-support -
Joined: 20 Feb 2009 Posts: 356
|
Posted: Mon Jun 08, 2009 12:32 pm Post subject: Re: Never mind |
|
|
Mean wrote: | I missed installing all the extensions with the php package. Also there is errors in the logfile. |
What are the errors that you get ?
Can you access simple PHP scripts such as:
Code: |
<?php
phpinfo();
?>
|
If phpinfo() works, it means that the connection between Abyss Web Server and PHP interpreter is correctly established.
We strongly recommend you to use our preconfigured PHP package and to follow the setup instructions precisely:
http://www.aprelium.com/abyssws/php5win.html[/code] _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|