2,295 Posted Topics
Re: Most find that speed is not the issue post is better for some purposes, get for others this discussion may help [url]http://stackoverflow.com/questions/1211881/why-get-method-is-faster-than-post[/url] | |
Re: [code=php]<a href='<?php echo $_SERVER['PHP_SELF']; ?>?x=a.txt'> a </a> <a href='<?php echo $_SERVER['PHP_SELF']; ?>?x= b.txt'> b </a> <?php //hate short codes $xh = fopen($x, 'r'); $theData = fread($xh, filesize($x)); fclose($xh); echo '<h1>$x</h1>'; echo $theData; ?>[/code] | |
Re: Iconize the images, and have javascript load the full images in the background after the page is loaded click the icon, the full sized image displays in a div strategically located on the page, | |
Re: If they are at the office presumably turnstone, are they on a company intranet, the ip reported may not be the external ip expected, it may be the intranet 192.168.*.*, or similar no external file ip redirect[code=php]<a href="<?php ( $_SERVER['REMOTE_ADDR']== '69.245.218.248' ) ? ( echo 'http://www.turnstone.org/employee2/index.html'; ) : ( echo … | |
Re: We find that there are <onEvent> properties that may fail in <tr> between browsers, we put the <onEvent> handlers in the <td> instead, visual styling seems to work with every thing per cguan's advice, this link [url=http://www.browsershots.org]BroswerShots[/url] will let you check out your code in browsers (all of them) to … | |
Re: this is better[code=php]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Add help</title> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" /> <!-- Put IE into quirks mode --> <title><?php echo HOSTDESCRIPTOR ?>: HelpPage</title> <link rel="stylesheet" type="text/css" href="CSS/Help.css" /> <link rel="stylesheet" href="/CSS/custom-theme/jquery-ui-1.7.1.custom.css"/> … | |
Re: There is an add in library for this function, not sure how good it is, [url]http://phplens.com/phpeverywhere/node/view/16[/url] | |
Re: [code=html]<html> <head> <title>Text Effect</title> </head> <body> <input style='background:url("search.jpg")' type="text" name="txt" value="" onfocus='this.style.background="none";' onblur="if(this.value == '') { this.style.background="url('search.jpg')"; }" /> </body> </html>[/code] where search.jpg is an image of the word 'Search' | |
Re: the code is unneccessarily complex <img src='image1.jpg' onmouseover='src="image2.jpg";' onmouseout='src="image1.jpg";'> the only javascript required is to load the second image in the background after the page is loaded and displayed, so there is no mouseover delay ...snip .. </body> <script language="javascript" type="text/javascript"> //<![CDATA[ <!-- image2 = new Image(); image2.src = "image2.jpg"; … | |
Re: popups are blocked on many systems better is login opens in a layer above the index page and redirect is automatic less likely to be affected by security softwares | |
Re: [code=html]<tr onclick='open("http://www.google.com/","_blank");'> <td>google</td> <td>bla bla</td> <td>bla bla</td> </tr>[/code] | |
Re: there arent 17 lines in this file, so is the cause in the included session handler at around line 16 | |
Re: am using camstreams.com, some of the price in the pricey ones is for setup assistance, we didnt need it it was easy for audio its a matter of a cable from line out on the mix board to line in on the sound card, and choose a stream format we … | |
Re: The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough changing the text select item is supposed to change the price values in the size <select> there needs to be another … | |
Re: add to the above, miss-spelled includes case-sensitive servers where this.jpg may not be the same as this.JPG | |
Re: [QUOTE=chavansoft;957045]cwarn23, I tried it but still could not solve the problem. please I'm trying with all soughts of different function but could not fix it. Please help me. Thank you for the Reply Regards chavan[/QUOTE] perhaps post a little more of the code, the balls up could be the combination … | |
Re: In an rss feed, the output of the php script generating the feed [U] is [/U] xml, rss is an xml format[code=xml]<?xml version="1.0" encoding="ISO-8859-1"?> <rss version="2.0"> <channel> <title>CBC | Top Stories News</title> <link>http://www.cbc.ca/news/?ref=rss</link> <description>FOR PERSONAL USE ONLY</description> <language>en-ca</language> <lastBuildDate>Mon, 31 Aug 2009 15:25:52 EDT</lastBuildDate> <copyright>Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/termsofuse.html#Rss</copyright> … | |
Re: an iframe contains a full html file at minimum [icode]<iframe src='file'>alternate text</iframe>[/icode] rambling on, as thoughts just wander, try [icode]<a href="" onclick="window.top.document.getElementById('element').style.display = 'none'">[/icode] as there may be other elements in the document tree(?), not just the immediate parent | |
Re: The W3c Recommendation for element sizes is % example : excluding <head> [code=html]<div style='text-align:center; width:100%;'> <a href="Body.html">Welcome to the World of Cat Bent</a> </div> <div style='text-align:center; width:100%;'> <img src="Images/Purple_lips.gif" width="385" height="481" /> </div> <div style='text-align:center; width:100%; bottom:0;'> <a href="about.html" onmouseover="MM_swapImage('About','','Images/CatBent_aa_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_aa.gif" name="About" width="15%" height="100" border="0" id="About" /></a> <a href="yourvoice.html" … ![]() | |
Re: using php the user neve sees the url of the file and without a logged in session nothing [code=php]<?php /* download.php */ if(!session_id) { die ('only registered users'); } // better session validation than that but its a thought example $hiddenfile="../absolutepath/$filename"; header('Content-type: file/mp3'); // I dunno and I'm too lazy … | |
Re: add the marks column to the database default blank/fail enable it with a query that enumerates the same output as the prior attendance query and asks you to update the mark fields, for each row in the result array can be all records or single records | |
Re: [code=mysql]insert into #temptable ( IDENTITY(int, 1,1) AS number, select * FROM table ORDER BY score desc) SELECT * FROM #temptable ORDER BY number DROP TABLE #temptable[/code]thought process only, cant guarantee the code mysql is likely buggy its been a while select the data you need into a temp table with … | |
Re: a database column for timestamp of the last update, filled on update with sql now()[code=sql]select from table * where lastupdate < (now()-(5*365*24*60*60));[/code]5*365*24*60*60 = 157680000 ~ 5 years of seconds | |
Re: if xhtml, [code=html]<input type='checkbox' name='yournamehere' value='yourvaluehere' checked='checked' />[/code] | |
Re: 2.a. like this [url]http://www.w3.org/2005/10/howto-favicon[/url] 2.b and this [url]http://www.winterdrache.de/freeware/png2ico/favicon.html[/url] and 1 . no it doesnt | |
Re: [url]http://www.dynamicdrive.com/dynamicindex9/addbook.htm[/url] [url]http://webscripts.softpedia.com/script/Bookmark-Management/Bookmark-Us-Script-44000.html[/url] [url]http://www.google.com/search?hl=en&safe=off&q=cross+browser+bookmark+us+script&btnG=Search&meta=[/url] | |
Re: the student table does not need the text course names the reporting logic can print the text names if necessary from the course table student ([U]studentNum[/U],firstName,lastName,), course ([B]courseID[/B], CourseName,courseTotalCapacity), course_allocation ([U]studentNum[/U],[B]courseID[/B]) one link between each datatable | |
Re: [code=html]<label for='this'>related this </label><input type='radio' id='this' name='oneonly' value='single'><br> <label for='that'>related that </label><input type='radio' id='that' name='oneonly' value='double'><br> <label for='unrelated'>unrelated</label><input id='unrelated'type='checkbox' name='unrelated' value='lots'>[/code] no javascript required **edit** sorry Manuz, just read posts and saw your prior answer | |
![]() | Re: [code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> <!-- .foot {width:95%; background:#66CCFF; border: 1px solid #000; bottom:0; position:fixed; text-align:center; height:50px } --> </style> </head> <body> <div class='foot'>This is a fixed footer</div> </body> </html>[/code] 0px does not work because [INDENT]0px is not a valid css measurement[/INDENT]the … |
Re: perhaps not a direct answer but to determine if the local pc [LIST] [*]has an application that can read the particular version .doc file you intend to print [*]has a printer [*]has security settings that allows scripts to take over their hardware (MALWARE ALERT) [/LIST]it would be better to output … | |
Re: the php string to time function strtotime() allows this [code=php]<?php echo date('l dS \o\f F Y h:i:s A', strtotime('+7 day')); ?>[/code] format the date() how you need, storing the timestamp in the db is more efficient than storing any text representation of the date and time comparisons are simpler, date … | |
Re: [url]http://devphp.sourceforge.net/[/url] using the portable version on a thumbdrive in customer offices the full version on my pc | |
Re: [CODE=css]#Menu li:hover a, #Menu li.over a { background: url(../../images/red/grad2-1.gif) repeat-x top #626A69; }[/CODE]the css above points to a different folder to all the others, 2parents/images intead of parent/images [url]http://jigsaw.w3.org/css-validator/[/url] W3C css validator -- the code itself checks out [url]http://validator.w3.org/[/url] W3C html validator [url]http://www.browsershots.org[/url] to checkout your site in browsers to … | |
Re: [code=html]<img height='100' height='100' alt='alt text' style='float:right'>[/code]works as expected with the sizes specified Note: with the <img> inside the <p> element, only the text of that <p> will wrap around the image. (examples assuming elements are not styled elsewhere ) [code=html]<div><p><img height='100' height='100' alt='alt text' style='float:right'>this text will wrap around the … | |
Re: havent used the video, have used some of the other howtos on the site [url]http://www.csstutorial.net/[/url] | |
Re: Not sure about the exact format, dont have the database structure, but sql query to create the arrays used to create the table is just 3(maybe 4) lines of code[code=php]<?php $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); // query here creates arrays mysql_close($dbh); echo "<table>"; for($val … | |
Re: as noelthefish wrote, the elseif is redundant and takes (miniscule) resources to run, the ! means not, If (not$variable) {do something;} else {do something else} | |
Re: make certain you do not change any code you do not understand the 'new programmers' are using php, your original answer is obvious, when you understand what the code says, but difficult when you are used to plain html if you make changes to code that the php depends upon, … | |
Re: expanding on wilch's prior post, his(her?) answer is correct the html <label> tag is terribly underused [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Create your news page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <fieldset> <legend>Checked components will show in the page</legend> <form method="POST" action="http://*********.php"> <label for='header' class='Header'>Header</label> … | |
Re: [QUOTE=wilch;952772][code]AND Ships.Dest_State IN ('LA') ORDER BY 'PU_Date ASC'[/code] Try removing the ASC from the quotes ![/QUOTE] good catch, stared at it and didnt see | |
Re: depends on the complexity of the data, and whether you expect to be able to manipulate it online If the importand information is a static table of information its a piece of cake have the script that creates the report output it to a .csv file, with the correct name … | |
Re: [code=php]<div class="content"> <table width="600"> <?php $counter = 0; // initialize counter outside loop do { echo '<tr'; if ($counter++ % 2) {echo 'class="hilite"';} echo '><td width="162"><img src="'.$row_rsAllListings['element_16'].'"></td>'; echo '<td width="426"><h2><a href="\inventory.php?id="'.$id.'">'.$row_rsAllListings['element_1_1']; echo '</a> | '.$row_rsAllListings['element_2'].'<br />'; echo $row_rsAllListings['element_3'].'</h2><br />'; echo $row_rsAllListings['element_4'].'<br />'; echo $row_rsAllListings['element_5'].'Beds / '.$row_rsAllListings['element_6']; echo $row_rsAllListings['element_7'].'Baths / '.$row_rsAllListings['element_8'].'sf … | |
Re: i'm using [url=http://coppermine-gallery.net/]coppermine photo gallery[/url] | |
Re: most server language have a mail function php asp perl without coding your own you could google cgi mail script,,php mail script,,asp mail script,, Big nose bird [url]http://bignosebird.com/cgi.shtml[/url] has a cgi script, auto reply, address verification, required fields, redirect on success, etc etc all bells and whistles very configurable from … | |
Re: the <table> is redundant only <ul> is required | |
Re: the mobile version, of my site is at the subdomain m.mysite.com this codescrap first in www mysite.com/index.php redirects [code=php]<?php $mobile = "http://m.mysite.com/"; if(preg_match('/Windows CE/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Blackberry/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Palm/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/SymbianOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Opera Mini/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Nokia/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Samsung/i',$_SERVER['HTTP_USER_AGENT'])) { … | |
Re: [url=http://javascript.internet.com/miscellaneous/smarttables.html]javascript.internet.com/miscellaneous/smarttables.html[/url] | |
Re: [code=php]if ($checkbox) { $file = 'downloads/Tutorial1.wmv.zip'; // Set headers header("Cache-Control: public ;"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=Tutorial1.wmv.zip"); header("Content-Type: application/zip"); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($file) ."; "); [/code] maybe, going to think | |
Re: [url]http://msdn.microsoft.com/en-us/library/ms131275.aspx[/url] math.round() | |
Re: actually your output is [icode]<img src=../images/meeting.jpgalt=Meeting of CDM coordinators/> [/icode] html requires quotes php requires quotes together requires 2 sets quotes (&escapes) put space in the code where you want space to be, space inside literal text is output, [icode] echo "<img src=\"".$row['photosrc']."\" alt=\"".$row['altText']."\"/>"; [/icode] outputs <img src="myjpg.jpg" alt="myJpeg" /> … |
The End.