$link=mysql_connect("localhost","30164","ctmzdq")or die("connectie niet gelukt\n");
mysql_select_db("30164")or die("database selecteren is niet gelukt\n");
$q1="SELECT * FROM `$tabel` WHERE `$veld`='$variable'";
$result=mysql_query($q1)or die("query is niet gelukt\n".$q1);
$num_rows = mysql_num_fields($result);
while($row = mysql_fetch_array($result)){
for ($i=0; $i<$num_rows; $i++)
{
echo $row[$i];
echo "
";
}
}
?>