Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $title = "Pocetna strana";
- require_once("datafunctions.php");
- head($title);
- if(isset)
- ?>
- <a href="?izbor1">Uloguj se</a><br/><br/>
- $link = mysqli_connect("localhost", "root" "", "nrt_73_12_sep2014");
- if(!$link)
- die("Neuspesna konekcija na bazu!");
- $sql = "SELECT 'naslov' FROM 'oglasi'";
- $result = mysli_query($link, $sql);
- if(!$result) || mysqli_num_rows($result) == 0)
- {
- echo "Upite nije dobar"
- }
- else
- {
- echo"<b>Spisak postavljenih oglasa</b>)";
- while (rows = mysqli_fetch_array($result) != false)
- {
- echo $rows[0] . "<br/>"
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement