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.

Paul Boreham

Members
  • Joined

  • Last visited

Everything posted by Paul Boreham

  1. brilliant, thanks Jay, works a treat!
  2. Hi all, is there any htaccess to block 'double extension' files from being served - i.e. 'something.php.jpg' My htaccess at the moment is; Options -Indexes <Files ~ ".*\.php$"> Order deny,allow Deny from all </Files> Thanks for any help!
  3. So, can I call the same table name and give it an alias - i.e. FROM tableAttribute AS t1 , tableAttribute AS t2 ?? Didnt know you could do that if so and may help - thanks! Thanks for all the other replies above too, really helpful!
  4. Thanks, but that would fail. ATTRIBUTE is 1 column - so (in this context) in cannot be red AND large - its not possible. This feature is possible though as it works on Ebay, Amazon, Halfords etc.
  5. Right - gonna try again and close my previous post as it was too confusing! Simple explanation... ==== I need to query a table to get all the records out that have 2 or more matching values in the same field. So in english... "Show me all records that have an ATTRIBUTE of "red" AND an ATTRIBUTE of "large" So for example, if Product A is red and large, it would show. If product B is large and blue, it wouldnt show. ==== Is that possible in any way? Tried JOINS, UNIONS etc though I'm not advanced enough in mysql to fully understand it. Thanks for any help/suggestions.
  6. Hi all, Got a problem thats a real headscratcher. Client has a large ecom site that I am building and they would like the 'attribute searching' that is popular now on sites like eBay (also Halfords, Amazon etc). So the user clicks on 'Books' for example and then a sub list opens at the side that could say "Hardback", "Paperback" etc with a number in brackets of the amount in that attribute. So the user is basically 'drilling down' to a smaller range of products. I've got 1 level working fine - clicking on an attribute of 'Red' for example shows all my 'red' products. But adding a second level in (and obviously further levels) is proving really hard. I've got the links and code working so when a user clicks on another attribute it adds it to the mysql statement, but I'm not sure how to code the search. I've got a few tables involved here:- 1) Products in category (called ProdInCat and holds values of product Ids and Category Ids) 2) The main product table with all the details in of the product 3) Product attributes (called ProductAttributes, which holds product Id and Attribute Id). So the problem is finding a product in CATEGORY X which has the ATTRIBUTE Y AND ATTRIBUTE Z. Soon as I put the AND in, it returns no results. Phew... Has anyone done anythign similar and how did you get around it? Many thanks! ==== Just to kickstart anyone, this is my current statement... SELECT tabProdInCat.catId, tabProdInCat.prodId, tabProdAttributes.apAttId,tabProdAttributes.apProdId FROM tabProdInCat LEFT JOIN tabProdAttributes ON tabProdAttributes.apProdId = tabProdInCat.prodId WHERE tabProdInCat.catId = %s AND (tabProdAttributes.apAttId = 21 AND tabProdAttributes.apAttId = 27)
  7. Thanks for the reply. Yea, I do know that will create the effect, but the effect I am looking for is so the block of colour stops when the words on that line of a paragraph does. So for example, if I put the background colour on the <p> then the whole block will have a background colour in 1 big square. Think I have it now anyway with the code I re-posted above!
  8. Answering my own question! $expcontent = explode(" ", $row_rsContent['pageContent']); foreach ($expcontent as $content) { echo "<span class='textbg'>".$content." </span>"; } Not elegant and the markup is massively increased, but best I've got at the moment... Anyone do it more gracefully?
  9. Hi all! I made a mistake of designing a site which has a block of colour behind the text on the page - looking much like a 'punk style'. For some reason I thought this would be easy to do, but of course its not! Does anyone have any ideas on how to recreate this? At the moment the colour behind the text is shown in a block (the block of colour should only be behind any text, so if one line of text only has 4 words in, the colour will stop after that text, not carry on till the end of the line). Thanks for any ideas! Cheers, paul
  10. Hi All, Got a quickie - have a transparent gif image that I need to sit over the top of a flash movie (well, actually Flash Image Text Replacement). Works ok in Firefox, but in IE, the flash object is higher than the Gif. I've tried z-index, but makes no difference. This is the site I am working on:- http://tinyurl.com/6khvxj If you click on any of the top links in IE you will see the problem. Any ideas please?! Thanks, Paul
  11. When I moved from one of the UKs largest hosting companies, I was looking for a host that could not only offer me the technical specification I needed, but also one who would give the kind of customer support I had become comfortable with. I trialled a few hosting companies whilst I decided and it was Peartree that ticked all the right boxes for me. I took a quad core dedicated server and from day 1, Rob has been amazingly helpful above and beyond what would be considered 'the norm' and has always been on hand to help out with any issues. I've not experienced any problems with the hosting platform and am delighted with the 100% uptime so far! I would strongly recommend Peartree to any Freelancers or Web Studios who are looking for a great hosting platform backed-up with excellent customer care. If anyone needs any more info about them, then please feel free to drop me a PM!
  12. oh my god Spot on, thanks Mike. Cannot believe I missed that, I feel awful. Spent hours staring at it and trying different things over the weekend. How odd then that it works in IE and Safari. Must be less fussy how data is transferred. Anyway, thanks again - I'm very grateful!
  13. Whatever the problem is, I think its this part now:- function handleStateChange3() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { document.getElementById("showavailableslots").innerHTML = xmlHttp.responseText; } } } In Firefox, it appears the xmlHttp.status never gets to be 200 - as I changed the line underneath to change the 'innerHTML' of the DIV to be "HelloWorld" and again, this works in all browsers except FF3. I dont really know enough about AJAX, but is there any reason the status would not be 200 at any point? Thanks, Paul
  14. Thanks, I'll give that a go Nah... didnt work - still no AJAX in Firefox. As the code works in IE, the only thing I can think of is a DIV problem - i.e. the innerHTML not being updated and displayed in Firefox. I'll keep trying, but thanks for looking.
  15. Anyone ever had AJAX not work in Firefox (3). Works in Safari on my Mac, but nothing in Firefox. Its simple AJAX that operates 'onclick' will change the 'innerHTML' of a DIV. This is the code, but I doubt it will help on its own.... function startRequest3() { createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChange3; xmlHttp.open("POST", '/includes/checksponsoredad.php?type=' + document.getElementById('selAdCategory').value + '&postcode=' + document.getElementById('selAdPostcode').value, true); xmlHttp.send(null); } function handleStateChange3() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { document.getElementById("showavailableslots").innerHTML = xmlHttp.responseText; } } } As I say, in Safari, works fine. I've tried refreshing Firefox etc. Get no Javascript errors in the developer toolbar either Cannot really give a link as the actual code is behind a login area. Any ideas please? Thanks, Paul
  16. Hi All, I'm having no end of problems with some new hosting - primarily my emails arent routing to the right place and also, when I try to transfer a clients domain (.com) I'm getting told that the name server I am entering is not registered. The host says I need to enter glue records along with my main domain name - but I cannot find anywhere on 123REG to do this. Anybody know of any way to do it? Thanks, Paul.
  17. Thanks chap - I'll add them to my list and check 'em out
  18. Hi all, I currently host sites with my old company on their Racksapce servers. For various reasons, those servers could be ceasing soon - I have started to collect a few freelance clients and would now want to host them on my own server. I would need a server I could host (potentially) many sites on with:- Linux Environment PHP4 mySQL databases (1 per client) Ideally PLESK Good support The support is really a big thing as Rackspace support is amazingly good - and for me, what makes it worth the money (if you can afford it!). Has anyone got any good UK based solutions please? As I'm just really starting out, I need something affordable, but I appreciate to get what I want, may cost a bit. Thanks, Paul.
  19. Thats exactly my feeling too John thanks. Like I've said to the client, if it was an ecommerce site and he was selling the camera's, there would be the same image on the site advertising the camera for sale. Nice to get a second opinion though!
  20. I have a client who is a photographer and he would like to use a image of his camera on his site. The camera is a Canon and it's raised the question of copyright - the client is concerned that Canon would not like the image to be used, where I think it will be ok, especially if it is his own image of the camera. Anyone got any views on this, or more importantly, any ideas how to be sure - contact Canon?
  21. EDIT: **** IGNORE **** This is sorted now - had the wrong path...
  22. Hi all, Trying to help my old company with one here. Client needs a file FTPing each night to an affiliate. Using the PHP FTP methods and all seems ok. I get a message back saying "FTP connected for user blah", but then the vague message "FTP Failed". has anyone got a fool-proof piece of code that clearly shows what paths are needed where so I can drop this in please? Its doing my head in!! Thanks, Paul
  23. The client loved the design, but also wanted to see something else so she had a choice! Here are the others - which is really the same design with a twist. Not sure if they are as good as the first, but I was overwhelmed by the feedback from you guys
  24. I have just brought my first SLR too - the Nikon D40 with the stock lens. I'm loving using it and have had some brilliant results in the few days I've had it! Gotta get a zoom lens next and am looking at either the Sigma 70-300 (around £120) or the similar Nikor (around £160).

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.