<?
/*
Hi,
Youre installation of apache, php and mysql seems fine because you are able to execute php scripts and connect to mysql databases using mysqlfront.
So try this and let me know what happens.
Cheers,
Leon
Usually, you connect to the server by at least giving a server name and a user name.
an example would be:
$obj_conn = mysql_connect("localhost","root","password");
You would use the above line to connect to your local machine. Make sure to change password to the one you setup.
anyway,
try this...
*/
//--------------This is the connection bit
$obj_Conn = mysql_connect("replace with hostname", "replace with username", "replace with password") //connection object
or die("Could not connect to host"); //error handler
//-------------This is the query bit
$obj_RS = mysql_db_query("firma", "select * from personen")//recordset object
or die("Error whilst performing query"); //error handler
//------------This is the display results bit
while ($rows = mysql_fetch_array($obj_RS))
{
echo $rows["name"].", ";
echo $rows["vorname"].", ";
echo $rows["personalnummer"].", ";
echo $rows["gehalt"].", ";
echo $rows["geburtstag"]."<br>";
}
//-----------Free the result
mysql_free_result();
?>