Note that there are some explanatory texts on larger screens.

plurals
  1. PODynamic XML with SQL database. How to?
    primarykey
    data
    text
    <p>Here is the situation : </p> <p>I have an image upload website. When a user uploads a photo, details like photo_id and photo_url are stored into a table called photos. To know which user has upload which photos, i have created a table called member_photos which contained the following fields, member_id, photo_id. To display the gallery, all i have to do is compare the session id with that of the member id and query the photos. </p> <p>What i want is, instead of the photo url being stored on a SQL db i want it to be stored in an XML file in the following way. </p> <p></p> <pre><code>&lt;user&gt;Steve&lt;/user&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; &lt;user&gt;John&lt;/user&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; &lt;photourl&gt;http://localhost..&lt;/photourl&gt; </code></pre> <p>A user can upload multiple photos but a photo belongs to only one user. One to many relationship. </p> <p>I also want the php to write the data into the XML file. </p> <p>Now to display the gallery for a particular user all i was doing was matching the member_id with the session's member_id and then retrieving the photo_url from the database. </p> <p>What i want to do is retrive the photo urls from the XML file and display it in a table format using XSLT.</p> <p>Recommendations anyone? Help would be much appreciated :-)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload