Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. The first array contains results that matched the entire reg exp, the second are those that were matched within the first pair of brackets. You could use "PREG_SET_ORDER" like below to only return the first matches and after: preg_match_all('/\'(.*?)\'/', $data, $enum_array, PREG_SET_ORDER);
  2. Unfortunately there's no PHP alternative to that code. It relies on being able to modify the DOM after the page has loaded- which PHP cannot do (as it's processed server-side before you start loading the page). I wouldn't rely on JavaScript for this either to be honest, as you say users could disable it. The best solution I think would be to try to lower the file size of the image. Perhaps try lowering the quality of the image (whilst it doesn't visually loose quality), and try using image optimization tools like Smuth.it.
  3. To be honest I don't really see what this code would be used for? Could you explain what you're trying to do a little better?
  4. Adam

    offline database

    Oh. Well with web based applications, there's no current way of doing this (that I know of). I would have thought the autorun.exe file on the CD-ROM calls/performs this operation - but that'll be a lower-level programming language such as C, C++, etc.
  5. Adam

    offline database

    Right now there's no real solution to this that I know of. The only way you can store anything on a users computer is by cookies, however they're only made for relatively small bits of data - nothing to this extent. Actually one of the aims of HTML 5 is to bring this element of caching to the web.
  6. Your problem's here (lines 14-15): $senderName = stripslashes($senderName); $senderName = stripslashes($senderSubject); You're setting $senderName to $senderSubject. NB In future you'll probably get more / quicker responses if you post code within code tags.
  7. I believe you've posted this site before? What changes have you made since? I seem to remember before general opinion was the site, visually, looks good.. But there were usability problems. Mainly that the browse functionality was quite limited, and from a quick play around again, doesn't seem to have changed much.
  8. He meant accessing the files through the command prompt. Have you contacted the manufacturers about this? If it's a common problem surely asking them how to sort it would be the best solution.
  9. How does that help him at all?
  10. Actually placing the variable within double quotes does work. The problem is you're missing a semi-colon after $name="asit" ..
  11. Here's an example: <?php $max_price = 11215; $cur_price = ceil($max_price / 500) * 500; while ($cur_price >= 1000) { echo $cur_price . '<br />'; $cur_price = $cur_price - 500; } ?>
  12. Depends what banning involves.. Starring out the wrong 'uns, or just flatly refusing to send the email?
  13. More than anything, back links like that are only beneficial if the site linking to you has a decent page rank. Unfortunately your site currently doesn't even have a page rank (going by the Google toolbar).
  14. Ha.. indeed. I didn't actually look at that website, thought this was a satellite kind of thing.
  15. What about freeview then? I think that's got about 5 or 6 BBC channels..
  16. Haha, oookay.. [attachment deleted by admin]
  17. At work I've got 2 identical 19" monitors, first time I'd used dual and like others I'd never go back. At home I've now started using a spare 19" monitor I had lying around. With the resolution difference though (1024x768 vs. 1280x800) it's not quite as effective, but definitely still worth having.
  18. Okay, what method would you like to store the content (template files / database)?
  19. The page id is just a reference to content stored in another location - be it a template, database, etc. You collect the page id within the script and use that to locate and include / echo / basically print out the contents. There's many methods of doing this though.
  20. Have you tried echoing out the values for $startFrom, $recordperPage, $searchCat and $searchField to double check they contain what you expect? This would suggest the $searchField variable does not contain a value... "% %".
  21. Perhaps describe your problem in a little more detail. Which query do you mean when you say 'i query and it displays the results'? What's supposed to happen when you click submit, which query is then called? In what way should the results 'automatically display'? Your problem is very vague with a big block of code.
  22. http://www.stevesouders.com/blog/2009/09/26/mobile-gmail-and-async-script-loading/
  23. Edit: Okay so the register link needs to be much more eye catching - I didn't even see at first. Entering incorrect login details takes you to a very bare white page with a back link (I'm detecting the use of die). The register form is a little kind of awkward looking, the text is pretty bare, but no real problems with it. After successfully registering though the 'success' message should be made much more visible, I didn't spot it at first and thought it had failed. By the way I'd consider adding some spam protection to the register form.
  24. Aha.. I've got a ps3, ID is "solid95" - proper rubbish name I made about 3 years ago and just stuck with it. I generally play COD4/5 (awaiting release of modern ware fare 2) and also GTA4.. all about the shoot 'em ups really. Metal gear solid 4 is an awesome game but really complex story line.. I'd definitely play the others first.
  25. I'm sorry but I lean closer to the "i hate it" crowd. The text is very plain and uninviting. The background looks really low quality. The color scheme seems jaggered and doesn't flow well. I can't really see anything wrong with the structure or placing of content, just the design ruins it in my opinion.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.