Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. looks like we need to see the insert code - there is nothing wrong with what you have there (except you are repeating yourself!) Without seeing the other code its clear you have something that is either not executing the transaction twice OR you are not changing the db connection resource identifier when making the second. If you have 2 sites doing the same thing - why are you using 2 databases? if they need to be identical then its MUCH easier to use (and have to administer) just the one database and let both sites connect to it.
  2. sorry didn't see it... is that portion of code still in place? if the error processing query is being displayed the if($_POST['do'] == "process") is evaluating to false.
  3. OK haku - lets call it a day... You think swfobject is right tool for the job - I think it isn't for the reasons given.
  4. fair enough. but I don't thin that is reason enough to forego quality in your site builds - but thats just me.
  5. No it shows that error because it is NOT trying to do anything with the POSTED value of 'do'. Again I suggest you print the post and get array prior to that code so you can see what is in them and follow your logic... read my initial post in this thread.
  6. haku - I don't get it. You clearly have the right attitude towards what should be done but I find it odd you don't apply it to how you work. Do you think I ignore my target audience by using the nested object method? Is my target audience not able to access the content I want them to have? Would you concede that the nested object method not only provides for your target audience but also for those on the fringes of it and even outside? Is that not what the web is about - being inclusive? Anyone who is blinkered in their target audience and fails to provide for the fringes is not a true professional IMO. Oh and by the way - yes you can be prosecuted if your site offers a service or goods and certain people cannot use it to access those services/goods. One site was prosecuted because they didn't put alt attributes on images...
  7. @haku - have you heard of progressive enhancement? accessibility? standards compliance? 508 or the DDA (UK law)? Would you build a a site offering deals that can only be bought via your site and builiding it in such a manner as to require javascript to be present/on to be able to use it? or build it purely in flash? No you wouldn't because you (should) know its not the right thing to do. If you did you could be prosecuted - the reason for that is there are techniques available to achieve these things with minimal requirements from a browser. fact is you can implement flash without javascript and because you can you should, as a professional, implement that in a fashion that is as all inclusive as possible - regardless of your target audience.
  8. try printing out the get and post array to sse what is and isn't set prior to the first conditional you in your code. print_r($_GET); print_r($_POST); That will let you know what has and hasn't been set - then you can follow your logic and see whats happening.
  9. guys you are missing the point - it isn't about who your target audience is - its about the correct implementation of a technology. Its all down to opinion but simply put - I don't want to miss out on flash when I have flash installed and javascript off - thats annoying. That is someone preventing my browser do what I want it to do because you they decided to implement one technology only if another one - which is completely unrelated - is present. Can you see why that is wrong?
  10. SOAP is a webservice - its not tied to a particular technology its just a communication medium. RESTful services are my preferred method of communication in these matters but thats just me. Having someone signup to your service and auto install stuff on their server is not feasible - you may need access that the server will not give. better solution would be to give them a setup.php script as pked suggests - that could contain details to download from your server and install or have everything the actual package needs to install it. good luck
  11. 4% on the web is a HUGE number of people!!! would you have an online store and automatically prohibit 4% of the people on the web using it? I doubt it. Fact is that these results are easy to obtain and in such enormous volumes that they are a very very good guide to the state of the web as reliable as the w3c stats. And yes Millward Brown are independent - they are very much like TNS in that they collate information for business to consume - hence it better be worth consuming. Anyhoo this was about how to implement flash on your page - and how to be as inclusive/standards compliant (and the rest of it) as possible... To that end the nested object tag with some good markup within the inner object to explain what would be delivered if the user had flash (and maybe a link to install it) is IMO the better solution.
  12. if the value is blank then it means the session variable used is blank/not set.
  13. just before your 1st if statement echo out the value of $placeValue - echoing out this kind of stuff really helps in debugging... For future reference in cases where you are looking at one parameter having many different values and do something different in various cases have a look at the switch statement in php.
  14. @crayon flash stats it is an independant survey. so by that you would prevent 4% (based on the 95% level of js enabled browsers) from seeing te content you intended... Flash is actually pretty good - its like anything else computer related - its only as good/bad as the person who wrote it. Watch out for silverlight - I am starting to eat my hat on how well it would be able to penetrate the market; and honestly? its pretty good too
  15. @nrg_alpha I kind of agree - not with standing how you implement flash is slightly different matter. To that end if you are going to implement anything on your site use the right tool/technology for the job...
  16. woot - JS has increased! Fact remains - if you have flash installed you want to be able to view flash even if javascript is off. More people still have the plugin available than javascript.
  17. SWF object is not the ideal solution. It markets itself as an 'accessible' solution and too many have taken that at face value. This is not to undermine the work that has been done on swfobject - they have done some capital stuff, its just people don't realize its impact. You should 'never' rely on one technology to implement another. Apparently 98% of capable browsers (by that I mean browser that support the flash plugin) have it installed. Of those a huge proportion have the latest version. Compare that with an estimated number of clients with no javascript - 90%. This either that they simply dont have it or (much more likely) javascript has been disabled for security as in some large organisations). So by using the usual swfobject implementation you actually prevent more people from viewing your flash than those they don't have the plugin installed. The only real benefit I could possibly vouch for is registering the object to detect the pulgin version but then you'd expect the flashplayer plugin to be able to inform the user that they need to upgrade (don't know if its capable of that but it would make sense).
  18. hmm - learn something new - honestly never used array_map - and when I have used array_walk its been with my own defined function. still my 'methodology' was there
  19. try this... <?php $files = glob('/200_*.jpg'); array_walk($files,'unlink'); ?>
  20. ? straight forward enough? ftp_ssl_connect() that creats your connection... and ftp_nlist() will give you the contents of a given directory...
  21. good spot @rhodesa - also try and keep style out of markup and in your css whenever possible
  22. width 0 would render this invisible - and hence pointless - what are you trying to do and why?
×
×
  • 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.