- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
36 Posted Topics
Re: $beds = 2; //// input from search form $area = 'london'; //// input from search form $query = "SELECT * FROM property_details WHERE add_area='".$area."' AND prop_bedroom => ".$beds." ORDER BY add_date_orig_rfc DESC"; // this should grab every property in London with two or more bedrooms and sort by date order … | |
Re: Not exactly a revelation, it's a long standing problem here in the UK with government departments and many large orginisations being tied into ridiculous support contracts that require them to use IE6. WinXp is of course still around and being re-installed on a regular basis. Then you have the dJuggler … | |
Re: Yahoo Pipes has the ability to read the contents of file and assign them to a variable that can be invoked from client side javascript. It's close cousin YQL also has 'storage pockets' 100kb in size that the contents of which can be manipulated by browser javascript in conjuntion with … | |
Re: > The admin should be shot. Not literally! I am not so sure, the admin could be applying heuristic methods of education. Forcing the the students to learn how the code works in order to find solutions as opposed to them just doing a cut & paste job from a … ![]() | |
Re: `$i = 1;/// has to be outside the foreach loop` `foreach($active_keys as $key)` `{// rest of the script}` | |
Re: Yep, need the code for 'myvideo'. Pretty sure the setAttribute is going to the wrong place as the *src* of YouTube videos are wrapped inside an iframe. | |
Re: http://www.online-convert.com/ is a useful bookmark or you can download the VLC media player http://www.videolan.org/vlc/index.html it's free and has a built in file format conversion function [versions available for PC,Linux and MAC] Been tinkering with something similiar at *lovelogic.net/a_/trans.php* and as long as you include both MP3 & WAV versions of … | |
Re: > I will post my code if needed :) **No need, just move your head to one side so I can look over your shoulder.** Of course not everbody is capable of remote viewing, lives across the street, telepathic, owns a spy sat, has remote access to your PC or … | |
Re: if (timeLeft < 0) { window.location = "http://www.google.com/" } Add that to the end of your script it should do the trick. | |
Re: Try.. $(document).ready(function() { my_custom_function(); }); JQ has its uses but I think it's overkill for some jobs. <body onLoad="my_custom_function()"> | |
Re: > but if username or password be invalid , original asp login page is shown with invalid username or password message , i want to do recognize invalid username and password in my page and show message there. > Sounds like [Phishing](http://en.wikipedia.org/wiki/Phishing)? or the beginnings of a Brute Force password … | |
Re: > mob.mysite.com Has nothing to do with apps or mobile devices, it's what's known as a Subdomain and can be called anything. They are created using the control panel of your website and will route all traffic to the sub-domains URL directly down to a folder inside your main sites … | |
Re: ` <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>` For jQuery commands to work you have to include the library for it in the <head> section of the page. | |
![]() | Re: header location ... does not work if something has been put on the screen using echo or print |
Re: **Why not get a free web hosting account over at X10Hosting? they have a one click install for a phpBB forum and will even allow the use of chat scripts.** However if you do not like the idea of the web hosts Admin being able to see what you are … | |
Re: Flash has some less known quirks and does not actually open inside the current window instead it creates a new one and that automatically gets put on top by the browser. This is why it does not appear to obey z-index settings. There's a documented workaround [here](http://slightlymore.co.uk/flash-and-the-z-index-problem-solved/) but it may … | |
Re: There is a PHP class that gives you a virtual SQL database using flat files. see-> http://www.fsql.org/ Alternatively you could code something up yourself using fileatime & filetime. <?php // get file access/modification times echo "Last accessed on: " . date("d-m-y", fileatime('myfile.html')); echo "Last modified on: " . date("d-m-y", filemtime('myfile.html')); … | |
Re: Validating the text content looking for certain keywords (poker, insurance, pharma etc) or script tags and rejecting the message if they are found will reduce the amout of junk messages you get. Spammers are creatures of habit and nearly always try to write links as full code in the hope … | |
Re: After discovering that a replacement ink cateridge was going to cost almost two-thirds of what I paid for the printer it ended up in the trash. Now I just take anything I need a hard copy of down to the local library or photo-print shop on a memory stick. | |
Re: The snippet below demonstrates the PHP 'preg replace' function that is useful for this sort of text manipulation http://php.net/manual/en/function.preg-replace.php $string = 'The quick brown fox jumped over the lazy dog.'; $patterns = array(); // find these $patterns[0] = '/ /'; //// single blank space $patterns[1] = '/brown/'; $patterns[2] = '/fox/'; … | |
Re: I prefer the http://www.roam4zero.com/ site with its no frills approach. | |
Sometimes user interactive [B][I]web fluff[/I][/B] is useful for holding a visitors attention on a site, so here is a little HTML5 canvas demo to create random numbered lottery balls that bounce around a bit. The basic page code is below and the three external javascript files can be [URL=" http://lovelogic.net/support_articles/lottery.php … | |
Re: Users want nice looking websites and javascript validation does perform some nice visual tricks, however... webmasters want security because ANY data coming from a users browser via a URL GET or POST even cookie information is suspect and needs to be checked server side before the other script functions get … | |
Re: You need to contact the OWNERS of the site not people who made the flash widget, this is normally found in the Terms & Conditions of most websites. [QUOTE][B]Contact[/B] If you wish to contact us, or have any concerns about material which appears on this website, please contact us at … | |
Re: Javascript can read & write information to both cookies and a special client side storage area if a large amount of stuff needs to be stored. However it is not very secure as the visitor can ammend any data stored in their browser. PHP does this sort of thing a … | |
Re: In cms_class.php line 26 change it to this and see if it works. [CODE]$sql = "SELECT * FROM posts WHERE id = '".$id."'";[/CODE] | |
Re: It would make more sense to store the distance value between zip codes as a seperate 'look-up' table of pre-computed results as this information will never change. | |
Re: Any template can be modified to suit a particular flavour of pervision, your biggest problem I fear will be finding a web hosting provider. Most wont accept 'Adult' sites and those that do will charge some pretty steep annual fees. | |
As some of you may or may not know on the 26th of May 2011 new legislation comes into force for any site doing business inside the European Union about the way cookies can be used by websites. Have already prepared changes or are you waiting to see what the … | |
Re: You can create and RSS feed for your site using Yahoo Pipes, this can scrape content from the sites own pages to make the feed. | |
Here's a little brain teaser for you all. A client wants a [B]secure[/B] members only area of thier website with username/password access control, however the sites web host does not support any form of server side scripting or htaccess and to complicate matters further the client will not or cannot … | |
Re: Because the videos are embedded and therefore not uploaded to, or stored on your site then the buck stops with you-tube. | |
Re: Speculation seldom helps form a solution. Whilst Javascript cannot directly access another domain, cross domain requests from a client side javascript are a routine event across the internet for API's such as Yahoo Pipes. Prem2, what exactly are you trying to achieve? or perhaps more to the point is it … | |
Re: At the end of the send.php script try this code [CODE] echo "Message Sent"; sleep(2) header( 'Location: http://www.yoursite.com/' ) ;[/CODE] This should put the message on screen saying mail sent, then wait two seconds before sending visitor back to main index page. To get that mail sent message appear on … | |
Re: You can only delete cookies that belong to your domain and the command to do this MUST come from the webserver where the domain is being hosted. |
The End.