Advertisement
Ralph_von

Untitled

Mar 9th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <?php
  2.  if (mysql_connect('localhost','root',''))
  3. echo ("");
  4. else {
  5.   die("Konnte keine Verbindung aufbauen:"
  6.   .mysql_error());
  7. }
  8. if(mysql_select_db('umfrage'))
  9. echo ("");
  10. else {
  11.   die("Keine Datenbank vorhanden".mysql_error());
  12. }
  13. $rs=mysql_query("SELECT * FROM bagsort");
  14. if($rs){
  15.   while($kntk=mysql_fetch_object($rs)){
  16.     $bs1 = $kntk -> ghb;
  17.     $bs2= $kntk -> bb;
  18.     $bs3= $kntk -> hm;
  19.     $bs4= $kntk -> pb;
  20.     $bs5= $kntk -> msp;
  21.     $bs6= $kntk -> sp;
  22.     $bs7= $kntk -> pd;
  23.     $bs8= $kntk -> spip;
  24.     $bs9= $kntk -> smpip;
  25.     $bs10= $kntk -> borpip;
  26.     $bs11= $kntk -> shutpip;
  27.     $bs12= $kntk -> northpipe;
  28.     $bs13= $kntk -> uipip;
  29.     $bs14= $kntk -> binpp;
  30.     $com= $kntk -> complete;
  31.  
  32.  
  33.     }
  34.   echo "Insgesamt haben $com Personen an der Umfrage teilgenommen.";
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement