Thanx for your replies.
I've removed the [0] with the result that the first name is given. But it doesn't come up with the others.
I don't really know how to "protect" input from users, i'm only using strip_tags atm.. Rincewind, did show me another, but i don't the format yet..i'm going to check it out now..
Is it possible to put the array in a foreach?
Since i don't completely understand the foreach function.. :o
foreach ($naam as ? => ?)
{
And this would be repeated untill all rows are done..or something like that
}
But i don't know what i should enter between ().
EDIT: I found out that "mysql_real_escape_string()" is just as easy as strip_tags, so im using it now 🙂 wont forget it anymore..
EDIT: Some more information:
The table has the following fields/rows:
naam (Name1, Name2, Name3)
woonplaats (City1, City2, City3)
leeftijd (Age1, Age2, Age3)
email (Email1, Email2, Email3)
So there are more things then one if ur search query isn't just based on 1 "person/city".
It should become something like. That he loads all info from db that it needs. After that it becomes in a function counting untill it hits the nr inside de db of rows. It will leap untill it had all rows echo-ing but within 1 function.
$nr1 = "0";
function show($row)
{
count nr of rows of table = $becomes variable;
max. repeating for all rows = $becomes variable;
$nr1 ++ 1;
if ( $becomes variable == $nr1)
{
break
}
}
I don't know if this is allright, but at least i tried lol