home *** CD-ROM | disk | FTP | other *** search
/ HTML Examples / 6.iso / multi_pages_php3 / index.php < prev    next >
Encoding:
PHP Script  |  2016-01-01  |  4.2 KB  |  92 lines

  1. <?php
  2. echo iconv('WINDOWS-1256', 'UTF-8', '
  3. <html dir="rtl">
  4. <head>
  5. <link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon">
  6. <link rel="shortcut icon" href="091-512.ico" type="image/x-icon">
  7. <link rel="shortcut icon" href="unnamed.png" type="image/png">
  8. <link rel="shortcut icon" href="jasimmaabed500.jpg" type="image/jpg">
  9.  
  10.  
  11. <meta http-equiv="Content-Language" content="en-us">
  12. <meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
  13. <title>├╤▀╟Σ ╟ß┼╙ß╟π</title>
  14. </head>
  15.  
  16. <body bgcolor="#CCFF99">
  17. <div align="center">
  18.  <table border="0" width="1000">
  19.  
  20. <tr><td align="center"><span lang="ar-iq"><b>
  21.     <font size="7" face="Arabic Typesetting" color="#800000">├╤▀╟Σ ╟ß┼╙ß╟π</font></b></span><p>
  22.     </b></font><span lang="ar-iq">           <img border="0" src="5ir.jpg" width="315" height="316">        
  23.     </span></p>
  24.     </p>
  25.  </td></tr>
  26.  
  27. <tr><td valign="top" align="justify">
  28.  
  29. <table border="1" width="100%" dir="rtl">
  30.     <tr>
  31.         <td width="16%" bgcolor="#99FFCC"><p align="center"><b><span class="line_height"><font size="6"><a href="index.php">╟ß╘σ╟╧╩╟Σ</a></font></span></b></td><td width="5%"> </td>
  32.         <td width="16%" bgcolor="#99FFCC"><p align="center"><b><span class="line_height"><font size="6"><a href="index2.php">╟ß╒ß╟╔</a></font></span></b></td><td width="5%"> </td>
  33.         <td width="16%" bgcolor="#99FFCC"><p align="center"><b><span class="line_height"><font size="6"><a href="index3.php">╟ß╥▀╟╔</a></font></span></b></td><td width="5%"> </td>
  34.         <td width="16%" bgcolor="#99FFCC"><p align="center"><b><span class="line_height"><font size="6"><a href="index4.php">╒φ╟π ╤π╓╟Σ</a></font></span></b></td><td width="5%"> </td>
  35.         <td width="16%" bgcolor="#99FFCC"><p align="center"><b><span class="line_height"><font size="6"><a href="index5.php">╟ß═╠</a></font></span></b></td>
  36.     </tr>
  37. </table>
  38. <p align="center"><b><font size="7" face="Arabic Typesetting" color="#800000">╟ß╤▀Σ ╟ß├µß ╟ß╘σ╟╧╩╟Σ</font></b></p>
  39. <blockquote>
  40.     <p><b><font size="6" face="Arabic Typesetting">     ├Σ φ┌╩▐╧ ╟ß┼Σ╙╟Σ ├Σ ╟ßßσ µ═╧σ σµ ╟ß╤╚ ╟ßπ╟ß▀ ╟ßπ╩╒╤▌ ╟ß╬╟ß▐ ╟ß╤╥╟▐ í µφ╦╚╩ ßσ ╠πφ┌ ╟ß├╙π╟┴ ╟ß═╙Σ∞ µ╟ß╒▌╟╩ ╟ß┌ß∞ ╟ß╩φ ├╦╚╩σ╟ ßΣ▌╙σ í ├µ ├╦╚╩σ╟ ßσ ╤╙µßσ µφ┌╩▐╧ ├Σ ╟ßßσ µ═╧σ σµ ╟ßπ╙╩═▐ ßß┌╚╟╧╔ ╧µΣ ╙µ╟σ ▀π╟ ▐╟ß ╙╚═╟Σσ : ( ╚╧φ┌ ╟ß╙π╟µ╟╩ µ╟ß├╤╓ ├Σ∞ φ▀µΣ ßσ µß╧ µßπ ╩▀Σ ßσ ╒╟═╚╔ µ╬ß▐ ▀ß ╘φ┴ µσµ ╚▀ß ╘φ┴ ┌ßφπ í ╨ß▀π ╟ßßσ ╤╚▀π ß╟ ┼ßσ ┼ß╟ ╟ßßσ σµ ╬╟ß▐ ▀ß ╘φ┴ ▌╟┌╚╧µσ µσµ ┌ß∞ ▀ß ╘φ┴ µ▀φß ) ╟ß├Σ┌╟π/101-102.
  41.  
  42.     </font></b></p>
  43.     <p><b><font face="Arabic Typesetting" size="6">     ▀π╟ φ┌╩▐╧ ╟ß┼Σ╙╟Σ ├Σ ╟ßßσ ├╤╙ß ╤╙µßσ π═π╧╟≡ ╒ß∞ ╟ßßσ ┌ßφσ µ╙ßπ   µ├Σ╥ß ┌ßφσ ╟ß▐╤┬Σ µ├π╤σ ╚┼╚ß╟█ σ╨╟ ╟ß╧φΣ ┼ß∞ ╟ßΣ╟╙ ▀╟▌╔ µφ┌╩▐╧ ├Σ π═╚╔ ╟ßßσ µ╤╙µßσ µ╪╟┌╩σπ╟ µ╟╠╚╔ ┌ß∞ ▀ß ├═╧ µß╟ ╩╩═▐▐ π═╚╔ ╟ßßσ ┼ß╟ ╚π╩╟╚┌╔ ╤╙µßσ ╒ß∞ ╟ßßσ ┌ßφσ µ╙ßπ : ( ▐ß ┼Σ ▀Σ╩π ╩═╚µΣ ╟ßßσ ▌╟╩╚┌µΣφ φ═╚╚▀π ╟ßßσ µφ█▌╤ ß▀π ╨Σµ╚▀π µ╟ßßσ █▌µ╤ ╤═φπ ) ┬ß ┌π╤╟Σ /31.
  44.     </font></b></p>
  45.     <p> </p>
  46. </blockquote>
  47.  
  48. </td>
  49.                         </tr>
  50.                     
  51. <tr><td>
  52.     <p align="center"><font size="7" face="Arabic Typesetting">╥φ╟╤╟╩ ╟ßπµ▐┌ : [ <b>
  53. ') ;
  54.  
  55.     $servername = "localhost";
  56.     $username = "root";
  57.     $password = "";
  58.     $dbname = "ai";
  59.  
  60.     // Create connection
  61.       $pdo = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
  62.  
  63.         $query = "SELECT * FROM visit";//  BETWEEN '$d0' AND             //echo   $query ;
  64.     foreach($pdo->query($query, PDO::FETCH_ASSOC) as $row){   $visit = $row['count'] ; }
  65.  
  66.         $visit = $visit + 1 ;
  67.         echo $visit ;
  68.  
  69.         $sql = "UPDATE `visit` SET `count` = :count ";
  70.         $statement = $pdo->prepare($sql);
  71.         $statement->bindValue(':count', $visit);
  72.     $update = $statement->execute();
  73.  
  74.         $pdo = null;
  75.                                
  76. echo iconv('WINDOWS-1256', 'UTF-8', '
  77.  
  78.  ] ╥φ╟╤╔<p align="center"> </td></tr>
  79. <tr><td>
  80.     <p align="center"><b><font size="6" face="Arabic Typesetting">πΣ ▀╩╟╚ ├╒µß ╟ß╧φΣ ╟ß┼╙ß╟πφ ßß╘φ╬ π═π╧ ╚Σ ╟╚╤╟σφπ ╟ß╩µφ╠╤φ</font></b></td></tr>
  81. </table></div>
  82.  <p> </p>
  83. <p><b><font size="6" face="Arabic Typesetting">
  84. <br><Br><br>
  85. </font></b></p>
  86. </body>
  87. </html>
  88.  
  89.  
  90. ') ;
  91. ?>
  92.