\n";
echo "";
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
echo "".$row["Field"]." | ";
}
}
echo "
";
// Performing SQL query
$query = 'SELECT * FROM test ORDER BY vek';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
// Printing results in HTML
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t\n";
foreach ($line as $col_value) {
echo "\t\t$col_value | \n";
}
echo "\t
\n";
}
echo "\n";
// Free resultset
mysql_free_result($result);
}
function printInsertForm() {
?>