Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <HEAD>
- <TITLE>TEST ELECTRONIC JOURNAL</TITLE></HEAD>
- <BODY>
- <?php
- $host = "localhost";
- $user = "test";
- $pass = "ada444ka";
- $dbname = "first";
- $tablename = "f32";
- $link = mysql_connect ($host,$user,$pass);
- $query = "SELECT * from $tablename";
- $result = mysql_db_query ($dbname,$query,$link);
- print ("<table border = 1 width = \"75%\" cellspacing = 2 cellpadding = 2 align = center>\n");
- print ("</TR>\n");
- while ($row = mysql_fetch_array($result)) {
- print ("<td> $row[id]</td>\n");
- print ("<td> $row[name] $row[familiya]</td>\n");
- print ("<td> $row[prisytstvie] </td>\n");
- print ("</tr>\n");
- }
- mysql_close($link);
- ?>
- </BODY>
- </html>
Add Comment
Please, Sign In to add comment