show images which url stored in an array of php variable

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
crazybaboo
Forum Newbie
Posts: 1
Joined: Tue Nov 10, 2009 6:51 am

show images which url stored in an array of php variable

Post by crazybaboo »

<?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.....
AntonioCS
Forum Newbie
Posts: 11
Joined: Tue Jan 15, 2008 12:31 pm

Re: show images which url stored in an array of php variable

Post by AntonioCS »

You are in the wrong forum section!!
Post Reply