Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. <?php
  2.     $temp   = $id;
  3.                 $query1 = "SELECT * FROM Anlage WHERE AS_ID =  $id AND TypID = 3";
  4.                 $result1= mysql_query( $query1 );
  5.                 $n1 = mysql_num_rows($result1);
  6.  
  7.     if (mysql_num_rows($result1)==0)
  8.     {   ?>
  9.     <tr>   
  10.         <td colspan="2">&nbsp;</td>
  11.     </tr>
  12.     <?php }
  13.     else
  14.     {  
  15.     foreach($result1 as row) {
  16.     {
  17.     //$datensatz1 = mysql_fetch_array( $result1 );?>
  18.     <tr>
  19.         <td colspan="2" align="right"><a href="../Files/Import/<?php echo $row['DateID'];?>" target="_blank"><?php echo $row['DateID'];?></a><input type="hidden" name="form_DateiID" value="<?php echo $row['DateID'];?>"><input type="submit" value="X" name="remove" onclick="return confirm('Eintrag <?php echo $row['DateID'];?> wirklich löschen?')"/></td>
  20.     </tr>
  21.     <?php   }  }  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement