Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 KB | None | 0 0
  1. <div id="window_tour" class="abs window">
  2.       <div class="abs window_inner">
  3.         <div class="window_top">
  4.           <span class="float_left">
  5.             <img src="assets/images/icons/icon_16_computer.png" />
  6.             Tourenplanung
  7.           </span>
  8.           <span class="float_right">
  9.             <a href="#" class="window_min"></a>
  10.             <a href="#" class="window_resize"></a>
  11.             <a href="#icon_dock_tour" class="window_close"></a>
  12.           </span>
  13.         </div>
  14.         <div class="abs window_content">
  15.           <div class="window_aside">
  16.               <?php
  17.                 $sql= "SELECT COUNT(*) FROM users";
  18.                 $sql = mysql_query($sql) or die(mysql_error());
  19.                 $count = mysql_fetch_array($sql);
  20.                
  21.  
  22.                 $sql = "SELECT id,firstname,surename "."FROM users";
  23.                 $sql = mysql_query($sql) or die(mysql_error());
  24.                 $ausgabe = '<ul id="users">';
  25.                 while($row = mysql_fetch_object($sql)){
  26.                         $ausgabe .='<li name="'.$row->id.'">'.$row->surename.' , '.$row->firstname.'</li>';
  27.                         }
  28.                 $ausgabe .= '<ul>';
  29.                 echo $ausgabe;
  30.  
  31.               ?>
  32.           </div>
  33.           <div class="window_main">        
  34.              <?php include ('inc/details.php');?>
  35.              
  36.           </div>
  37.         </div>
  38.         <div class="abs window_bottom">
  39.           <?php echo "Kunden gesamt: ".$count[0]; ?>
  40.         </div>
  41.       </div>
  42.       <span class="abs ui-resizable-handle ui-resizable-se"></span>
  43.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement