$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 `$table`";
$result=mysql_query($q1)or die("query is niet gelukt\n".$q1);
echo "";
$aantal=mysql_num_fields($result);
for ($i=0; $i<$aantal; $i++)
{
$veld=mysql_field_name($result,$i);
echo "$veld | ";
}
echo "
";
while($row = mysql_fetch_array( $result )){
echo "
";
echo "".$row[0]." | ";
echo "".$row[1]." | ";
echo "".$row[2]." | ";
echo "".$row[3]." | ";
echo "".$row[4]." | ";
echo "".$row[5]." | ";
echo "".$row[6]." | ";
echo "".$row[7]." | ";
echo "".$row[8]." | ";
echo "".$row[9]." | ";
echo "".$row[10]." | ";
echo "".$row[11]." | ";
echo "".$row[12]." | ";
echo "".$row[13]." | ";
echo "
";
}
echo "";
echo "
";
mysql_close($link);
?>