Mysql error missing

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Mean
-


Joined: 05 Jun 2009
Posts: 2

PostPosted: Fri Jun 05, 2009 7:40 pm    Post subject: Mysql error missing Reply with quote

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 View user's profile Send private message
Mean
-


Joined: 05 Jun 2009
Posts: 2

PostPosted: Sun Jun 07, 2009 7:01 pm    Post subject: Never mind Reply with quote

I missed installing all the extensions with the php package. Also there is errors in the logfile.
Back to top View user's profile Send private message
aprelium-support
-


Joined: 20 Feb 2009
Posts: 356

PostPosted: Mon Jun 08, 2009 12:32 pm    Post subject: Re: Never mind Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group