php and mysql, best practices
问题 I started working with php and mysql today. Basically, what I have, is an empty page with pieces that I fill in from looking up an id in a database. So on my home page I have an url that looks like this: <a href="content/display.php?id=id1"> And then in my display.php I have this: <?php include '../includes/header.php'; $id = $_GET['id']; $mysqli = new mysqli('localhost','username','password','dbname'); if($result = $mysqli->query("SELECT * FROM portfolio WHERE id='".$id."'")) { while($row =