Hello..
I have now tried many scripts, turtorials and so on to manage to grab my values in my database, but all trieds faileds...
I have manage to build the database and make a working form page, and there is some values in the database... Then I tried the FAQ page on this forum
<?
// replace these with your credentials
$server = "MY LOCALHOST";
$user = "USERNAME";
$password = "PASSWORD";
$database = "DATABASE";
// Connect to Server
mysql_connect($server, $user, $pass) or die(mysql_error());
// Select Database
mysql_select_db($database) or die(mysql_error());
// Query the Database
$query = mysql_query("SELECT * FROM Table"); // replace table with your table name
while($row = mysql_fetch_array($query)) { // put results into an array
echo "Valuea:" . $row["Valuea"] . "<br>"; // (assuming field name in db is 'name'
echo "Valueb:" . $row["Valueb"] . "<br>"; (// assuming field name in db is email)
// and so forth
// close the while loop
}
?>
My quistion are are this variables corrects?
Because I got this error message.
Parse error: parse error, unexpected '}' in /home3/sub001/sc211/www/norskstf/rekorder/rekorder.php on line 42