2,295 Posted Topics
Re: What datepicker there is not enough information provided to give assistance | |
Re: given a host that allows any server scripting, most do either php or asp, for ease this is a php scrap one line in each file affected by the change [code=php]<?php include('pathto/filename'); ?>[/code] where filename is the file containing the html of the changed information incidentally ALL repeated content can … | |
Re: 1 find a problem 2 develop a solution 3 make sure solution WORKS awesome | |
Re: 'someone' is wrong, sanitizing filters are smarter than that, >this filter is aware of the default_charset and if a sequence of bytes is detected that makes up an invalid character in the current character set[/b] then the entire string is rejected resulting in a 0-length string. My **bold**, aware of … | |
Re: clean up the code, perhaps, there may be something that you missed [U]something[/U] you may have missed .moz css extensions only work in mozilla browsers safari is not a mozilla browser IE is not a mozilla browser your client(safari on Mac), and 70% of all possible visitors(IE), see fault in … | |
Re: iframe code for no problem[code=html]<html></html>[/code] iframe code for problem condition[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><script type='text/javascript'> <!-- top.location = 'location of selected problem page' //--></script></head><body></bopdy></html>[/code] | |
Re: [code=html]<link rel='shortcut icon' type='image/x-icon' href='http://www.schoolfriendtime.com/favicon.ico'> <link rel='shortcut icon' type='image/x-icon' href='http://www.schoolfriendtime.com/image/favicon.ico'>[/code]not sure if subdfolders work, I know root folder first option works lower case | |
Re: This .htaccess code allows any uri posted to the html filename in the folder given, to work transparently with the new php system everything before the extension .html gets posted as $1 to $1.php old links old bookmarks still work | |
Re: lookup [url=http://lmgtfy.com/?q=what+is+progressive+jpeg]progressive .jpg[/url] | |
| |
Re: [code=html]<form onsubmit='document.getElementById("textbox").value="";'> <!-- or --> <input type='submit' onclick='document.getElementById("textbox").value="";'>[/code] or any other combination of form/input & onanything | |
Re: rationalise the code so images have the same name as the state value options, saomething like[code=html]<select onchange='document.getelementbyid("smallimg").src="images/small/image_"+self.value()+".jpg";document.getelementbyid("imglink").href()="images/large/image_"+self.value()+".jpg";' name='state'> <option value='1' selected='selected'>Alabama</option> <option value='2'>Alaska</option> <!-- etc --> <option value='50'>Wyoming</option></select> <a id='imglink' href='images/large/image_1.jpg' title='alabama at 1024*450'> <img id='smallimg' src='images/small/image_1.jpg' alt='' width='50' height='50'/> </a>[/code]width and height specified for small image, a html requirement … | |
Re: if this is a tablet or phone and the screen is only 250px wide? calculating a distance from the left edge wont work none of the styles described so far will work if the window size is changed trying to patch something together from incomplete code is difficult, all the … | |
Re: retired already, see below Sig, travelling summer in Canada, seeing all my wife's country, then travelling the other summer in Aus, my wife seeing all my country got to love royalties back when I started, , , Fortran punch cards, 600 punch cards to print one naked ascii lady | |
Re: Sitemaps for SEO are not human readable the sitemap is a machine readable file detailing the file structure, in its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about change frequency, relative importance, useful sitemaps can be generated at many … | |
Re: [code=php]$result=$db-> getall(month); show_record(0);[/code]? | |
Re: [code=php]<?php ob_start("ob_gzhandler"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head><title>Email Contact form</title> <?php include ("./menu.php"); // all the missing </head> and <body> are included in menu.php ?> <P>Email</p> <form action=<?php echo $_SERVER['PHP_SELF']; ?> method='post'> <input type='hidden' value='Email from web form' name='subject'> <input type='hidden' value="This is a string that … | |
Re: and when inputting the date, If you have control of the data form [icode]<select><option value='1'>January</option><option value='2'>February</option>[/icode] etc | |
![]() | Re: you have worse problems than that fixed column looks ridiculous on widescreen monitors, pushes content offscreen in small windows or displays px are not layout tools px are used for images current best practice for layout is em or % scalar dimensions that adjust to window size screen resolution and … ![]() |
Re: O open (opens in a spreadsheet) Ctrl-P print [noparse]https://spreadsheets0.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AhhCntOrEg9FdF9PZkIwY08tZTdwd3lkYkJFNEtkMkE&single=true&gid=2&output=txt [/noparse] plain text file | |
Re: generic counter, accepts parameters for all items, enable more than one field to be counted on a form, hate hard-coding :) [code=javascript]function countChars(textboxID, displayInID, maxCount){ var count = max - document.getElementById(textbox).value.length; if (count < 5) { document.getElementById(counter).innerHTML = "<span style=\"color: red;\">" + count + "</span>"; } else { document.getElementById(counter).innerHTML = … | |
Re: the [I]display users[/I] page and the [I]edit user details[/I] page, should be completely separate, when opening the edit user details page the user should be presented with a single item, containing only their details, [icode]select * from table where id = userid[/icode] , where userid is only pulled from the … | |
Re: as reported by MM, css only works on valid tags, you cant add new tags the [noparse][code=php][/noparse] tags used on forums like this are not html, they are a plugin called bbcode, note square brackets, which is interpreted when the page is built and displayed in html, with colorcoding[code=css].code {} … ![]() | |
Re: there isnt any 'bad' characters in the database records, unsanitised quotes etc that may mess up the sql ? probably get negged for asking the obvious, but the obvious SH__ sometimes happens | |
Re: No SE bots dont have access to the server logs that actually record visits data not part of the server log can be faked tricked abused, or is simply wrong | |
Re: [code=sql]select count(*) as num from table select * from table order by price limit 0, num/3 select * from table order by price limit num/3, num/3 select * from table order by price limit 2*num/3. num/3[/code] not a mean price, set around 3 median price groups, you can do the … | |
Re: assuming a data structure where the user table has a unique autoincrement id number apart from name address etc database table lastmessage 1 column 'last_message_id' each machine in the sending messsages group in this example is sending 500 emails before repolling the server[code=mysql]select last_message_id as TEMP from lastmessage limit 1 … | |
Re: possible causes[indent]google bug: contact google the other site has embedded the wrong key code: contact google and/or other site[/indent]google analytics doesnt work as expected all the time, nothing does, it could be a random event that doesnt recur google analytics does not work, does not find anybody with antimalware apps … | |
Re: I believe passing a query string to the included file is functionally unneccessary the included file becomes part of the outer/wrapper/including/calling file //you choose an appropriate description all the values known to the outer file are known to the included file if id is given in a query string to … | |
Re: [url=http://www.cssplay.co.uk/menus/flyoutt.html]Stu Nichols[/url] would be the site to visit, " flyout vertical css menu ", he's made a bunch of css menus that do as you wish, and just work as styled UL, if this one isnt right, there will be one on the site that is pretty close the google … | |
Re: perhaps the drupal help system and forums may be a better place for this more specifically drupal problem [url]http://drupal.org/documentation/modules/help[/url] [url]http://drupal.org/community[/url] probably this one [url]http://drupal.org/documentation[/url] | |
Re: as well as turning of reporting, why not fix the error $flag is defined with a true value in a subroutine at line 34, if the subroutine is not executed there is nothing for line 49 to examine before the subroutine in line 34, set $flag to false, at line … | |
Re: changing the file name is easy, php does STUFF [code=php]<?php ///Posted in Phpadda.in/// // the directory './' - is the current directory '../' - is the parent directory // case sensitive // e.x.: /home/user or c:\files $dir='../images/'; // 1 - uppercase all files // 2 - lowercase all files // … ![]() | |
Re: it appers to be limitations in the iphone pdf reader, there are several replacements [url]http://www.everythingicafe.com/forum/threads/new-pdf-reader-app-for-iphone.40575/[/url] sample apple, superficial whizz-bangs hide the failures | |
Re: perhaps because the code used is invalid [url]http://validator.w3.org/check?uri=http%3A%2F%2Fwww.newstylesignsusa.com/sign_types.html&charset=%28detect+automatically%29&doctype=Inline&group=0[/url] html fail [url]http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.newstylesignsusa.com/sign_types.html&profile=css21&usermedium=all&warning=1&lang=en[/url] CSS 2.1 fail [url]http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.newstylesignsusa.com/sign_types.html&profile=css3&usermedium=all&warning=1&lang=en[/url] CSS 3 fail Valid code does not ensure the site will work ... Invalid code ensures the site will [b]not[/b] work ... .. in all browser OS combinations | |
Re: auto link builders link farms link exchanges are effective in getting the site black-listed build the links manually, get accepted too easy | |
Re: [code=php] $output = bla blah bla; /* the data output from the background php page. I had to put SOMETHING here, */ $getdate = date( 'd-m-Y, H:i:s' );// Get the date. $user_ip = $_SERVER['REMOTE_ADDR'];// Get the user IP, just in case. $referer = getenv("HTTP_REFERER");// Get the refering page. just in … | |
Re: ASAP (10) + a-hole factor (-100) = cup of coffee and a friendly kmayoyo :) dont know a css style to do it have always used a transparent background with 2 horizontal lines for the span of text | |
Re: [url=http://lmgtfy.com/?q=dynamic+select+box]the google search[/url] There are many scripts to do just that, there are javascripts to do it clientside if the choices are limited in number ajax scripts to pull the alternates from a DB table for more complicated data straight html that refresh the page onchange and _GET a modified … | |
Re: may take a two part query not formalised as code, just a thought exercise firstarray=select from team teamid secondarray= for each in firstarray select from games where teamid=firstarray[team] order by date desc limit 6 properly constructed would create a 2d array where rows are by teamid, and columns are team … | |
Re: [code=php]echo "<tr><td><a href='$Link[$j]' target='_blank'> <img src='/images/news3.gif' /> <font color='#FFFFFF' size='3'>$NewsPapers[$j]</font></a></td>";[/code]the html is screwed up, a mix of xhtml and html, attributes are required to be quoted, dtd is required some browsers will fail to render on this type of error wrape code in [noparse][code=language] [/code][/noparse] tages where language is html … | |
Re: I hate 'choose a language' pages, so does everybody else, so does google, bad idea | |
Re: [url=http://www.php.net/manual/en/datetime.createfromformat.php]datetime.createfromformat[/url] should cover the neccesary formatting, produces a datetime that you can dump straight into the db[code=php]<?php // part of the php script sanitizing the data for input to db where the form date field is inputdate $DBdate = date_create_from_format('n/d/Y|', $inputdate); // trailing | sets time to 0 ?>[/code]the sql … | |
Re: [QUOTE=blocker;805646]Good day to everyone! I just want anybody to correct my code. The code tells that when i click on the button it will dispay a msg that will confirm if the client really wants to add the information, If yes then he will be redirected to another page, if … | |
Re: We send email to the email contact address [code=php]echo 'Your contact details have been added to the display page for '.$local['town'] .' the contact details look like this'.$local['contact'] .' the page can be reviewed at <a href="mysite.com/'.$local['town'].'/">'.$local['town'].'</a>' .' please contact us if you wish your details removed';[/code] we have only … | |
Re: [code=javascript]document.write('this is a basic Javascript');[/code]<--staggers off, giggling drunkly | |
Re: [url=http://lmgtfy.com/?q=css+sprite+tutorial]why not[/url] | |
Re: this [icode]type="text/css">@import url('menu/menu_style.css"');</style[/icode] means load the css file inside the menu subfolder of the current folder doesnt work when you are in a subfolder because the menu folder is no longer a subfolder [code=php]<style type="text/css">@import url('/menu/menu_style.css"');</style> <style type="text/css">@import url('http://www.yoursite.com/menu/menu_style.css');</style> <style type="text/css">@import url("<?php echo $_server['document_root']; ?>/menu/menu_style.css");</style> <link rel="stylesheet" type="text/css" href="http://www.yoursite.com/menu/menu_style.css"> <link … ![]() | |
Re: the search would be something like [url=http://lmgtfy.com/?q=googlemaps+api+directions] why not get off your lazy but and look [/url] | |
Re: define sourcecode, the part that makes it work, no, the resultant html yes |
The End.