Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormariafgp
    • CommentTimeNov 23rd 2011
     
    I am trying to use this code to put a graphic in the header to match which album they are currently looking at.

    Here is an example of how I want it to look:
    http://www.aberdeenshirepoms.com/gallery/available

    <?php
    $collection_name=="Males";
    switch ($collections_name['title'])
    {

    case "Males" :
    echo "<p align='center'><img border='0' src='/malesb.gif' width='134' height='40'><br></p>";
    break;
    case "Females" :
    echo "<p align='center'><img border='0' src='/femalesb.gif' width='170' height='40'><br></p>";
    break;
    case "Available" :
    echo "<p align='center'><img border='0' src='/availb.gif' width='190' height='40'><br></p>
    <div align='center'>
    <center>
    <table border='0' width='85%'>
    <tr>
    <td width='100%' style='text-align:justify'><font size='3' color='#FFFFFF'><br>
    <font face='Verdana'>Any puppy on this page can be held with a $200.00 deposit which will go toward the
    purchase price until adoption date at 8 weeks of age. The deposit is non-refundable. If for any reason
    the buyer changes his/her mind on the puppy, he/she may choose a different one when one is available
    on a first come first serve basis. We aim to please and make sure you are happy with your Pom Puppy!
    <br><br></td>
    </tr>
    </table>
    </div>";
    break;
    }
    ?>

    This is the link to the Available album using Plogger:
    http://www.aberdeenshirepoms.com/plogger/index.php?level=album&id=5

    I need to know how to code the album name into this code:

    $collection_name=="Males";
    switch ($collections_name['title'])

    Can anyone help?

    Maria