Forum Moderators: coopster
how can i arrange them in a nice way with spaces between them? and any advice on adding paging?
in my 1st page i have:
[CODE = PHP]
print '<a href="gallery_large.php?id='.$row['p_painting_id'].'"><img src="gallery_print_thumb.php?id='.$row['p_painting_id'].'" alt="image"/></a>';
[/CODE = PHP]
here $row['p_painting_id'] is nothing but mysql.
.........................
in gallery_print_thumb.php I have,
[CODE = PHP]
<?php
$image_id = $_GET['id'];
header('Content-Type: image/jpeg');
@mysql_connect("localhost","root","dba") or die("Error");
@mysql_select_db("gallery");
$result = mysql_query("SELECT p_painting_image FROM paintings where p_painting_id = '{$image_id}'");
while($row = mysql_fetch_assoc($result))
{
print $row[p_painting_image];
}
?>
[/CODE = PHP]
this displays the images at a stretch. i want to kow how to add spaces (using empty table rows etc) and how to add paging as well.
Thanks so much in adnavce!