to start with this will not work...
if ($connection)
echo "<h2>Connection to MySQL server established";
else
echo "<h2>No Connection established";
it needs to be...
if ($connection){
echo "<h2>Connection to MySQL server established";
}else{
echo "<h2>No Connection established";
}
this...
create database myfriends;
needs to be...
// create database myfriends