almostbob 866 Retired: passive income ROCKS

Changed domain name makes it really simple, you can throw away everything, and use a single redirect in the old domain name for a few months to the new menuing system
Your OP said nothing about new domain, sorry all my prior stuff is unneeded

just ask them to keep the old domain name for long enough for google & other se to update links, expired domains are a big business among spammers etc
rewrite code to new domain name

RewriteCond %{REQUEST_URI} ^$
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^$ http://www.newdomain.com/[L,R=301]
almostbob 866 Retired: passive income ROCKS

This has little to do with your NEW site, and much to do with preservation of the old site bookmarks
IF a significant number of customers, google, other search engines, backlinks, paid advertising, link to those old file names, the customer will be substantially annoyed if all their existing links fail, with loss of sales, and SER reduction
they will blame you
building from scratch and erasing all current pages is often not an option,
without implementing a system of remapping.
this is what the prior person did with that single .htaccess entry when the client moved from static pages to php
given the above, a 'did you mean new file chosen from a php function of likely candidates please update your bookmarks' is often sufficient,
as is a .htaccess entry that redirects all old files to the new menu system with 301 moved

but is something you should discuss with the client before implementing any alterationwhich also makes it appear you have a tight grasp on the concepts behind seoto cover your behind from later recriminations
and something you should not ignore

almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

It is possible,
its easy
just not going to do it for someone who made no attempt on their own

almostbob 866 Retired: passive income ROCKS

no, not going to happen

almostbob 866 Retired: passive income ROCKS

1, only android,
2, no


edit:sorry griffin already answered

almostbob 866 Retired: passive income ROCKS

rationalise the code so images have the same name as the state value options,
saomething like

<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>

width and height specified for small image, a html requirement for code validation

selected makes the initial value match the initial state of the image link

consider adding a javascript between </body> and </html> to postload the alternate images ( with 50 possibilities delay to load the small image from the server 'onclick' may be catastrophic in user retention, a post load acts unseen to the user, and appears to display images instantly

</body><script type="text/javascript">
//<![CDATA[
<!-- 
image2 = new Image();
image2.src = "images/small/image_2.jpg";
// etc
image50 = new image();
image50.src = "images/small/image_50.jpg";
//-->
//]]></script>
</html>

the javascript does not do anything with the images, just places them in the browser cache ready for any onclick event

if wyoming isnt 50, sorry, I'm Australian living in Canada, apart from airports I havent been in the US in 15 years, I spent 6 months at a USAF base then, didnt get out much, dont know state names in the us

almostbob 866 Retired: passive income ROCKS

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 answers are right, but they wont work

we can't see what is breaking apart, and tables... 1980?
if possible post the full code of the page at least down to the broken table

part of the problems may be caused by using a block level element to contain the logo image (without a 'display:inline;') this is completely unneccessary, styles can be applied directly to the image, example below.
cant guarantee this example as not seen the full code of the page

.nani-logo { position:absolute; right:0; top:28px; border:0; z-index:2;}
<img class='nani-logo' src='images/headdress_title_red.png' width='234' height='299' alt='required alt text' />

absolute means the logo will stick to the top like the menu bar at the top of this page, fixed can make a logo that stays in place while the page content moves underneath it (or negative z-index moves over the top of it) like the menu bar at the bottom of this page

almostbob 866 Retired: passive income ROCKS

I retired the first time when I was 42, but I couldn't imagine myself doing nothing for the rest of my life. Living in airport lounges for over 10 years would be sooooo boring.

Airport lounges are awful, except Dulles
I plan to get routed through Washington as often as possible, perhaps its a sop to the travelling pollies
& one of the few places where there are connection to Halifax
I am enjoying everything that we do at either end of the flights,

Its nice to do anything I want to

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

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 freeware sites, I use the one at auditmypc.com
a human readable 'sitemap' is just the site developer stating that their navigation system does not work

IF the provider has added a sitemap it is possible that the link table at the bottom is only a human readable extension of the xml machine sitemap
search the site for a 'sitemap.xml' file
if there is not one, create and install one, ensure the navigation system is logical, and remove the links added by the provider
The google webmaster tools pages give relevant instruction on sitemap provenance, suggest to your friend, that they sign up to google webmaster tools, read and follow all the instructions, >>--humor-->and get the benefit of google's wisdom about SEbots

If using flash, try to enable textreader extensions in flash (exactly how depends on which software is being used to make the flash)
text reader extensions are a disability aid, that embeds descriptive text in the flash files, like closed captioning. SE Bots can index that text, removing much of the zero ranking that flash sites receive as un-indexable

almostbob 866 Retired: passive income ROCKS

significance, none,

This is one thing I am doing in my retirement, as long as airport lounges have wifi, my houses all have wifi
answering online the same questions

sig below says 'retired'

thread title, what are you going to do when you retire
I am retired this is one thing I do, in my retirement

travel
drink stella, ( with antihistamine [wasp sting] a mistake I wont make again every thing is so green and blurry)
kiss my ladylove
cut the grass with the tractor
visit the road of houses she bought
she bought another house today (= 40)
planning next vacation, sep1 to apr30
eat pie and icecream
deposited this weeks cheques, love residual incomes
walk the dog
meet new residents

retirement

almostbob 866 Retired: passive income ROCKS

I didnt write that it was the same site,
I wrote it was the same questions

almostbob 866 Retired: passive income ROCKS

Search engines regularly change the criteria for links,
social media is abused often, social media may get zeroed out of link results

almostbob 866 Retired: passive income ROCKS

You come here and answer the same questions you answered 10 years ago, just different people

almostbob 866 Retired: passive income ROCKS

<td><input type="text" name="uname" value="<?php if(!$_post){echo $records['name'];} ?>"></td>

almostbob 866 Retired: passive income ROCKS
<?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 is added to every message" name='message1'>
<input type='hidden' value='myname' name='to_name'>
<input type='hidden' value='myaddress' name='to_email'>
<div style='width:100%; float:left;'>
<div style='width:39%; text-align: right; float:left;'>From (Your name) :</div>
<div style='width:59%; text-align: left; float:right;'><input type='text' size='40' value='<?php if isset($_post['from_name']echo $_post['from_name']; ?>' name='from_name'>
</div></div>
<div style='width:100%; float:left;'>
<div class='required' style='width:39%; text-align: right; float:left;'>From (Your email) :
</div>
<div class='required' style='width:59%; text-align: left; float:right;'><input class='infor' type='text' size='40' value='<?php if isset($_post['from_email']echo $_post['from_email']; ?>' name='from_email'>
</div></div>
<div style='width:100%; float:left;'>
<div style='width:39%; text-align: right; float:left;'>Message :
</div>
<div style='width:59%; text-align: left; float:right;'><textarea name='message' cols='45' rows='6'><?php if isset($_post['message']echo $_post['message']; ?></textarea>
</div>
</div>
</div>
<center>
<button TYPE="submit" NAME="subm" VALUE="submit" onclick="return(confirm('Are all fields complete?'));" >Submit</button>
<button name="reset" TYPE="reset" VALUE="Reset" >Reset</button>
</center>
</form>
<?php If ($_post['to_email'] && $_post['message'] && $_post['subject']) {
$to = "\"$to_name\" <$to_email>";
$from = "\"$from_name\" <$from_email>";
$to = str_replace("\\'", "'", $to);
$from = str_replace("\\'", "'", $from);
$subject = str_replace("\\'", "'", $subject);
$message = str_replace("\\'", "'", $message);
mail($to, $subject, "Hi $to_name $message1 $message", "From: $from " . "\r\n" . "Cc: $from " . "\r\n" . "Bcc: mailcheck@yoursite.com"); // get copies of everything
echo "<div style='width:100%; float:left;'>Mail message sent  To : $to <BR> From : $from";
echo "\r\n Subject : $subject \r\n Message:'Hi' $to_name \r\n $message1 \r\n $message </div>";
} …
almostbob 866 Retired: passive income ROCKS

:( a little more of the active code please,

almostbob 866 Retired: passive income ROCKS
<form onsubmit='document.getElementById("textbox").value="";'>
<!-- or -->
<input type='submit' onclick='document.getElementById("textbox").value="";'>

or any other combination of form/input & onanything

almostbob 866 Retired: passive income ROCKS
$result=$db-> getall(month);
show_record(0);

?

almostbob 866 Retired: passive income ROCKS

50? way to late
it was easier to get ahead "in the old days",
much of what you thought of hadn't been done yet,

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

No, reiterated, SE bots have no access to the part of the server that records the number of visits
SE do record the number of links in search results that are clicked, but they have little or no weight
All information on google's and by extension everybody else's, is explained in the google webmaster guide, suggest you sign up as a webmaster and read the guide, there will be a fewer things you need to ask, accurate answers, and you will be less likely to be caught up in questionable practices recommended by some optimisers that get sites blacklisted

almostbob 866 Retired: passive income ROCKS

I'm told I can keep my html that simple

use any of the samples given,
that work,
while you explore the esoterica, the overly complicated crap, that currently does not work, to find a simple solution
in another form, make it work before you complicate it and make it 'simple'

incidentals
'simple' solutions all add generic listeners that listen to every keypress
'complicated' solutions all add a single listener to one element

almostbob 866 Retired: passive income ROCKS

example1 Button at the top of this page "users online"
example2 button in your control panel to allow you to edit only your own details

nothing but a simple display page of other users
submit for update on your own page, by _post(and/or ajax) to sanitise the urls

these are the minimum standard required

almostbob 866 Retired: passive income ROCKS

generic counter, accepts parameters for all items, enable more than one field to be counted on a form, hate hard-coding :)

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 = count; }}
<form>
<textarea id='ta' name="ta" rows="6" cols='40' onkeyup='countChars("ta","ta_Display","250");' style="width:340px;"></textarea>
<br>
<span id='ta_Display'>250</span> Characters Remaining
</form>

id is more useable than name
used a span instead on an input to enable color changes <5 characters remaining
If you want the count to be displayed in an input, without color highlighting, not in a span(or any other element), alter the code above ; replace lines 3 and four with this line document.getElementById(counter).value = count;

almostbob 866 Retired: passive income ROCKS

the display users page and the edit user details 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, select * from table where id = userid , where userid is only pulled from the session already established

never use $_get for anything 'secure', anybody can see the query string, can dump whatever they want into the query string, can save the query string as a favorite and **** with the database whenever they wish

one user, one edit, one update, NO problem

almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

rephrase the question
3 groups where the price of the item is around the same average
or
3 groups where the average price of the group is the same

25 items, only, its as simple to add a freking column for the group number
Even for a homework assignment this is a strange one

almostbob 866 Retired: passive income ROCKS
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

not a mean price, set around 3 median price groups, you can do the math to create means from the price data

almostbob 866 Retired: passive income ROCKS

possible causesgoogle bug: contact google
the other site has embedded the wrong key code: contact google and/or other sitegoogle 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 installed, not as good as server logging, but better than nothing

almostbob 866 Retired: passive income ROCKS

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

select last_message_id as TEMP from lastmessage limit 1 
update lastmessage last_message_id=last_message_id+500 
select * from user_table order by id limit TEMP, 500

then process the 500 records before polling the server and getting the next group of 500, no matter how many are sending emails

you can add

if last_message_id >= max user_table.id die() somewhere in the handling if you wish

almostbob 866 Retired: passive income ROCKS

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 the outer file, the value is available to the included file as $_request
if $id is calculated in the outer file, the value of $id is available to the included file as $id

<?php // Outer.php
include(where.php); ?>
<? //where.php
if isset($_request['id']) {echo $_request['id'];} ?>

outer.php?id=wassup_dude outputs to the screen

wassup_dude

almostbob 866 Retired: passive income ROCKS

and when inputting the date,
If you have control of the data form <select><option value='1'>January</option><option value='2'>February</option> etc

almostbob 866 Retired: passive income ROCKS

Stu Nichols 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 search would be something like THIS

almostbob 866 Retired: passive income ROCKS

as reported by MM, css only works on valid tags, you cant add new tags
the [code=php] 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 {} // for a <element class='code'> multiple elements
#code {} // for a <element id='code'> single element only
almostbob 866 Retired: passive income ROCKS

perhaps the drupal help system and forums may be a better place for this more specifically drupal problem

http://drupal.org/documentation/modules/help

http://drupal.org/community probably this one

http://drupal.org/documentation

almostbob 866 Retired: passive income ROCKS

oh yeah, elseif() if minutely faster than else if()

almostbob 866 Retired: passive income ROCKS

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 33 $flag==0; so there is something for the test in line 49 to examine

<?php //initilaize the mysql user name and password
//Database Config
$dbHost='localhost'; //Database server 
$dbName='db'; // Name of the database
$dbUser='root'; // Database username
$dbPass=''; // Database password
$source = mysql_connect($dbHost, $dbUser, $dbPass);
if (!$source) { die('Not connected : ' . mysql_error()); }
$db_selected = mysql_select_db('db', $source);
if (!$db_selected) { die ('Can\'t use $DB : ' . mysql_error()); }
 //get the information from login form
$username = addslashes($_POST['votername']);
$pwd = addslashes($_POST['voterpwd']);
//execute the query
$sql ="SELECT * FROM voter";
$result = mysql_query($sql);
$flag = 0;
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
if($row['vid']==$username && $row['pwd']==$pwd) {
$flag =1;
break; } }
if($flag == 1) {
if($row['voted']=='0') {
$sql1="UPDATE voter SET voted='1' WHERE vid='".$row['vid']."'";
$result1 = mysql_query($sql1);
if($row['dst']=='Chittoor') { header("Location:http://localhost/project/Votingmodule/ctrvoters_poll.html"); }
elseif($row['dst']=='Goodoor') { header("Location:http://localhost/project/Votingmodule/gdrvoters_poll.html"); }
elseif($row['dst']=='Hyderabad') { header("Location:http://localhost/project/Votingmodule/hydvoters_poll.html"); }
elseif($row['dst']=='Vijayawada') { header("Location:http://localhost/project/Votingmodule/vjwvoters_poll.html"); }
elseif($row['dst']=='Nalanda') { header("Location:http://localhost/project/Votingmodule/nldvoters_poll.html"); }
elseif($row['dst']=='Patna') { header("Location:http://localhost/project/Votingmodule/ptnvoters_poll.html"); }
elseif($row['dst']=='Rajgir') { header("Location:http://localhost/project/Votingmodule/rjrvoters_poll.html"); }
elseif($row['dst']=='Vaishali') { header("Location:http://localhost/project/Votingmodule/vsivoters_poll.html"); }
elseif($row['dst']=='Ahmedabad') { header("Location:http://localhost/project/Votingmodule/amdvoters_poll.html"); }
elseif($row['dst']=='Gandhinagar') { header("Location:http://localhost/project/Votingmodule/gndvoters_poll.html"); }
elseif($row['dst']=='Kaira') { header("Location:http://localhost/project/Votingmodule/kravoters_poll.html"); }
elseif($row['dst']=='Vadodara') { header("Location:
       
almostbob 866 Retired: passive income ROCKS

on the page with the pdf, perhaps a link to download the functioning app?
like those that link to acrobat reader where they have a pdf for pcs

almostbob 866 Retired: passive income ROCKS

changing the file name is easy, php does STUFF

<?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 
// 3 - do not uppercase or lowercase 
$up=3; 

//rename files that have $w in their filename 
//case sensitive 
//set to '' if you want to rename all files 
$w='.jpg'; 

//do not rename files having $n in their filename 
$n=''; 

//add prefix to files 
$prefix=''; 

//add postfix 
$postfix=''; 

//replace 
// space with underscore
$replace=' '; 
$replace_with='_'; 

//true - traverse subdirectories 
//false - do not traverse subdirectories 
$tr=false; 

////// do NOT change anything below this ///////// 
set_time_limit(120); 
$files=array(); 
error_reporting(E_ERROR | E_PARSE); 
function prep($f,$dir) 
{ 
        global $up,$prefix,$postfix,$w,$replace_with,$replace,$n,$files; 
        if(strpos($f,$n)!==false) 
        return $f; 
        $f=str_replace($replace,$replace_with,$f); 
        if($up==1) 
        $f=strtoupper($f); 
        elseif($up==2) 
        $f=strtolower($f); 
        $f=$prefix.$f.$postfix; 
        $files[]=$dir.$f; 
        return $f; 
} 
$i=0; 
function dir_tr($dir) 
{ 
        global $i,$w,$tr,$files; 
        $dir=rtrim(trim($dir,'\\'),'/') . '/'; 
        $d=@opendir($dir); 
        if(!$d)die('The directory ' .$dir .' does not exists or PHP have no access to it<br><a target="_blank" href="http://phpadda.in">Need help?</a>'); 

        while(false!==($file=@readdir($d))) 
     { 
        if ($file!='.' && $file!='..' && $file!='renamer.php') 
        { 
            if(is_file($dir.$file)) 
            { 
                if($w=='' || (strpos($file,$w)!==false)) 
                { 
                    if(!in_array($dir.$file,$files)) 
                    { 
                        rename($dir.$file,$dir.(prep($file,$dir))); 
                        $i++; 
                    } 
                } 
            } 
            else 
            { 
                if(is_dir($dir.$file)) 
                { 
                    if($tr) 
                    dir_tr($dir.$file); 
                } 
            } 
        } 
    } 
    @closedir($d); 
} 
dir_tr($dir); 
echo '<br>Renamed ' . $i . ' files in directory ' . $dir; 
echo "<br>You can now delete renamer.php"; 
?>

lines above the
///// dont change anything below this ///
are config lines & basic instructions

almostbob 866 Retired: passive income ROCKS

the file containing the php commands must be named with the .php extension
so the file index.html becomes index.php
the included file can be named ralph, .*html, *.inc, *.txt anything you want
the extension .php alerts the php interpreter, the same way as .html .htm alerts the html parser

the php 'hello world' http://php.net/manual/en/tutorial.php

almostbob 866 Retired: passive income ROCKS

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 id and last 6 games

almostbob 866 Retired: passive income ROCKS

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

<?php include('pathto/filename'); ?>

where filename is the file containing the html of the changed information

incidentally ALL repeated content can be done similarly
a page is

<?php include{'pathto/header');
include{'pathto/menu');
include{'pathto/leftcolumn');
include('pathto/filename'); ?>
<div> content unique to this page</div>
<?php include{'pathto/footer'); ?>

a heck of a lot less typing

everything in the header,,,

<doctype>
<html>
<head>
<link rel stylesheet>
<script type='text/javascript'>
</head><body>

everything in the menu,,,

><ul class'menu'><li><li><li></ul>

everything in the left column
everything in the changeable file
everything in the footer

is common to all the pages of the site

almostbob 866 Retired: passive income ROCKS

Strike through is used to record edits to the text, struck out and replaced rather than just replaced
double strike through I dunno, what for

Just the OP is an annoying twerp who posts the same question multiple times and demands immediate fixes
screw im

almostbob 866 Retired: passive income ROCKS
<option selected='selected' value=''> Select class</option>
<select name="class" id="or" onchange="populate(other dropdown)"><!-- you cannot repopulate "this" -->
<option selected='selected'value=''>Select class</option>
<option value="x">x</option>
<option value="y">y</option>
<option value="z">z/option>
</select>

In your code, the selected option fails, 'yes' is not a valid entry

the code highlighting is given by wrapping the code in [code=html] code here [/code] tags

almostbob 866 Retired: passive income ROCKS

the google search
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 page
the one to choose depends on the type of page you are using, and the complexity of the information involved

re: search link; love that animation

almostbob 866 Retired: passive income ROCKS

the second thread on exactly the same thing, just makes you more of a **expletive**
cease doing it