Skip to content

Instantly share code, notes, and snippets.

@torbainnen
Created August 13, 2014 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torbainnen/3da39add5d3e17ff4a26 to your computer and use it in GitHub Desktop.
Save torbainnen/3da39add5d3e17ff4a26 to your computer and use it in GitHub Desktop.
mojkod
<html>
<head>
<title> bezimeni </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
/*header('Content-type: text/html; charset=iso-8859-2');
require_once('dbconn01.php'); */
konektovanje();
function konektovanje(){
...
if($db_found){
$result = mysql_query("SELECT * FROM klubovi");
while ($row = mysql_fetch_array($result)) {
$output_str = "Id kluba: ".$row{'klubid'}." // Klub naziv: ".$row{'klubime'}.
" // Država: ".$row{'zemljalige'}." // Liga naziv: ".$row{"liganaziv"}.
" // Slika: ".$row{"slikagrb"}." // Rang takmičenja: ".$row{"rang"}.
" // Datum modifikacije: ".$row{"datum_modifikacije"}."<br>";
echo $output_str;
}
mysql_close($db_handle);
}
}
?>
čćžšđ &aelig; &oslash; &aring; ö
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment