daily pastebin goal
82%
SHARE
TWEET

Array.php

a guest Apr 23rd, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $vsi_rezultati=[];
  4. $pov=new mysqli("localhost", "root","","gaselniki");
  5. if ($pov->connect_error) {
  6.     die("Connection failed: " . $pov->connect_error);
  7. }
  8. $sql="SELECT Dolgoime FROM stranke";
  9. $to=$pov->query($sql);
  10. if ($to->num_rows > 0) {
  11. while($row = $to->fetch_assoc()) {
  12.     array_push($vsi_rezultati, $row["Dolgoime"]);
  13. }  
  14. }
  15.  
  16. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top