したがって、基本的に私が欲しいのは次のようなサイトです。
Name:
Date:
(picture of person)
しかし、すべての人 (何千人もの人々) のために手作業で新しいページを作成する必要はありません。データベースに必要なすべてのコンテンツがあります。前のページの表の人物名をクリックして、その人物のコンテンツを含むページを生成する方法はありますか?
基本的な原則は、データベースからの ID などを使用して各レコードを要求することです。したがって、URL は person.php?id=xxx のようになります。ここで、xxx は db レコードに対応する ID です。
次に、person.php で、DB から正しいレコードを取得するために $_GET['id'] を使用します。もちろん、DBを保護するために入力をエスケープする必要があります...
何かのようなもの:
<html>
<head>
<title>Display User</title>
</head>
<body>
<?php
// Write all the queries here, by using $_GET to fetch the content
// from the url. You might also want to include the user id in the url.
// Finally, fetch the rows as $row = ...
?>
Name: <?php echo $row['name']; ?><br /><br />
Date: <?php // Do what you want with the date here ?><br /><br />
<img src="<?php echo $row['imglocation']; // Change this parameter to fit your needs" />
</body>
</html>