2,295 Posted Topics
Re: I only have one image, twice the size of the button, with two states/pictures in the image, and css position it up for the up and down for the down. Never learned to erase either {:( | |
Re: Mysql [code=php]$query_Recordset1 = "SELECT admin_user, `update`, status, opened, `group` FROM phpdesk_tickets WHERE update between $date1 and $date2 ORDER BY `update` ASC";[/code] and the date1 date2 fields are input from a html form, or calculated as date() -14 for two wekks to change the sort order on the resulting table, can … | |
Re: [code=php]<?php if isset() //validate data entered howver you require { { define ('MYSQL_SERVER', 'MYSQLHOST'); define ('MYSQL_PASSWORD', 'MYSQLPASS' ); define ('MYSQL_USERNAME', 'MYSQLUSER'); define ('MYSQL_DB', 'MYSQLDB'); if (!(@mysql_pconnect(MYSQL_SERVER, MYSQL_USERNAME, MYSQL_PASSWORD) and @mysql_select_db(MYSQL_DB))) die(sprintf("Cannot connect to database, error: %s", mysql_error())); } if (!mysql_query(sprintf("insert into MYSQLDB_table (data1, data2, data3, data4, data5, ) values ('%s', … | |
Re: Is this the type of effect you want to achieve (screenshot attached below) There are very good tutorials in the Google api [url]http://code.google.com/apis/maps/documentation/[/url] If I can follow, anybody can. the api code you get is site specific it will not work on your development desktop the script and basic sql … | |
Re: [QUOTE=nishant52;784001]I have some important PHP scripts on my server. My problem is that with the help of a download manager, the user can download those scripts and thus can view the entire source code. For e.g:- If my php script's URL is [url]www.mydomain.com/index.php[/url] Then the user is able to download … | |
Re: [icode]<button name="name" value="submit" type="submit"><img src="image" alt="alt"></button> [/icode]creates a form submit that does not care about its own xy loaction | |
Re: show the code that you want examined, the site only shows output | |
Re: Serverside php asp perl using the same techniques used to generate captcha scripts in php [code=php] header ("Content-type: image/png"); $im = @imagecreatetruecolor(500, 300) or die("Cannot Initialize new GD image stream"); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 3, 5, 5, "A Simple Text String", $text_color); imagestring($im, 3, 5, 45, "A … | |
Re: as one page it will be a time consuming download, users click away small pages load fast, preloading the next page to give speed can be accomplished by a script in the foot of the page reuse of icons and scripts between pages shortens load times again. | |
Re: a dirty kludge to make files appear to load faster than the connection speed allows javascript in the end of the page to load known required files before the link were clicked, but after the page is displayed ignore image, its just you have to load the file for "something" … | |
Re: dont get a rewrite rule for every page get a PAGE rule for the php/mysql form that generates a set of page names that match each other and the the rewrite tule all the generated page names should match the existing rule | |
Re: This is a difficult question the value/effect of layers depend entirely on what you want of your web page, and what you have to display so you decide the best way the [url=http://www.w3schools.com/Css/pr_pos_z-index.asp]w3 z-index tutorial[/url] is a start layers work only of fixed objects its one way of fitting more … | |
Re: And validate the form on submit, and if any field fails validation you send the form back for correction/resubmit | |
Re: [code=html]<table rules='all' border='0'> <tr><td>X<td> <td> <tr><td> <td>X<td> <tr><td>O<td>O<td>X </table>[/code] theres no need for anything fancy, table has a rules property that does what you ask | |
Re: this is a short script file in php that works file:: script.js.php [code=php]<?php header ('content-type: text/javascript'); ob_start("ob_gzhandler"); ?> function newuntill(date) { var newimg = "./images/new.gif"; var expdate = new Date(date); var curdate = new Date(); if (expdate.getTime() > curdate.getTime()) { document.write('<img align="left" src=' + newimg + '>'); } else { … | |
Re: [code=html]<img src='thumb001.jpg' onmouseover='bigimage.src="001.jpg";dsl.innerHtml="watercolor";'> <img src='thumb002.jpg' onmouseover='bigimage.src="002.jpg";dsl.innerHtml="oil on canvas";'> <img src='thumb003.jpg' onmouseover='bigimage.src="003.jpg";dsl.innerHtml="lithograph";'> <div style="your chosen style:location"><img src='blank.jpg' id="bigimage"><span id='dsl'> </span></div></body> <!--right down the bottom of the page after everything is displayed--> <script language="javascript" type="text/javascript"> //<![CDATA[ <!-- image1 = new Image(); image1.src = "001.jpg"; image2 = new Image(); image2.src = "002.jpg"; image3 = … | |
Re: many advertising sites have had malware issues before If you have embedded advertising scripts those sites that host the script could be the only source. If the google email were correct, and not a phishing run, the detail will be available at the google webmaster tools page, instructions on site … | |
Re: for a layout like yours add margin-bottom to the leftcol rightcol css, large enough to accomodate the height of the footer, the page will always scroll down to display the last line of text, in the largest column, above the footer | |
Re: examine the data validate it to your requirements if a file or url check whether it exists if a file upload to temporary space on the server if a file check whether it is an appropriate file type, not just an appropriate filename if a url ensure that it is … | |
Re: Separate the email and database processing at the moment the email is inside the 'for each' loop so a mail is generated for each table entry generate email header 'for each' processing to update database and generate each new kidname data generate email footer and send email 1 kid 1 … | |
Re: IE uses the DOM document object model so getelementbyid() only works in IE mozilla opera safari use a diferent model so we can [code=javascript] (document.getElementById) ? dom = true : dom = false; //check for IE dom model (once) if (dom) { document.getElementById('damagediv').innerHTML=req.responseText; } //IE else {document.getElementById('damagediv').value=req.responseText;} } //mozilla opera … | |
Re: Its whatever the author wrote it to be the name tells nothing post the code or a zip of the file so that the intent can be determined | |
Re: obfuscation implies protection, modifying may stop the script, with levels of 'stop' available to the author. It is easy to check elsewhere for a particular string of Hex, without bothering to write the php, code can, if not exist substring(mycopyright) in footer.html { mysql drop table all die copyright has … | |
Re: Dont format the date until you pull the data out of the database its much quicker to update the table or perform compares when later reporting if the data is timestamp and [code=php] <?php $timestamp = time(); $timeout = $timestamp - 1500; //Insert User $insert = mysql_query("INSERT INTO TG_whos_online (timestamp, … | |
Re: [code=html] <html> <head> <style> .year { width:25%; margin:3%; padding:3%; float:left; } </style> <script language="javascript" type="text/javascript"> <!-- (document.getElementById) ? dom = true : dom = false; function hideIt(layer) { if (dom) {document.getElementById(layer).style.visibility='hidden';} //ie if (document.layers) {document.layers[layer].visibility='hide';} } //mozilla function showIt(layer) { if (dom) {document.getElementById(layer).style.visibility='visible';} //ie if (document.layers) {document.layers[layer].visibility='show';} } //mozilla onResize="window.location.href … | |
Re: There are ajax scripts that dynamically create form rows for 'another item' and populate the array as the form is created then the array is posted and price fields populated from the database something like [url]http://www.agoracart.com/[/url] freeware [url]http://www.myezshop.com/[/url] payware and there are tutorials on creating the script in php to … | |
Re: a template <html> <head> <style> .left {width:50% text-align:right; float:left;} .right{width:50% text-align:left; float:right;} </style> </head> </body> <div class=left><?php include('left.php'); ?></div> <div class=right><?php include('right.php'); ?></div> </body> </html> a trivial example, yet without any idea of 'my requirement' its difficult the template above is the <style></style> in the head typically the layout is … | |
Re: mysql_query(sprintf("insert into article_fields (new_text, fields_type) values ('%s', '%s');", $new_text, $field_type)) | |
Re: [code=html]<style> .outer {width:99%; margin:1px;} .left {width;40%; float:left; text-align:right; margin-right:10px;} </style> <div class='outer'> <div class='left'>left aligned question 1</div> <input answer 1> </div> <div class='outer'> <div class='left'>left aligned question 2</div> <input answer 2> </div> <div class='outer'> <div class='left'>left aligned question 3</div> <input answer 4> </div> <div class='outer'> <div class='left'>left aligned question 5</div> … | |
Re: I have a frame breakout in succcess.page.php [code=javascript] <script type='text/javascript' language='javascript'> if (top.location != location) { top.location.href = document.location.href ; } </script> [/code] or [code=javascript] <script type='text/javascript' language='javascript'> if (parent.frames.length > 0) { parent.location.href = self.document.location } </script> [/code] degrades badly if javascript disabled | |
Re: [QUOTE=CasTex;776208]I am getting error at the second line of the code, what is the problem :-/ [code=php]$content = '<' . '?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?' . '>'; $content .= "<entry xmlns='http://purl.org/atom/ns#'>"; $content .= "<title mode='escaped' type='text/plain'>".$title."</title>"; $content .= "<issued>".$issued."</issued>" $content .= "<generator url='http://www.yoursitesurlhere.com'>client's name</generator>"; $content .= "<content type='application/xhtml+xml'>"; $content .= "<div … | |
Re: there is always something more, to do, not always practical, but always something a thumb drive with a bunch of portable apps on it, for recovery and antivirus, can clean the pc when I do something really stupid (1-3/month) the infection in the host pc cant block the scanner or … | |
| |
Re: as Guest I get no buttons perhaps the desktop lost your cookie | |
Re: [code=php] //write text.php // Get the user details. $getdate = date( 'd-m-Y, H:i:s' );// Get the date. $user_ip = $_SERVER['REMOTE_ADDR'];// Get the users IP.just in case $referer = getenv("HTTP_REFERER");// Get the refering page. just in case // Look for the text file and open it for writting. $file = "./logfiles/logfile.csv";// … | |
Re: [code=xml]<?xml version="1.0" ?> [/code] xml declaration so the php should look something like [code=php]<?php echo "<?xml version=\"1.0\" ?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml> <card> <?php /* declare script type short tags may be off other script languages may be available saves debugging later*/ … | |
Re: Dont use popup that can be blocked use a layer and have the javascript event change the layer's viisiblity something like [code=html] <html> <head> <style> .top { background-color: #000070; color: #ffffff; text-align: right; } .bottom { background-color: #efefef; padding: 15px; } </style> <script language="javascript" type="text/javascript"> <!-- (document.getElementById) ? dom = … | |
Re: php run serverside, it has to refresh the page to display differently, Javascript runs clientside php makes no changes once the page is sent, AJAX Javascript | |
Re: [QUOTE=Aamit;773511] [icode] if(!document.layers)[/icode] [/QUOTE]these fragments in the script above check for the browser to NOT be firefox IF Not DOcument.layers continue = do nothing if document.layers IE and mozilla based browsers code sniippets below demonstrate different aproaches to show or hide a layer in IE and firefox [code] (document.getElementById) ? … | |
Re: [code=php]ob_start("ob_gzhandler"); $p = split('/', $_SERVER['SCRIPT_FILENAME']); $script_name = $p[count($p)-1]; $path = str_replace($script_name, '', $_SERVER['SCRIPT_FILENAME']); $dir_handle = @opendir($path) or die("Unable to open $path"); Function get_Extension($m_FileName){ $path_parts = pathinfo($m_FileName); if ($path_parts["extension"]) { $m_Extension = strtolower($path_parts["extension"]); return(strtoupper($m_Extension)); } else { return "unknown"; } } function check_image($filename){ $temp=strtoupper(get_Extension($filename)); if(($temp=="NEWS")||($temp=="PHP")) return (true); else return (false); } … | |
Re: pixel measurements, seriously suck, table layout -suck, tables delay page display until everything is downloaded, CSS layout, ems %ages I have 2040 x 1536px resolution, 10px is invisible, the entire page does not occupy 10% of the screen all sizes should be relative, in em or % so that the … | |
Re: [code=php]echo $TEXT_MAIN;[/code] | |
Re: store dates as unix time stamp, then you can have any display you like, or have user option to display the date in their chosen format from the php date functions, and date manipulation is a simple add/subtract a small portion of the potential market uses mm dd yyy a … | |
Re: [url]http://www.pdflib.com/products/pdflib-family/[/url] |
The End.