hey everyone,
I've made the next script:
<?
$gebruikersnaam = "username"; //of cousre I filled in
$wachtwoord = "wachtwoord"; //of cousre I filled in
$host = "localhost";
$db = "grandiozo_com";
mysql_connect($host,$gebruikersnaam,$wachtwoord);
mysql_select_db($db);
// eerst b.v. iets selecteren
$select = "SELECT * FROM gegevens";
$query = mysql_query($select);
// hier was dan de query
while ($show = mysql_fetch_object($query))
{
// nu is de while loop uitgevoerd en kun je alles van de sub- tabel aanroepen via $show->sub-tabel
echo "<b>Voornaam: </b>".$show->voornaam."<br>";
echo "<b>Achternaam: </b>".$show->achternaam."<br>";
echo "<b>Leeftijd: </b>".$show->leeftijd."<br>";
echo "<b>Woonplaats: </b>".$show->woonplaats."<br> <br>";
}
?>
This is standig in a file, named test.php Nothing else, only the script.
If I upload it, I see nothing, oonly a white blank page,
I've made a database and I can write to my db, but I can't select it 😢
There's standig a few things in my database, the table name is: "gegevens" (translate to English: "data" )
In the table standing:
voornaam / achternaam / leeftijd / woonplaats
(Translate to English: first name / surname / age / place )
Who can help me?
You help me a lot!!
Maybe you can write a new script :$
You can contact me on MSN if you have it: grandiozo@hotmail.com
Alvast bedankt!!
Groetjes,
Edwin