Thanks for you help so far, this does change the div but isn't exactly what I am looking for just yet. I'll go into a little more detail, as I can see by rereading my first post there is a lot left out.
The first database (categories) is going to be the dropdown list. It will look something similar to this:
Code:
<?php
$query1 = "SELECT * FROM categories";
$result1 = mysql_query($query1);
$cats = array();
while (($row = mysql_fetch_assoc($result1)) !== false) {
$cats[] = $row;
}
?>
Category: <select name="cat">
<option value="0"></option>
<?php foreach($cats as $c) { ?>
<option value="<?php echo $c['id']; ?>"><?php echo $c['name']; ?></option>
<?php } ?>
</select>
What I am hoping is that when you pick a category it will take that number and reference it with the cat_pdfs table to find the pdf_id. Then using that id select the appropriate pdf(s) from the pdfs table. Then I would like to do something like this:
Code:
<a href="pdfs:location">pdfs:name</a>
To populate the div.
I hope this clarifies a little more.
Bookmarks