my current code is like following:
Expand|Select|Wrap|Line Numbers
- $getName = $_GET['name'];
- if (isset($getName)){
- $selPaint = "SELECT * from images where artist ='".$getName."'";
- }
- else{
- $selPaint = "SELECT * from images";
- }
- $execPaint = mysql_query($selPaint);
- if(isset($_SESSION['SESSuserid'])){ //if user logged in
- echo "<form action=\"do_addcart.php\" method=\"POST\"><br>";
- while($thisArt = mysql_fetch_array($execPaint)){
- $fName = $thisArt['filename'];
- echo "<h3>".$thisArt['title']."<h3><br>";
- echo "<a href =".$uploaddir.$fName.">";
- echo "<img src=".$thumbdir."thumb_".$fName."></a><br>";
- echo "<input type=\"checkbox\" name=\"".$thisArt['id']."\" value=\"1\">";
- echo "<input type =\"submit\" value=\"Select\"><br>";}
- echo "</form>";
- }
the effect will something like the following website: http://www.coach.com/content/thumbna...ategory_id=900
can anyone help me with this, it is a bit urgent! :)
thanks in advance!