Create Account
Sign In

code tag and finding localhost folder on PC

To create and answer topics, you must to be logged.
Pages: 1
Author Message
bartek_talik
24/01/2015 at 16:00:14
bartek_talik
Member
This is the code below together with html coding

<html>
<head>

MY SQL CONNECTION

<?php

$my_connection = mysql_connect('localhost', 'root, '');



if (!$my_connection){
die("Could not connect:".mysql_error());
}

echo 'Connected successfully'.'<br><br>';
}

mysql_close($my_connection);

?>





</head>







<body>

</body>



</html>

bartek_talik
24/01/2015 at 16:00:59
bartek_talik
Member
I go this error printed on page '; mysql_close($my_connection); ?>

Pages: 1