mabans
01-06-2004, 08:02 PM
Now this works but for some reason it gives me a weird display near the bottom of the page. you can see by following this link.
http://69.13.156.225/test/includes/main_stage_items/results/poster_thumbs.php?show_cat=1
I do plan on have the overall display to be in 2 columns as well as breaking it up into different pages. I do want to see if my overall technique is well done as well as some input on why I'm getting an odd display at the bottome. thanks in avance.
<?php
//The Required Files to access the data base
require("../../../includes/configs/config.cfg");
require("../../../includes/configs/select_db.cfg");
//The Required Files to access the data base
$show=$_GET['show_cat'];
$sql = "SELECT * FROM `poster` WHERE category=$show ORDER BY 'code' ASC";
$results = mysql_query($sql) or die ("Could not do, what you ask of me, sorry man. Check your Code!");
while ($results_row = mysql_fetch_array($results))
{
extract($results_row);
// This display the image artwork//
echo "<table cellspacing=5 cellpadding=0 border=0 width=100%>"
."<tr>"
."<td align=left valign=top width=35>"
."<a href=full_view.php?show_cat="
.$results_row['ID']
.">"
."<br><img src=../../../images/"
.$results_row['imagethumb']
.">"
."</a></td>"
// This display the image artwork//
."<td align=left valign=top height=167>"
// This is the information table with all the proper artwork info//
."<table cellpadding=2 cellspacing=0 border=0 height=136 width=100%>"
."<tr>"
."<td>"
// This is the art Item Code //
."<div class=unnamed1>"
."<a href=full_view.php?show_cat="
.$results_row['ID']
.">"
.$results_row['code']
."</a>"
."</td>"
."</tr>"
// This is the art Item Code //
// This is the Artwork Name //
."<tr>"
."<td bgcolor=#eaeaea>"
."<div class=unnamed1><font color=#000000>"
.$results_row['postername']
."</font></div>"
."</td>"
."</tr>";
// This is the Artwork Name //
// This is the Artist Name //
$artist_id=$results_row['artist'];
$artist_sql = "SELECT * FROM `artist` WHERE ID=$artist";
$artist_results = mysql_query($artist_sql) or die ("Could not do, what you ask of me, sorry man. Check your Code!");
while ($artist_row = mysql_fetch_array($artist_results))
{
extract($artist_row);
echo "<tr>"
."<td>"
."<div class=unnamed1>"
.$artist_row['artistname']
.$artist_row['artistlastname']
."</font></div>"
."</td>"
."</tr>"
// This is the Artist Name //
// Poster Size Text //
."<tr>"
."<td>"
."<div class=unnamed1>Paper Size:</div>"
."</td>"
."</tr>"
// Poster Size Text //
// Paper Size Info//
."<tr>"
."<td>"
."<div class=unnamed1>"
.$results_row['papersizeincheswt']
." x "
.$results_row['papersizeinchesht']
." In | "
.$results_row['papersizecmwt']
." x "
.$results_row['papersizecmht']
." Cm"
."</div>"
."</td>"
."</tr>"
// Paper Size Info//
// Image Size Text //
."<tr>"
."<td>"
."<div class=unnamed1>Image Size:</div>"
."</td>"
."</tr>"
// Image Size Text //
// Image Size Info//
."<tr>"
."<td>"
."<div class=unnamed1>"
.$results_row['imagesizeincheswt']
." x "
.$results_row['imagesizeinchesht']
." In | "
.$results_row['imagesizecmwt']
." x "
.$results_row['imagesizecmht']
." Cm"
."</div>"
."</td>"
."</tr>"
// Image Size Info//
// Pricing Info //
."<tr>"
."<td>"
."<div class=unnamed1>"
."$"
.$results_row['price']
."</div>"
."</td>"
."</tr>"
// Pricing Info //
."</td>"
."</tr>"
."</table>"
."</td>"
."</tr>"
."</table>";
// This is the information table with all the proper artwork info//
}
}
?>
http://69.13.156.225/test/includes/main_stage_items/results/poster_thumbs.php?show_cat=1
I do plan on have the overall display to be in 2 columns as well as breaking it up into different pages. I do want to see if my overall technique is well done as well as some input on why I'm getting an odd display at the bottome. thanks in avance.
<?php
//The Required Files to access the data base
require("../../../includes/configs/config.cfg");
require("../../../includes/configs/select_db.cfg");
//The Required Files to access the data base
$show=$_GET['show_cat'];
$sql = "SELECT * FROM `poster` WHERE category=$show ORDER BY 'code' ASC";
$results = mysql_query($sql) or die ("Could not do, what you ask of me, sorry man. Check your Code!");
while ($results_row = mysql_fetch_array($results))
{
extract($results_row);
// This display the image artwork//
echo "<table cellspacing=5 cellpadding=0 border=0 width=100%>"
."<tr>"
."<td align=left valign=top width=35>"
."<a href=full_view.php?show_cat="
.$results_row['ID']
.">"
."<br><img src=../../../images/"
.$results_row['imagethumb']
.">"
."</a></td>"
// This display the image artwork//
."<td align=left valign=top height=167>"
// This is the information table with all the proper artwork info//
."<table cellpadding=2 cellspacing=0 border=0 height=136 width=100%>"
."<tr>"
."<td>"
// This is the art Item Code //
."<div class=unnamed1>"
."<a href=full_view.php?show_cat="
.$results_row['ID']
.">"
.$results_row['code']
."</a>"
."</td>"
."</tr>"
// This is the art Item Code //
// This is the Artwork Name //
."<tr>"
."<td bgcolor=#eaeaea>"
."<div class=unnamed1><font color=#000000>"
.$results_row['postername']
."</font></div>"
."</td>"
."</tr>";
// This is the Artwork Name //
// This is the Artist Name //
$artist_id=$results_row['artist'];
$artist_sql = "SELECT * FROM `artist` WHERE ID=$artist";
$artist_results = mysql_query($artist_sql) or die ("Could not do, what you ask of me, sorry man. Check your Code!");
while ($artist_row = mysql_fetch_array($artist_results))
{
extract($artist_row);
echo "<tr>"
."<td>"
."<div class=unnamed1>"
.$artist_row['artistname']
.$artist_row['artistlastname']
."</font></div>"
."</td>"
."</tr>"
// This is the Artist Name //
// Poster Size Text //
."<tr>"
."<td>"
."<div class=unnamed1>Paper Size:</div>"
."</td>"
."</tr>"
// Poster Size Text //
// Paper Size Info//
."<tr>"
."<td>"
."<div class=unnamed1>"
.$results_row['papersizeincheswt']
." x "
.$results_row['papersizeinchesht']
." In | "
.$results_row['papersizecmwt']
." x "
.$results_row['papersizecmht']
." Cm"
."</div>"
."</td>"
."</tr>"
// Paper Size Info//
// Image Size Text //
."<tr>"
."<td>"
."<div class=unnamed1>Image Size:</div>"
."</td>"
."</tr>"
// Image Size Text //
// Image Size Info//
."<tr>"
."<td>"
."<div class=unnamed1>"
.$results_row['imagesizeincheswt']
." x "
.$results_row['imagesizeinchesht']
." In | "
.$results_row['imagesizecmwt']
." x "
.$results_row['imagesizecmht']
." Cm"
."</div>"
."</td>"
."</tr>"
// Image Size Info//
// Pricing Info //
."<tr>"
."<td>"
."<div class=unnamed1>"
."$"
.$results_row['price']
."</div>"
."</td>"
."</tr>"
// Pricing Info //
."</td>"
."</tr>"
."</table>"
."</td>"
."</tr>"
."</table>";
// This is the information table with all the proper artwork info//
}
}
?>