I click on a image on textimage20.php
It takes me to text4.php but it all displays is:
SELECT gameandtoyname, pricevalue, bigdescription, dollsimage.imag e_id, dollsimage.imag e_date, doll.pricetype, prices.pricetyp e, prices.priceval ue FROM dollsimage, doll, prices WHERE doll.pricetype = prices.pricetyp e and dollsimage.imag e_id = '123' and doll.gameandtoy name = '123' and doll.bigdescrip tion = '123'
Then I see the border, an X in there for the image
And then $0.00
Thank you for any help.
This is my code:
Textimage20.php
[HTML]
[PHP]
echo '<TD> <a href="http://localhost/text4.php?image _id=123"> <img border="1" height="90" width="100"
src="imagedolls .php?act=view&i id=' . $row['image_id'] . '"> </a> ' '</TD>' ;
[/PHP]
[/HTML]
text4.php :
[HTML]
[PHP]
$id = $_GET['image_id'];
$sql = ("SELECT gameandtoyname, pricevalue, bigdescription, dollsimage.imag e_id, dollsimage.imag e_date, doll.pricetype, prices.pricetyp e, prices.priceval ue
FROM dollsimage, doll, prices
WHERE doll.pricetype = prices.pricetyp e and dollsimage.imag e_id = '$id' and doll.gameandtoy name = '$id' and doll.bigdescrip tion = '$id'
");
echo "$sql <br>";
$row = mysql_fetch_arr ay($result);
echo '<TD> <img border="1" height="90" width="100"
src="imagedolls .php?act=view&i id=' . $row['image_id'] . '"> ';
echo '<BR>' .$row['gameandtoyname '] ;
echo '<BR>' .$row['bigdescription '] ;
$row['pricevalue'] = number_format($ row['pricevalue'],2, '.', '');
echo '<br>';
echo '$' .$row['pricevalue'].
[/PHP]
[/HTML]
It takes me to text4.php but it all displays is:
SELECT gameandtoyname, pricevalue, bigdescription, dollsimage.imag e_id, dollsimage.imag e_date, doll.pricetype, prices.pricetyp e, prices.priceval ue FROM dollsimage, doll, prices WHERE doll.pricetype = prices.pricetyp e and dollsimage.imag e_id = '123' and doll.gameandtoy name = '123' and doll.bigdescrip tion = '123'
Then I see the border, an X in there for the image
And then $0.00
Thank you for any help.
This is my code:
Textimage20.php
[HTML]
[PHP]
echo '<TD> <a href="http://localhost/text4.php?image _id=123"> <img border="1" height="90" width="100"
src="imagedolls .php?act=view&i id=' . $row['image_id'] . '"> </a> ' '</TD>' ;
[/PHP]
[/HTML]
text4.php :
[HTML]
[PHP]
$id = $_GET['image_id'];
$sql = ("SELECT gameandtoyname, pricevalue, bigdescription, dollsimage.imag e_id, dollsimage.imag e_date, doll.pricetype, prices.pricetyp e, prices.priceval ue
FROM dollsimage, doll, prices
WHERE doll.pricetype = prices.pricetyp e and dollsimage.imag e_id = '$id' and doll.gameandtoy name = '$id' and doll.bigdescrip tion = '$id'
");
echo "$sql <br>";
$row = mysql_fetch_arr ay($result);
echo '<TD> <img border="1" height="90" width="100"
src="imagedolls .php?act=view&i id=' . $row['image_id'] . '"> ';
echo '<BR>' .$row['gameandtoyname '] ;
echo '<BR>' .$row['bigdescription '] ;
$row['pricevalue'] = number_format($ row['pricevalue'],2, '.', '');
echo '<br>';
echo '$' .$row['pricevalue'].
[/PHP]
[/HTML]
Comment