Advertisement
Guest User

Php code

a guest
Nov 25th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <div id="mbody">
  2. <div id="content">
  3. تمامی یادداشت های شما به شرح زیر می باشد :
  4.  <br/>
  5.  <br/>
  6.  <?php
  7.  
  8.  
  9.   $result = mysql_query("select * from note ",$link);
  10.  
  11.   $rownum = mysql_num_rows($result);
  12.  
  13.       for($i=0;$i<$rownum;$i++){
  14.      
  15.                   $all = mysql_fetch_assoc($result); ?>
  16.                   <hr/>  
  17. <a class="dbreport" href="all.php?<?php echo $all['ntitle'];   ?>"><?php echo $all['ntitle'];?></a>
  18.              
  19.                  <?php   $tnote = $all['ntitle'];   ?>
  20.                  
  21.                  
  22.                  <br/>
  23.                  
  24.                  <?php
  25.      
  26.      
  27.   }if(isset($_GET['$tnote'])){
  28.        
  29.       $existlink = mysql_query("select * from note where ntitle = '$tnote'",$link);
  30.      
  31.       $shownote = mysql_fetch_assoc($existlink);
  32.      
  33.      echo   $shownote['ntitle'];
  34.      
  35.      echo   $shownote['ndate'];
  36.      
  37.      echo   $shownote['nbody'];
  38.  
  39.      
  40.   }
  41.  
  42.   ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement