2,295 Posted Topics

Member Avatar for hiharshal

IE6 .png support is problematic [url]http://support.microsoft.com/kb/294714[/url] png came after IE6 development

Member Avatar for almostbob
0
52
Member Avatar for mrcb

[url]http://www.php.net/mysql_num_rows[/url] mysql_num_rows() Retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by a INSERT, UPDATE, REPLACE or DELETE query, use mysql_affected_rows(). just the wrong mysql function

Member Avatar for almostbob
0
147
Member Avatar for dnmoore
Member Avatar for janardhana
0
117
Member Avatar for bryanhiehle

splash page [code=html]<body onload='window.open("urltoopenForums");window.location="urltoopenMainpage";' '>[/code] splash page with timeout [code=html]<body onload='setTimeout("window.open(\"urltoopenForums\");window.location=\"urltoopenMainpage\";",5000);' >[/code] splash page button [code=html]<input type='button' onclick='window.open("urltoopenForums");window.location="urltoopenMainpage";' value='click'>[/code]

Member Avatar for almostbob
0
73
Member Avatar for ayesha789

I dont think you need to query a date 3 months ago, you need to find dates three months from now strtotime() function bogus brain dead almost code [code]$dateone=strtotime(now +3 month); $datetwo=strtotime(now +4 month); $result=mysql_query('select * from table where expiry > %s and expiry < %s, $dateone $datetwo'); [/code]as a …

Member Avatar for ayesha789
0
2K
Member Avatar for MArun25039

After you have ardav's recommended look at how "they" do [i]almost what I want[/i] for keys and hints to write one that does [i]Exactly What I Want[/i] "they"::: are dozens- hundreds of form handling scripts for download at various php script repository sites, never exactly what you want, but they …

Member Avatar for almostbob
0
107
Member Avatar for millsy007

It is possible, check the FAQ of the host, It depends on whether the host permits it, more than is it possible, there may be a fee (everything has a fee) My host ( in .ca not .uk ) allows unlimited domain names in one host, as long as the …

Member Avatar for newviewit.com
0
85
Member Avatar for nigelsponge

[code=php]<?php $dropdown_data = explode(",", $row_rsAppare['Item_Dark_Colors']); echo '<select name="DarkColor" id ="DarkColor>'; echo '<option selected="selected" value="">Choose Color</option>'; foreach($dropdown_data as $value) { echo '<option value="'.$value.'">'.$value.'</option>'; } echo '</select>'; ?>[/code]

Member Avatar for nigelsponge
0
116
Member Avatar for severman

easy fix, dont use flash there is nothing in that flash menu that can't be done smaller faster simpler in css

Member Avatar for rajarajan2017
0
162
Member Avatar for krisfr

using DevPHP on home and thumbdrive, just because the same software runs on home and on a thumbdrive have a wamp installation, to crash proof the software after the idea is (almost) working, to overload the database, code injection some code from script sites original claendar classes and the Google …

Member Avatar for almostbob
0
146
Member Avatar for surindersharma

translated files to a sytematic naiming system, for static files I used index(2letterstandardlanguagecode).html something like indexes (spanish) idexfr (french) indexde (german) [code]<a href='indexfr.html' title='La traduction est automatique, confirment svp les details essentiels dans la version Anglaise originale'>en Fran&ccedil;ais</a> <a href='indexes.html' title='La traducción es automática, confirma por favor los detalles esenciales …

Member Avatar for almostbob
0
137
Member Avatar for jeffherron

What they said ^up there^ [url]http://validator.w3.org/check?uri=http%3A%2F%2Fminorityrecruitonline.com%2Fcollege%2Fdefault.aspx&charset=%28detect+automatically%29&doctype=Inline&group=0[/url] [url]http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fminorityrecruitonline.com%2Fcollege%2Fdefault.aspx&profile=css21&usermedium=all&warning=1&lang=en[/url] xhtml is particular [icode]<element1><element2></element2></element1>[/icode] works [icode]<element1><element2></element1></element2>[/icode] fails Fix your code and the display errors will likely vanish and redesign your page, its 619,569bytes and takes way too long to download, 8 seconds is all you get, 92KB of javascript ? 44 images 377KB …

Member Avatar for prateeksha
0
330
Member Avatar for Stefano Mtangoo

Dont format the date time in the database text formatted dates are for humans to read, sql is not human does not need any of that and it makes the processing slower sql Date, php date, unix timestamp, are all a single 10byte numeric that stores complete date and time …

Member Avatar for Stefano Mtangoo
0
216
Member Avatar for codedhands

[url]http://www.google.com/technology/pigeonrank.html[/url] just for fun, Googles April 1 approach

Member Avatar for almostbob
0
202
Member Avatar for adino2

[icode]<img src="images/bg.jpg" name="mainimage" width="419" height="282">[/icode] Should be [code=html]<img src="images/bg.jpg" id="mainimage" width="419" height="282">[/code] and as previously written by mathewmaxwell [code=javascript]function changeImage(filename) { document.getElementById("mainimage").src=filename; } [/code] [icode]<element name= [/icode] . is not formally deprecated, it just does not work

Member Avatar for matthewmaxwell
0
143
Member Avatar for dottomm

without even a database, used this code when analysing small sites stats.php[code=php]<?php //stats.php // Get the user stats. $getdate = date( 'd-m-Y, H:i:s' );// Get the date time, trhis is a human readable (me) so did not use timestamp. $user_ip = $_SERVER['REMOTE_ADDR'];// Get the users IP. $user_browser = $_SERVER['HTTP_USER_AGENT']; // …

Member Avatar for dottomm
0
185
Member Avatar for Stefano Mtangoo

[code=php]<?php //$_SESSION["name"] = "Test Admin"; $content = $_POST["content"]; //prepare data //array should have description , heading , contents, creator //$array_values function name insertdata $values['description'] = $_POST["content"]; $values['heading'] = $_POST["heading"]; $values['contents'] = $_POST["contents"]; //this will include currently loggen in user $values['creator'] = "Test Admin" ;//$_SESSION["name"]; //database call require("/includes/inc.database.php"); $db = new …

Member Avatar for almostbob
0
165
Member Avatar for carlcarman

The alert box stops subsequent processing comment out the alert box as it is in the prior script and it will work or place the alert box after the function and it will work

Member Avatar for carlcarman
0
89
Member Avatar for amritsharma

wamp Windows Apache Mysql Php [url]http://www.wampserver.com/en/[/url] everything just works or a phpIDE - devphp [url]http://devphp.sourceforge.net/[/url] there are many other, probably even better, IDE I use this one it has a very small footprint

Member Avatar for almostbob
0
102
Member Avatar for rcdeck

[QUOTE=SAMAEL;989000]JavaScript hit counter. HEADER SCRIPT [CODE] <SCRIPT LANGUAGE="JavaScript"> [/CODE][/QUOTE] corrected javascript[code=html]<script type='text/javascript'>[/code] asp server counter[code=asp]<% on error resume next ' Create server object set fso = createobject("scripting.filesystemobject") ' Target text file to opened set act = fso.opentextfile(server.mappath("asp_count.txt")) ' Read the value of the text document ' If the text document …

Member Avatar for almostbob
0
1K
Member Avatar for HFK11

just stating that $connection is global won't help much $connection (see [url=http://ca2.php.net/function.mysql-connect]php.net mysql_connect[/url]) is ususally defined earlier than line 33 but after the global, something like[code=php]$connection="mysql_connect('localhost', 'admin', '1admin') or die(mysql_error())";// host account password[/code]which may be included in a '[I]connect.php[/I]' script if $connection is also accesssed elsewhere, from the look of …

Member Avatar for Fest3er
0
195
Member Avatar for j_limboo

I think I understand the target attribute of a link should do it consider a frameset with left and right panes the left pane includes the menu the right frame is the display page index html[code=html]dtd <html> <head> <frameset cols='200px,8' > <frame src='menu.html' name='menu'> <frame src='display.html' name='display'> </framest>[/code]menu.html[code=html]dtd <html> <head> …

Member Avatar for j_limboo
0
109
Member Avatar for Terry56

something like [code=javascript]if ( confirm('Please enable java to experience this enhanced page')) { window.open('http://www.java.com/en/download/','_blank'); }[/code]

Member Avatar for almostbob
0
284
Member Avatar for filch

Ajax , I dont know how it works at all, reading this forum to get info on things that work and dont work before I try any ajax in php I do something like[code=php]<input type='text' id='something' value='<?php if(isset($_POST['something'])) {echo $_POST['something']; } ?>'>[/code]to preserve the fields values, is there something simliar …

Member Avatar for filch
0
132
Member Avatar for austin-khoi

[code=html]<input type="button" name="b1" value="Click" id="b1" onclick="top.location.replace('http://www.google.com');" />[/code]

Member Avatar for Dasjetta
0
816
Member Avatar for cheapterp

without coding the sql this is a thought process only create a table in the database temp_bans. with colums for username logintimestamp failurecount banned on login { if temp_bans.username AND banned AND timestamp+20minutes > timenow die( you are banned until ($timestamp+20minutes)) if login fail { if not temp_bans.username { create …

Member Avatar for arrgh
0
565
Member Avatar for gk0110

parent row <th> child row <td> or class='unsortable' there were instructions included with the download for sorttable.js, if they are lost go to javascript.internet.com to get another copy of the instructions can't be more specific I havent rework tables in a long time

Member Avatar for SAMAEL
0
81
Member Avatar for kwesiaryee

why are you using a text date, Humans dont read the database, the computer does, computers do not need human readable data, they work better without it. date as a timestamp is a numeric 10bytes per record to store a numeric string that represents date and time [icode] select * …

Member Avatar for kwesiaryee
0
137
Member Avatar for SCRAWL

display arrors are usually caused by html code errors xhtml creates a slew of errors tht were not previously errors, and is more strict in coding requirements wrongly coded html puts browsers into quirks mode which is different in most browsers [url=http://validator.w3.org/check?uri=http%3A%2F%2Fscrawlfx.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0] fix the html [/url] and the display errors …

Member Avatar for Troy III
0
115
Member Avatar for wrestler05

would something like this work[code=html]<textarea rows='7' cols='35' style='float:right;' id='bigbox'></textarea> <select id='sel' onchange='document.getElementById("bigbox").innerText=document.getElementById("sel").value'> <option alt='' value='' disabled>Select</option> <option value=' this long text1 this is more text and still more this long text1 this is more text and still more this long text1 this is more text and still more'> short text …

Member Avatar for almostbob
0
389
Member Avatar for Mahsa_C++

doing it yourself is in the too hard basket WAMP (windows apache mysql php) will install it all as a package that works together. [url]http://www.soft-go.com/view/WAMP5_20010.html[/url]

Member Avatar for Mahsa_C++
0
328
Member Avatar for InsaneVr6

[url=http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html]apache mod_rewrite[/url] and a bunch of discussions on the subject and tutorials etc [url=http://www.google.com/search?hl=en&safe=off&ei=qJiuSpuVAYLcNdDj9fIN&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=user+friendly+url+with+mod_rewrite&spell=1]"user friendly urls with mod rewrite"[/url] its not hard as long as the [icode]?bla=blah&otherstuff=somethingelse[/icode] parameter part of the url is structured

Member Avatar for ingeva
0
126
Member Avatar for JerieLsky

php forms can be self processing, its easy to debug one script, try[code=php]<!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"> <!-- @(#) $Id$ --> <head> <title>HTML Template</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> </head> <body> <?php if (isset($_POST["submit"])) { if(!$_POST['name'] || !$_POST['email'] || !$_POST['question'] ) { echo "Required fields …

Member Avatar for ivatanako
0
235
Member Avatar for click here

To reduce being killed as spam, give the mail properly formed headers including To: Subject: [B]From:[/B], and make sure the subject isnt the typical spam "VIAGRA" type of subject per the mail() reference at php.net

Member Avatar for almostbob
0
126
Member Avatar for sim_pack

I think php includes are better as include.inc.php than include.php.inc I can read .inc files over http, files above the root on insecure servers [COLOR="Green"][noparse]http://www.blabla.com/../../thisfileisnotsecure.inc[/noparse][/COLOR] I cant read .php files, only the output, if an include does not have output, is constants or sql_connect, I cant read it

Member Avatar for almostbob
0
323
Member Avatar for tomthecarrot

Well as a tutorial exercise, go to big nose bird [url]http://bignosebird.com/cgi.shtml[/url] and get the all-in-one form processing script, its very well commented and documented within the code, so you can point your form at this form handler and see/learn what it is doing. cgi scripts are text and you can …

Member Avatar for ingeva
0
164
Member Avatar for jespin

sorry Jespin, one wrong detail[Code=php]echo "<img src='.$avatar.' >"; // will fail the concatenation is wrong dquotes are not closed at the dot /* but */ echo "<img src='$avatar' >"; // variable inside dquotes OK echo "<img src='".$avatar."' >"; // variable concatenated into the text OK [/code] assuming user Joe, avatar …

Member Avatar for diafol
0
279
Member Avatar for martyna
Member Avatar for Antun

On login store the userid in a Session, then it is available to php I know sessions exist, DONT know how to implement them so here is a link, which does include session cookies [url]http://www.php.net/manual/en/features.sessions.php[/url]

Member Avatar for Antun
0
100
Member Avatar for dougancil

perl scripts in the /cgi-bin/ folder and just point the action of the form at the perl script [icode]<form id='Globe' action='/cgi-bin/process.cgi' method='post'>[/icode] Not even sure if perl scripts work outside of the cgi-bin folder, ?

Member Avatar for codejoust
0
91
Member Avatar for jrw0267

similarly to the way the $_post data is already accessed ISBN is already defined in the php scrap above, so you can access it[code=php]ISBN (10 digits with no spaces): <input type="text" name="ISBN" size="20" value="<?php if($ISBN) { echo $ISBN; } ?>" />[/code]

Member Avatar for codejoust
0
266
Member Avatar for alyssajones

overly complicated images have src directly accessible[code=html]<a href="#" onclick="document.getElementById('IMAGEIWANTTOCHANGE').src='content/myspace/photo.jpg';return false;"><img src="content/my space/mosaico_imgs.jpg" border="0" style="margin-top:38px;" /></a> <!-- or --> <img onclick="document.getElementById('IMAGEIWANTTOCHANGE').src='content/myspace/photo.jpg';" src="content/my space/mosaico_imgs.jpg" border="0" style="margin-top:38px;" />[/code]changing the inner html of another element seems unneccessary

Member Avatar for almostbob
0
332
Member Avatar for andym67

Agree with Xan's code fix embedding php inside html, it is important to get all the quotes in. only add a usefula(maybe) caveat to the code he provided, a recommendation to change whatever editor used to something that code highlights It becomes easy to see when something is missing if …

Member Avatar for andym67
0
17K
Member Avatar for SKANK!!!!!

[code=html]<style type='text/css'> .l { width:30%; float:left; } .r {width:69%; float:right;} .w { width:100%; } </style> </head><body> <div class='w'> <div class='l'> <img src='small1.jpg' onmouseover="document.getElementById('big.pic').src='large1.jpg" alt='pic' title='title' width='width' height='height' ><!-- properly setup the images this is just a code sample --> <img src='small2.jpg' onmouseover="document.getElementById('big.pic').src='large2.jpg" alt='pic'> <img src='small3.jpg' onmouseover="document.getElementById('big.pic').src='large3.jpg" alt='pic'> </div> <div class='r'><img …

Member Avatar for SKANK!!!!!
0
160
Member Avatar for jakoso
Member Avatar for AdventDeo

[code=html]<a id='addbutton' onmouseover="this.style.cursor='pointer'" onClick="toggle_it('addanother');toggle_it('addbutton');">Add more</a>[/code]give the link an id, and toggle it in the same onclick event

Member Avatar for almostbob
0
122
Member Avatar for Reliable

[code=php]<?php //1. Create a database connection $connection = mysql_connect("localhost", "kingdomc_mtech", "busine$$"); if (!$connection) { die("Database connection failed: " . mysql_error()); } //2. Select a database to use $db_select = mysql_select_db("kingdomc_learning", $connection); if (!$db_select) { die ("Database selection failed: " . mysql_error()); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" …

Member Avatar for almostbob
0
104
Member Avatar for dthatsme33

[code=php]<?php $mobile = "http://mobile.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('/PalmOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/PalmSource/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'])) { header("location: $mobile");} elseif(preg_match('/vodaphone/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/Jphone/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/AvantGo/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} …

Member Avatar for dthatsme33
0
169
Member Avatar for rayarman

dont store a text format date, store a timestamp timestamp can output to any user's preference takes only 10bytes to store date and time, is easier to process for select from - to dates

Member Avatar for almostbob
0
105
Member Avatar for stevenpetersen

[code=css]@media print { img { background:url('./images/copyright.jpg'); } }[/code][code=html]<img style="background:url('./images/realpic.jpg')" src='./images/blank.gif' width='width of realpic' height='height of realpic'> <img style="background:url('./images/anotherpic.jpg')" src='./images/blank.gif' width='width of anotherpic' height='height of anotherpic'>[/code]blank.gif is a 1px transparent .gif image all images have the same src, the background is the real image the print styling is generic, can be …

Member Avatar for codejoust
-1
179

The End.