Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Chris.R

Members
  • Joined

  • Last visited

  1. Hey Jay, How would I go about echoing all the images out on the page for each item rather than just one? some items have multiple images and some have none :S Thanks, Chris
  2. Thats great! so annoyed I didnt try that Thanks for your help!!
  3. its on the same server This is the code that I am using so far.. $inventorylink = 'inventory.xml'; $feed = simplexml_load_file($inventorylink); // Display Results foreach ($feed->item as $item) { echo "<tr>"; echo"<td><strong><a href=\"\" title=\"\">$item->title</a></strong></td>"; echo "<td rowspan=\"2\" style=\"vertical-align:top; padding-bottom:15px;\">$item->Images->img[1]->attributes()->src</td>"; echo "</tr>"; echo "<tr>"; echo "<td><strong>Features:</strong> $item->description <br /><a href=\"\" title=\"More Details On The $item->title\">More Details</></td>"; echo "</tr>"; } I hope this makes sense Thanks, Chris
  4. Hi there, I have an XML file with the following structure, <item> <name></name> <description></description> <Images> <img src="" alt="" width="" height="" /> <img src="" alt="" width="" height="" /> <img src="" alt="" width="" height="" /> <img src="" alt="" width="" height="" /> </Images> </item> their are about 100 items but when i loop through each item and echo them onto the screen I only one to display one of the images that is listed.. Can anyone help me with the code to display just one? I have tried: $item->Images $item->Images->img[1]->attributes()->src but this does not seem to display anything and I know that using children() will just show a count of the children.. Im pulling my hair out and it seems like such a small problem Thanks, Chris
  5. Hi there, I know a switch statement checks for the exact match of a variable but I was wondering if it could do a check to see if a sentance contained a certain word? eg. <?php $x = "I have a cat"; switch ($x) { case "Cat": echo "they have a cat"; break; case "Dog": echo "they have a dog"; break; case "Turtle": echo "they have a turtle"; break; default: echo "No Pets"; } ?> I dont want to have to write lots of IF statements and wondered if this was possible before I start coding up a large switch/case statement.. Thanks, Chris
  6. I tired to get it off with warm soapy water but it just seemed to make it worse. Took it too the body shop and they are going to see if they can get it off.. Waiting for the phone call tommorrow morning I will most likely leave it at uni and walk down to it when I need it. Its just annoying that people cant just leave their car outside their own house! Thinking of rigging up a camera out the window and see if I can see who did it, If I find them, there will be grief..
  7. Woke up this morning to find someone has decided to make my week a bad one Ive lived down the road for 6 months and havent made any enemies. If I find the person who did it, there will be trouble!
  8. Something I saw when looking at your PHP Info is that there is no path assigned to SendMail.. which surely means if it was trying to send an email it would fail due to Send Mail not being enabled.. Take a look: sendmail_from no value no value sendmail_path no value no value Just a thought.. maybe they havent configured their PHP.ini file correctly yet, although i see the server was built in May 2008!?? Top of the info page: Build Date May 2 2008 19:36:50 Sorry if this is completely incorrect, just my two pennies Chris
  9. Chris.R replied to Chris.R's topic in Server Side
    Thats great, thanks guys Ill give it a whirl! Thanks, Chris
  10. Thats terrible for the OU, I would definetly have a word with them, sounds like they are teaching you outdated versions which will not benefit you at all once you finish your course/degree.. If your going to do a course, I would focus on ASP.Net (Expensive) or PHP (Free) Chris
  11. Chris.R replied to Chris.R's topic in Server Side
    Here is a sample schema of the XML file The <Product> Tag is a repeating tag.. <allproducts> <timestamp>04/01/2010 00:30:49</timestamp> <version>2.0</version> <products> <product type="main"> <code>Code101</code> <name>Product Name</name> <description>Description</description> <measurments> <imperial>na</imperial> <metric>na</metric> </measurments> <power> <powertype>None Required</powertype> </power> <price> <wholesale>3.34</wholesale> <rrp>10.49</rrp> </price> <categories> <range category="product category1">Sub-Category 1</range> <range category="product category1">Sub-Category 2</range> <range category="product category1">Sub-Category 3</range> </categories> </product> <product type="main"> <code>Code102</code> <name>Product Name</name> <description>Description</description> <measurments> <imperial>na</imperial> <metric>na</metric> </measurments> <power> <powertype>None Required</powertype> </power> <price> <wholesale>3.34</wholesale> <rrp>10.49</rrp> </price> <categories> <range category="product category1">Sub-Category 1</range> <range category="product category1">Sub-Category 2</range> <range category="product category1">Sub-Category 3</range> </categories> </product> </products> </allproducts> Thanks, Chris
  12. Chris.R posted a topic in Server Side
    Hi there, I am wondering if someone could give me a pointer.. Im using the simplexml_load_file funciton to load an xml file into an array, to get the contents of each item in the xml document im using a For Loop but with some of the items in the XML file it has the following: <categories> <range category="Category1">Subcategory 1</range> </categories> How can I retrieve both the Category1 and Subcategory while doing my loop? I can only seem to get the Subcategory1 within the "Range" tag.. Ive had a look on google but im not sure what to search for to get my answer? Help! Happy New Year! , Chris
  13. Chris.R replied to Man2u2uk's topic in Frontend
    Sorry for the late reply, Try this and let me know how it works out, it should solve the problem.. <html> <head> <title>CSS Navigation</title> <style> #topnav { background: #fff url(http://www.miltonglassuk.co.uk/Milton%20Glass/images/bigbox.gif) no-repeat top left; height: 64px; text-align: center; margin: 0 auto; width:1090px; } #topnav ul { padding-top:5px; } #topnav li { color: #000; background: url(http://www.miltonglassuk.co.uk/Milton%20Glass//images/barbg.gif) no-repeat; display: inline; list-style-type: none; padding: 6px; } #topnav a { border:none; text-decoration:none; color:#000; } #topnav img { border:none; } </style> </head> <body> <div id="topnav"> <ul> <li><a href="#"><img src="http://www.miltonglassuk.co.uk/Milton%20Glass/images/icons/house.png" alt="Portsmouth Branch" class="nohyperlink" title="Portsmouth Branch" /> Portsmouth Branch</a></li> <li><a href="#"><img src="http://www.miltonglassuk.co.uk/Milton%20Glass/images/icons/house.png" alt="Cosham Branch" class="nohyperlink" title="Cosham Branch" /> Cosham Branch</a></li> <li><a href="#"><img src="http://www.miltonglassuk.co.uk/Milton%20Glass/images/icons/house.png" alt="Waterlooville Branch" class="nohyperlink" title="Waterlooville Branch" /> Waterlooville Branch</a></li> </ul> </div> </body> </html> Chris
  14. Chris.R replied to Man2u2uk's topic in Frontend
    I'm not near a computer tonight but I'll take a look tommorrow. Don't worry we will get it sorted Chris
  15. Chris.R replied to Man2u2uk's topic in Frontend
    No problem bud, glad to be of help it's a great forum for help! Good luck with the site Chris

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.