show images which url stored in an array of php variable
Posted: Tue Nov 10, 2009 6:57 am
<?php include("include/login.php");
$query = mysql_query("SELECT * FROM books ");
while ($row = mysql_fetch_array($query))
{
$image_url[] = $row['image'] ;
$cost[] = $row['book_cost'];
$author[] = $row['author_name'];
$name[] = $row['book_name'];
$publisher[] = $row['publisher'];
$desc[] = $row['book_description'];
$bookid[] = $row['id'];
}
?>
here i use array to store my data in $image_url and want to show it on web page which show first six images and on next button click it'll show next six images please help if know.....
$query = mysql_query("SELECT * FROM books ");
while ($row = mysql_fetch_array($query))
{
$image_url[] = $row['image'] ;
$cost[] = $row['book_cost'];
$author[] = $row['author_name'];
$name[] = $row['book_name'];
$publisher[] = $row['publisher'];
$desc[] = $row['book_description'];
$bookid[] = $row['id'];
}
?>
here i use array to store my data in $image_url and want to show it on web page which show first six images and on next button click it'll show next six images please help if know.....