これで、ユーザーがユーザー名とパスワードでログインしたときに、名前などのデータを取得し、それをウェルカムページに配置する必要があるセッションでログインフォームを作成しました。
現在、このコードを作成しましたが、このコードはすべてのユーザー データを取得します。
<?php
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("usersdata") or die(mysql_error());
$data = mysql_query("SELECT * FROM userid")
or die(mysql_error());
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th>Name:</th> <td>".$info['Name'] . "</td> ";
Print "<th>Username:</th> <td>".$info['Email'] . " </td></tr>";
}
Print "</table>";
?>
その方法を見つけたいと思っています。:D