Advertisement
terorama

dip / listinfo.php

Aug 21st, 2012
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.31 KB | None | 0 0
  1.  
  2. <?
  3.  
  4. include("minc.php");
  5.  
  6.  
  7. $file=fopen("title.html","r");
  8. $data=fread($file,2000);
  9. print($data);
  10.  
  11. $file=fopen("top.html","r");
  12. $data=fread($file,2000);
  13. print($data);
  14.  
  15.  
  16. $sql = "select * from TINFO order by IID";
  17. $result=mysql_query($sql);
  18.  
  19.  
  20. print('<h3>Информация</h3>');
  21.  
  22. print('<table width="100%" border="0" bordercolor="White">');
  23. while ($row=mysql_fetch_array($result))
  24.    {
  25.    print('<tr>');
  26.    $textf=$row["TEXTF"];
  27.    $intf=$row["INTF"];
  28.    $datef=$row["DATEF"];
  29.    $rid=$row["RID"];
  30.    $aid=$row["AID"];
  31.    $atype=$row["ATYPE"];
  32.    
  33.    //------------------------
  34.    print('<td bgcolor="#E4E4E4">');
  35.    print($textf);
  36.    print('</td>');
  37.    //-------------------------
  38.    print('<td bgcolor="#E4E4E4">');
  39.    print($intf);
  40.    print('</td>');
  41.    //-------------------------
  42.    print('<td bgcolor="#E4E4E4">');
  43.    print($datef);
  44.    print('</td>');
  45.    //-------------------------
  46.    print('<td bgcolor="#E4E4E4">');
  47.    print($rid);
  48.    print('</td>');  
  49.    //-------------------------
  50.    print('<td bgcolor="#E4E4E4">');
  51.    print($aid);
  52.    print('</td>');
  53.    
  54.    //-------------------------
  55.    print('<td bgcolor="#E4E4E4">');
  56.    print($atype);
  57.    print('</td>');
  58.    
  59.    print('</tr>');          
  60.    }
  61. //wend  
  62.  
  63.  
  64. print('</table>');
  65. print('<br>');
  66.  
  67.  
  68.  
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement