ok, so playing around with it tonight I finally have it figured out. Apparently I found after testing it out that you cannot use the same name as the field you are ultimately trying to call.
What I mean is if your table column is called auto.... don't call the parameter auto throughout. It just doesn't like you very much if you do.
I thought I would post my code for those that are interested.
The upper code before the <head> starts
Code:
<?
mysql_select_db($database_test, $test);
$something = $_GET['num'];
$query_Recordset1 = "SELECT auto, image, `desc`, `comment` FROM test WHERE auto='$something'";
$Recordset1 = mysql_query($query_Recordset1, $test) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
The links that call the specific row in the table
Code:
<p><a href="test.php?num=1">Set 1</a></p>
<p><a href="test.php?num=2">Set 2</a></p>
<p><a href="test.php?num=3">Set 3</a></p>
<p><a href="test.php?num=4">Set 4</a></p>
And finally the code that displays the 3 items based upon the 'auto' field
Code:
<p><img src="<?php echo $row_Recordset1['image']; ?>" /></p>
<p> <?php echo $row_Recordset1['desc']; ?></p>
<p> <?php echo $row_Recordset1['comment']; ?></p>
Bookmarks