Friday 24 February 2017

php - I keep getting this error message, while trying to make a detail page for a table


Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE),
expecting identifier (T_STRING) or variable (T_VARIABLE) or number
(T_NUM_STRING) in /var/www/2909kher/entabell/detaljer.php on line 23








Dette er detaljer.php

include('oppkobling.php');

//$by = $_POST[''];

//echo($by);

// Lag SQL-setning
$query = 'SELECT * FROM rikestemennesker where id = '.$_GET['Plass'];

// Kjør spørringen
$resultat = mysqli_query($db, $query);

// Lagre antall poster som er funnet
$antall = mysqli_num_rows($resultat);


$rad = mysqli_fetch_array($resultat);

echo "Navn: ".$rad['Navn']."";
echo "Land: ".$rad['Land']."
";
echo "Nettoformue: ".$rad['Nettoformue']."
";
echo "Kilde: ".$rad['Kilde']."
";


?>



No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...