Professional Documents
Culture Documents
PHP, MySQLi. This tutorial does not include a good design but will give you an idea on the
basic functions in PHP and basic queries in MySQLi.
<?php
include('conn.php');
$query=mysqli_query($conn,"select * from `user`");
while($row=mysqli_fetch_array($query)){
?>
<tr>
<td><?php echo $row['firstname']; ?></td>
<td><?php echo $row['lastname']; ?></td>
<td>
<a href="edit.php?id=<?php echo $row['userid']; ?>">Edit</a>
<a href="delete.php?id=<?php echo $row['userid']; ?>">Delete</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</body>
</html>
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];
?>
$firstname=$_POST['firstname'];
$lastname=$_POST['lastname'];