Witam. Mam mały problem. Mianowicie nie wiem jak zrobić odnośnik do obrazka w formacie: image.php?id=1
image.php:
<?php
require_once('config.php');
$id = (int)$_GET['id'];
$sql = "SELECT * FROM panel WHERE id = %d";
$results = [url
="http://pl2.php.net/mysql_query"]mysql_query[/url
]([url
="http://pl2.php.net/sprintf"]sprintf[/url
]($sql, $id));
$record = [url
="http://pl2.php.net/mysql_fetch_array"]mysql_fetch_array[/url
]($results, MYSQL_ASSOC
); echo '<img src="'.$record['image_dir'].'" border="0" alt="'.$record['name'].'" />';
?>
I prosta tabelka:
<td><a href="product.php?id=1" target="_blank"><img src="image.php?id=1" border="0" alt="" /></a></td> <td><a href="product.php?id=2" target="_blank"><img src="image.php?id=2" border="0" alt="" /></a></td> <td><a href="product.php?id=3" target="_blank"><img src="image.php?id=3" border="0" alt="" /></a></td> <td><a href="product.php?id=4" target="_blank"><img src="image.php?id=4" border="0" alt="" /></a></td> <td><a href="product.php?id=5" target="_blank"><img src="image.php?id=5" border="0" alt="" /></a></td>
Tutaj jest dobry przykład na wykorzystanie tego co chcę osiągnąć:
http://nixon.czest.pl/srebro2004g/miniatur...php?pozycja=001 A na tej aukcji takie tabelki:
http://allegro.pl/show_item.php?item=390325273#photoPomóżcie