Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $vsi_rezultati=[];
- $pov=new mysqli("localhost", "root","","gaselniki");
- if ($pov->connect_error) {
- die("Connection failed: " . $pov->connect_error);
- }
- $sql="SELECT Dolgoime FROM stranke";
- $to=$pov->query($sql);
- if ($to->num_rows > 0) {
- while($row = $to->fetch_assoc()) {
- array_push($vsi_rezultati, $row["Dolgoime"]);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement