What you will need to do is give each t-shirt image on start page a link like:
<a href="view_product.php?shirt_id=1">T-Shirt 1</a>
<a href="view_product.php?shirt_id=2">T-Shirt 2</a>
In the code below you will need to change the following: change the table name in the query, and change all the field names in the query to the desired.
Then for the view_product.php page do something like this:
<?
$shirt = $_GET["shirt_id"];
// make sure product exists/has been selected
if(empty($shirt))
{
echo "<div align='center'><br>No product has been selected to view!</div>";
}
else
{
$select_prod = mysql_query( "SELECT * FROM your table name here WHERE shirt='$shirt'");
$totalrows = mysql_num_rows($select_prod);
if($totalrows==0){echo"<br><br><p align=\"center\">The product you are trying to view no longer exists in our database!</p>";}
// build page for product
if($totalrows!==0){
while ($row = mysql_fetch_array($select_prod))
{
$title = $row["title"];
$image = $row["image"];
$description = $row["description"];
$quantity = $row["quantity"];
$price = $row["price"];
//And so on
}
//Then print info however you want. Example:
echo"<table width=\"443\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td width=\"98\" height=\"20\" valign=\"top\"><b>Image:</b></td>
<td width=\"69\" valign=\"top\"><b>Title:</b></td>
<td width=\"160\" valign=\"top\"><b>Description:</b></td>
<td width=\"116\" valign=\"top\"><b>Price:</b></td>
</tr>
<tr>
<td valign=\"top\" height=\"88\">
$image
</td>
<td valign=\"top\">
$title
</td>
<td valign=\"top\">
$description
</td>
<td valign=\"top\">
$price
</td>
</tr>
<tr>
<td height=\"28\" colspan=\"4\" valign=\"top\">
<div align=\"right\">
";
<?if($quantity == "0") {echo "<font color=\"red\"><b>(Out of Stock)</b></font>";} else {echo "<font color=\"red\"><b>(In Stock)</b></font>";}?> echo"
<b>Quantity:</b>
<input type=\"text\" name=\"qty\" size=\"5\" value=\"1\">
<input type=\"submit\" name=\"Submit\" value=\"Add To Cart\">
</div>
</td>
</tr>
</table>
";
?>
Then it is up to you to do the form part of that table.
You can also try changing to a shopping cart that already has a catalog built in.
-Blake