Hello again,
First I want to say thank you to all of you that have helped me in the past with all of my questions. I have gotten far in PHP and MySQL in the past two weeks. I designed a site that pulls information from a database and displays it on the website. However I have run into some questions:
1. I have a database with multiple tables. One table consists of a user profile type of some sort, the other table consists of a Bio of that user. Now I want to link the profile with the bio so I can display information from both tables. How can I do that. I understand the following code:
-
$results = my_sql_query("SELECT * from profile WHERE user = 'username'");
-
while ($row = mysql_fetch_array($results))
-
{
-
echo "user: " . $row['username']
-
}
-
How can I get information from the second table to display? They both have a common field called username that match.
Also, can anyone show me how to display results in multiple result pages?
Thanks!