hallo ik heb een klein probleempje
laats heb ik dit script gekocht
http://www.snikka.net/admin/nieuws/deploy/
ik heb zelf een admin gemaakt kan je foto en titel uploaden en opslaan in database
de probleem is hoe roep ik het gegevens van mysql op in een xml file??
dit is de xml file van dit script:
PHP Code:
<?xml version="1.0" encoding="utf-8" ?>
<gallery>
<globals
currentItem="0" width="590" height="300" showArrows="1"
radius="5" slideSpeed="15" contentAlpha="80" contentBottomPadding="0"
cssFile="css/gallery.css"
/>
<item>
<name>Red Autumn Woods</name>
<description>Autumn for me is <a href="http://www.flashcomponents.net/author/flashblue.html">the best</a> time of the year. <br />I just love this season!</description>
<image>images/1.jpg</image>
<durationTime>6</durationTime>
<url>http://www.flashcomponents.net/author/flashblue.html</url>
<target>_blank</target>
</item>
<item>
<name>Pistons at Deutsche Museum</name>
<description>Pistons are cut open at various points to show their internal structure. <br />Deutsche Museum in <a href="http://www.flashcomponents.net/author/flashblue.html">Munich</a>, Germany.</description>
<image>images/2.jpg</image>
<durationTime>8</durationTime>
<url></url>
<target></target>
</item>
<item>
<name>Instructables Laptop Stand</name>
<description>A clean and tidy desk, books on a shelf, just what I want / must get rid of my desktop tower.</description>
<image>images/3.jpg</image>
<durationTime>5</durationTime>
<url>http://www.flashcomponents.net/</url>
<target></target>
</item>
<item>
<name>Cruise Ship Port</name>
<description>This is the harbor where the cruise ships dock in Oranjestad Aruba</description>
<image>images/4.jpg</image>
<durationTime>4</durationTime>
<url>http://www.flashcomponents.net/components.html</url>
<target>_blank</target>
</item>
<item>
<name>One Gear in a Clock</name>
<description>The reason behind this was to focus on one gear in the clock, just for practice.</description>
<image>images/5.jpg</image>
<durationTime>3</durationTime>
<url>javascript:alert("Javascript function process!");</url>
<target></target>
</item>
</gallery>
- Showcase xml
-
06-09-2010, 16:49 #1
- Berichten
- 69
- Lid sinds
- 16 Jaar
Showcase xml
-
In de schijnwerper
Linkvada.com Linkbuilding Platform: Direct Linkbuilden op 77.000+ premium domeinenLinkpartners5 PBN/Backlink Sites, Goede DAWebsite te koopSpraakcomputers.nl - Premium domeinnaam - Medisch / communicatiemiddelenDomein te koopGezocht: Linkopties Installatie / Duurzaamheid / Groen / Energie / WonenOverige deals -
06-09-2010, 18:40 #2
- Berichten
- 12
- Lid sinds
- 17 Jaar
Je kan de syntax van de xml file echo'en met php en daar de goede gegevens inzetten en dat in een loop zetten.
En dan kan je het zo gebruiken:
xmlUrl: "blalba.php"
-
06-09-2010, 19:16 #3
- Berichten
- 20
- Lid sinds
- 14 Jaar
--- dit bericht verwijderen aub ---
Laatst aangepast door gast32852 : 21-08-2011 om 22:35
-
06-09-2010, 20:43 #4
- Berichten
- 69
- Lid sinds
- 16 Jaar
PHP Code:<?php
$q = "SELECT name,description,image,duration,url,target FROM tabel";
$r = mysqli_query($database_connectie,$q);
while(list($name,$description,$image,$duration,$url,$target) = mysqli_fetch_array($r,MYSQLI_NUM)){
echo '<item>';
echo '<name>'.$name.'</name>';
echo '<description>'.$description.'</description>';
echo '<image>'.$image.'</image>';
echo '<duration>'.$duration.'</duration>';
echo '<url>'.$url.'</url>';
echo '<target>'.$target.'</target>';
echo '</item>';
}
?>
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic