Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $con = mysql_connect("localhost","root","");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- mysql_select_db("hc", $con);
- $result = mysql_query("SELECT * FROM hc");
- ?>
- <form method="post" action="pag3.php">
- <input id="saveForm" class="button_text" type="submit" name="submit" value="Create new registration" />
- </form>
- <table >
- <tr>
- <td>Edit</td>
- <td>Nume</td>
- <td>Prenume</td>
- <td>CNP</td>
- <td>Ocupatie</td>
- <td>Telefon</td>
- </tr>
- <?php
- while($row = mysql_fetch_array($result))
- {
- echo "<tr> <td> <a href='pag2.php?index=".$row['ID']."' >edit</a> </td>";
- echo " <td>".$row['Nume']."</td> <td>".$row['Prenume']." </td> <td> ".$row['CNP']," </td> <td>".$row['Ocupatie'] ."</td> <td>". $row['Telefon']." </td> </tr>";
- echo "<br />";
- }
- //
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement