Guest User

Untitled

a guest
Jan 13th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <html>
  2. <HEAD>
  3. <TITLE>TEST ELECTRONIC JOURNAL</TITLE></HEAD>
  4. <BODY>
  5. <?php
  6.     $host = "localhost";
  7.     $user = "test";
  8.     $pass = "ada444ka";
  9.     $dbname = "first";
  10.     $tablename = "f32";
  11.     $link = mysql_connect ($host,$user,$pass);
  12.     $query = "SELECT * from $tablename";
  13.     $result = mysql_db_query ($dbname,$query,$link);
  14.    
  15.    
  16.     print ("<table border = 1 width = \"75%\" cellspacing = 2 cellpadding = 2  align = center>\n");
  17.     print ("</TR>\n");
  18.     while ($row = mysql_fetch_array($result)) {
  19.     print ("<td> $row[id]</td>\n");
  20.     print ("<td> $row[name] $row[familiya]</td>\n");
  21.     print ("<td> $row[prisytstvie] </td>\n");
  22.     print ("</tr>\n");
  23.    
  24.    
  25.    
  26.     }
  27.     mysql_close($link);
  28.    
  29.    
  30.  
  31. ?>
  32. </BODY>
  33.  
  34. </html>
Add Comment
Please, Sign In to add comment