2,295 Posted Topics
Re: [code=php]function mail_attachment ($from , $to, $subject, $message, $attachment,$direct){ $fileatt_type = "audio/mpeg"; // File Type (also tried "application/octet-stream") $files=$attachment; $email_from = $from; // from email address $email_subject = $subject; // Subject of the email $email_txt = $message; // Email Message $email_to = $to; // to email address $headers = "From: ".$email_from; … | |
Re: [code=javascript]function highlight(word) {document.getElementById (word).bgColor="blue";}[/code]you will also require another javascript and an onmouseout() to reset the background or in short order everything will be blue css is smaller faster and works when javascript is disabled for security reasons [code=css].hl {background:#ffffff; } .hl:hover { background:#0000ff; }[/code] [code=html]<span> this does not highlight on … | |
Re: in ff document id-s usually have to be correctly formed [icode]searchForm.locationSelect.value = value;[/icode] usually should be [icode]document.searchForm.locationSelect.value = notreservedword;[/icode] | |
Re: [QUOTE=Sinha's;1160390]While Layout designing in Photoshop, one should slice images properly. Smaller images should be in gif format and large one in jpeg format. One should maintain the number of slices up to 20. This will help to boost the site loading time.[/QUOTE] utter **expletive deleted** referring to bovine excrement negotiating … | |
Re: 0px is invalid, its just 0 | |
Re: solution: dont put sounds on the web page, there are enough annoying useless crap sites, there is no requirement for any more | |
Re: framesets are outdated, and if you were to look ath the results of whatever code you developed from the BS supplied as a fix on any other browsers or screen resolution, it looks nothing like you expect current best practice for screen layout ueses ems and % sized elements as … | |
Re: javascript searching for the selectindex of the radio buttons would accomplish it, disable the second selection, exact help is easy, more accurate if you post the code you have, for one of the javascript mavens to post an edit to anything written now, would be a guestimate at best this … | |
Re: actually the table data does not require this precision, only the output data does given the table column is returned as [icode]$row['price'][/icode] at line 26 in the original [code=php]$format_number = number_format($row['price'], 2, '.', ''); /* orignal number, 2 dec, dot sepaarated, nothing between thousands */ echo "<td>$".$format_number."</td>";[/code]or[code=php]echo "<td>$".number_format($row['price'], 2, '.', … | |
Re: [url]http://www.sourcecodeonline.com/details/hsv_conversion_utilities.html[/url] | |
Re: the link target href has to be defined by a 'name' attribute in the target page, If you are attempting to hit a particular point on the target page, examine the link on that page and use that as your target, the target page may not be using the title … | |
Re: dom convention refers to id, (in the html scrap below the input has been given an id to make the javascript conventionally valid) name is not a singleton, every option in a radio button set has the same name, but each id can only refer to a single element [code=html]<div … | |
Re: wamp installer for Windows Apache MySql Php a php ide with php interpreter bult in [url]http://www.google.com/search?hl=en&q=php+ide&meta=&rlz=[/url] | |
Re: no there are many, 'copy proof' ideas, none actually work, they may make it more difficult, but not very the image is downloaded to tif to display, the user can copy it at will serve images copyright watermarked and at a screen-quality resolution so that it is not worthwhile to … ![]() | |
Re: Do not meta refresh any part of the site easy, done | |
Re: There are two session_starts, line 1, line 174 fix it there shouldnt really be a session_start in the image generating script, it is supposed to use the session established in the calling file | |
Re: do the counter serverside that javascript does not run on my pc, security does not let it something as simple as [code=php]<dtd><html><head></head><body>bla bla bla <?php $file = "../cgi-bin/count.cnt"; if(is_readable($file)) { $count= file_get_contents( $file ) + 1 ; $fp = fopen($file, "w+"); fputs ($fp, $count); fclose($fp); Print "<span id='count' style='text-align:right;'> you … | |
Re: pet peeve [rant] Try hard to remove the pixels from your css definitions modern monitors have a dot pitch of 0.22mm (.008inch) [and the dot pitch only gets smaller with each generation] 22px in a .22mm dot pitch is a div size one eighth inch tall 80px gives a div … ![]() | |
Re: at least you both put your homework requests in the same thread[INDENT]If the page is being generated, to be redirected immediately, why not just put in a redirect in the page <head>, and populate the redirect instead of, or as well as, a link, from whatever (not shown) script is … | |
Re: Its ugly when it doesnt work, Anything that works is beautiful Ardav's code works => not ugly | |
Re: Post the code that causes the problem, not a url to the site It is not anyones job to go to your site copy everything, find the error, fix it and repost it, you will get more assistance if all the person has to do is look at the post … ![]() | |
Re: [code=css]#content { position:absolute; top:auto; left:15px; right:130px; bottom:15px; background-color:#00CC00; font-family: Arial, Helvetica, Tahoma, sans-serif; }[/code] | |
Re: there are a number of premade scripts on hotscripts, phpscripts and most other script source repositories that will accomplish what you want, some that require sql databases, some very simple that store data in a flat file, or send email thjose scripts generally come with full install instructions to prevent … | |
Re: starting point[code=html]<img width='100' height='100' src='blank.jpg' id='mainpic' style='float:right;'> <a href='somelink.html' onmouseover='document.getElementById("mainpic").src="somelink.jpg";' onmouseout='document.getElementById("mainpic").src="blank.jpg";'>Somelink</a><br> <a href='otherlink.html' onmouseover='document.getElementById("mainpic").src="otherlink.jpg";' onmouseout='document.getElementById("mainpic").src="blank.jpg";'>otherlink</a><br> bla bla bla bla bla bla[/code] it is easy to see the links are greatly similar, so they can populate with data from the database, if the db is the source of the images and … | |
Re: Post the code, everybody here cares enough to help, nobody cares enough to go search out the code copy it edit it and then paste it back for your edification | |
Re: Try, go to MicroSoft and copy and paste the code, read the tutorials, and follow the explanations of what this code snippet, cut directly from MS does [url]http://www.microsoft.com/windows/windowsmedia/howto/articles/adsolutions2.aspx[/url] is a place to begin | |
Re: window.open will not work in the majority of users browser, they will not turn off the popup blocker for your potentially malicious site use a layer in the existing page to give the appearance of a new window without being blocked | |
Re: Any book is out of date, before it is even published W3schools::: the w3 consortium is responsible for web standards, the code standards of html xhtml css or you could be another **expletive deleted** person producing code that [LIST][*]fails in half the browsers [*]takes forever to display [*]looks like crap … | |
Re: You need the extension in the table or file handling wont work, you dont need it displayed in the download link [code=php]<?php foreach($files_array as $key=>$val) { echo '<tr><td><a href="dlc_download.php?file='.urlencode($val).'">'.substr($val, 0, strlen($val -4)).'</a></td> <td><span class="download-count">'.(int)$file_downloads[$val].'</span></td>; </tr>'; } ?>[/code] | |
Re: use the rss feed of the stock page | |
Re: [code=html]<img id='bigimage' src='image3.jpg' width=x height=y> <a onclick="document.getElementById('bigimage').src='image1.jpg';">Image1</a> <a onclick="document.getElementById('bigimage').src='image2.jpg';">Image2</a>[/code] | |
Re: When using csv files you should be using CSV operators [url=http://www.php.net/manual/en/function.fgetcsv.php]fgetcsv()[/url] see also [url=http://www.php.net/manual/en/function.fputcsv.php]fputcsv()[/url] dont use a fork to serve soup | |
Re: I followed this google car around for half a day they fuzzed my face out of every pic I am very upset My car is in google maps a hell of a lot | |
Re: Show the html, and css, nobody is going to waste time view source on your pages | |
Re: no quotes on table names column names [code=php]mysql_query("INSERT INTO Persons (FirstName, LastName, Age) VALUES ('Peter', 'Griffin', '35')"); // so $sql="INSERT INTO letohost_user.player (USER_ID, USERNAME, PASSWORD, EMAIL, POSITION, ACTIVE, MEMBER) VALUES (NULL, {$_POST['register_username']}, {md5($_POST['register_password']}), {$_POST['register_email']}, '0', '0', '0');)";[/code][url]http://www.w3schools.com/php/php_mysql_insert.asp[/url] ![]() | |
Re: most people would look at at the html reference for input type=radio and the parameters thereto [url]http://www/w3schools.com[/url] We are not studying your course and gain no benefit from doing your homework | |
Re: [code=php]$SWEAR = array('a' => '@', 's' => '$');[/code] | |
Re: on login update lastlogin with sql now() the timestamp of now [code=mysql]delete low_priority from table where last_login < (now() - 2592000 ) order by last_login limit 100[/code]2592000seconds=30 days limit 100 to make sure no timeout and because a limit is usefull where there may be 10000000 members low priority to … | |
Re: most would do that in php/asp so as not to transfer as much information and keep the page the user sees (eg view source) simpler[code=php]<?php $today=getdate(); if($today['hours'] > 17) { $display='evening';} elseif($today['hours'] > 11) { $display='afternoon';} else $display = "morning"; echo 'Good '.$display;?>[/code] view source [icode]Good morning[/icode] [code=javascript]datetoday = new … | |
Re: post the code, including the css that you are using we dont do homework, nobody is going to look it up, fix it, and post it for you but we do show the bugs in what you have tried | |
Re: what did you try how did you try post the code you are using so nobody, with a possible solution, has to do anything twice | |
Re: MIME html email eg[code=php]<?php $email = $_REQUEST['email']; $headers .= "Reply-To: me@myemailaddress.co.uk\r\n"; $headers .= "Return-Path: me@myemailaddress.co.uk\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = "<html><head><style='text/css'>.red {color:red;}</style></head><body>"; $message .= "<h1> This is a test </h1>"; $message .= "Thank you for applying for an INSTANT DISCOUNT CODE. \n\n <span class='red'> … | |
Re: line 9 in the code of the second post should look something like [code=asp]Response.Write ">" & location & "</option>"[/code] and there should be a [icode]</select>[/icode] after the loop | |
Re: It is as saiprem wrote, the semantics of php do not consider, as people do in spoken language, that post get request are 'similar enough' to be interchangeable $_post does not show the data sent in the query string, and is harder to fake if the data being edited is … | |
Re: all of the questions you have asked are answered in the MySQL user guide sections in the appropriate server side language for the site host, at mysql reference sections [url]http://dev.mysql.com/doc/[/url] for the version to be used from theses sites you will get absolutely accurate answers, code samples and instructions cmon … | |
Re: production code should not be indented, it causes problems whitespace in your code html interprets whitespace as a space multiple tabs and spaces before <img are a space, that space shows between the images [code=html]<img src="http://goyami.corante.com/archives/images/july4th05.gif" /><img src="http://www.logoogle.com/images/logooward/july4th04.gif" />[/code]no space I assume the closing > in line 31 is a … | |
Re: most table updates can be done with mysql now, that stamps the current timestamp to the field and output from the timestamp any which way you like with regular date functions google MYSQL NOW to find the correct code for your app do not use any text date time function, … | |
Re: Nobody notices if it works they only notice when it doesnt, and then the coffee steaming out of the guts of it is never their coffee, even when the empth cup is in their hand Nimby and the SEP effect Not in my back yard and Somebody Else's Problem | |
Re: It can be done with any server side language but there isnt any point the favicon is supposed to identify the site, really messes up the purpose if you change it, because returning visitors will also get a different favicon |
The End.