Page 1 of 1

output not load

Posted: Mon Jan 02, 2012 9:29 am
by jayson.ph
hi all

i am a beginner and i got this problem that never been load the output.

Code: Select all

<?php
$conn = msql_connect("localhost","jayson.ph", "usaqatai");
	if(!$conn){
	die("could not connect:" .msql_error());
	}
echo "successfully connected";
		mysql_close($conn);
?>


file:///C:/wamp/www/home/index.php

please help, thanks

Re: output not load

Posted: Mon Jan 02, 2012 3:03 pm
by social_experiment
Are any errors printed to the browser?

Re: output not load

Posted: Fri Jan 06, 2012 8:22 am
by jayson.ph
ah no. nothing, and i dont know if it is connected to wamp i used, but the wamp is running.

Re: output not load

Posted: Fri Jan 06, 2012 8:33 am
by social_experiment

Code: Select all

<?php
$conn = msql_connect("localhost","jayson.ph", "usaqatai");
        if(!$conn){
        die("could not connect:" .msql_error());
        }
        else {
           echo 'connected successfully'; 
        }
                mysql_close($conn);
?>
Try this; Also, are you using mysql or msql?

Re: output not load

Posted: Fri Jan 06, 2012 8:50 am
by jayson.ph
hi social_experiment thanks and i get it.

Re: output not load

Posted: Fri Jan 06, 2012 8:56 am
by social_experiment
ok, if you do use msql you should use msql_close() instead of mysql_close()