Code:
<?php
echo '<?xml version=\'1.0\' encoding=\'utf-8\'? standalone=\'yes\'?>
<gallery>
<album id="Library" title="Feature" description="edified.org" lgPath="images/slideshow/" tnPath="feature/thumbnails/" tn="slideshow/logo.jpg">';
/*
Database connection code removed (you can connect to your own database!
*/
$result = mysql_query('SELECT * FROM montage ORDER BY RAND() LIMIT 18');
//You can set the limit to whatever you want or omit it for a full row count
//You could also order by any column (I chose to do random)
while ($row = mysql_fetch_array($result) ){
$thisPhotoid = $row["id"];
$thisFilename = $row["filename"];
$thisCaption = $row["caption"];
$thisLink = $row["link"];
echo '<img src="' . $thisFilename . '" caption="' . $thisCaption . '" link="' . $thisLink . '" target="_self" />
';
}
echo '</album>
</gallery>';
?>
<?php
echo '<?xml version=\'1.0\' encoding=\'utf-8\'? standalone=\'yes\'?>
<gallery>
<album id="Library" title="Feature" description="edified.org" lgPath="images/slideshow/" tnPath="feature/thumbnails/" tn="slideshow/logo.jpg">';
/*
Database connection code removed (you can connect to your own database!
*/
$result = mysql_query('SELECT * FROM montage ORDER BY RAND() LIMIT 18');
//You can set the limit to whatever you want or omit it for a full row count
//You could also order by any column (I chose to do random)
while ($row = mysql_fetch_array($result) ){
$thisPhotoid = $row["id"];
$thisFilename = $row["filename"];
$thisCaption = $row["caption"];
$thisLink = $row["link"];
echo '<img src="' . $thisFilename . '" caption="' . $thisCaption . '" link="' . $thisLink . '" target="_self" />
';
}
echo '</album>
</gallery>';
?>
Moja zelja je da ovaj kod sredim tako da uz pomoc ItemID stranice PHP kreira XLM za tu stranicu tako da automatizujem proces i imam poseban slajd za svaku stranicu.Nisam ekspert za PHP i dobro bi dosla neka pomoc.Hvala unaprjed.
[Ovu poruku je menjao Nemanja Avramović dana 07.06.2007. u 13:24 GMT+1]