I've been looking on the internet for a while, to see how I can make up my echo'd string. I have been able to make up alot of stuff with examples. But when it comes to my own code, I'm not able to this, even when I do EXACTLY the same stuff.
This is my echo'd PHP:
echo "<div id=\"suggestions\"><h1> Our suggestions for you: </h1>";
$i = 1;
while($row = mysqli_fetch_array($frequency))
{
$query = "SELECT country FROM project.countries WHERE countryID LIKE (".$row['countryID'].")";
$result = mysqli_query($con, $query);
$row = mysqli_fetch_array($result);
$countrysuggestion = $row['country'];
echo "<h2>Suggestion no.".$i." is: ".$countrysuggestion."!</h2>";
$i = $i + 1;
}
echo "</div>";
Then this is our style CSS code:
<style type=”text/css”>
#suggestions{
visibility: hidden;
}
</style>
On our website this echo'd "stuff" doesn't go to invisible. Can anyone help us out here?
mysqliis fetching any data??suggestions?type="text/css".