almostbob 866 Retired: passive income ROCKS

clean up the code, get rid of all the unneccesary formatting whitespace indents
500 lines of mostly empty space for css?
no wonder you cant find the error

0px is wrong, zero has no dimension

almostbob 866 Retired: passive income ROCKS

Just wanted to post the 200th reply, might be old, but still juvenile

almostbob 866 Retired: passive income ROCKS

Humaza
most who post here will answer, or try their best, any sort of query, here on the forum,
keeping solutions where everyone can see them helps others who have similar problems
post the code as directed

If you want personalised at-call service, you'll have to hire somebody

almostbob 866 Retired: passive income ROCKS

not your whole damn web site, images & assorted crap,
just the html and css,
of the affected page,
those are text files, and if they are 14MB zipped you have other problems,
post code between [code] code [/code] tags
so it looks like this

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<?php define("_BBCLONE_DIR", "./bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if(isset($_SERVER['HTTP_REFERER'])) { $haystack=$_SERVER['HTTP_REFERER']; }
else { $haystack='empty'; }
$needle = 'mysite';
if(!strpos($haystack,$needle)) { define("_BBC_PAGE_NAME", "external.rejected");
if (is_readable(COUNTER)) include_once(COUNTER);
header("Location: http://www.mysite.com/"); 
exit; }
define("_BBC_PAGE_NAME", "external.".$ext);
if (is_readable(COUNTER)) include_once(COUNTER);
?>
<title>Linking <?php if(!$ext){$ext = '/home2.php';} echo $ext ; ?> -mysite</title><link rel='stylesheet' href='/style.css.php' type="text/css" media='all'><script type="text/javascript" src="/script.js.php"></script></head><body>
<?php echo "<div style='height:4.5%;'><center>External site &nbsp;<a href='";
if (isset($_SERVER['HTTP_REFERER'])) {echo $_SERVER['HTTP_REFERER']; }
else {echo "/reload.php";}
echo "'>&nbsp;<font Size=-1>Return to</font> referring&nbsp;page&nbsp;</a></center></div>";
echo "<iframe style='scrollbar-arrow-color: #567;scrollbar-3dlight-color: #fff;scrollbar-face-color: #ccc; scrollbar-highlight-color: #505050;' name='extern' id='extern' frameborder=0 width='100%' height='800' src='$ext'>outside page</iframe></body></html>"; ?>

code
code=php
code=css
code=javascript
code=apache
code=sql
tells the handler how the code formats, makes it very easy for others to see errors, that you may have looked past a 1000 times,
everybody knows what they want the code to do and types padding-left:1em; padding-right:2em; instead of padding-left:2em; padding-right:1em; just never notice
If you dont have one, an editor with code highlighting, makes it easy on the desktop

almostbob 866 Retired: passive income ROCKS

what crishea said
assume all servers servers are case sensitive,
windows servers arent, but with good fortune you'll never have to work on a windows server,
caveBob say ugg apache linux good, ugg windows bad

have your file upload script force all filenames to the form your server understands
line 6 in the op above something like

$FullSavePath = $ImagesDirectory.strtolower($FileName);
almostbob 866 Retired: passive income ROCKS

Your arms arent long enough anymore, and you get your first reading glasses

almostbob 866 Retired: passive income ROCKS

doh, think the opposite, that it was not displaying the same in IE
show the code for the css, somewhere there is a text-align:center that you missed

almostbob 866 Retired: passive income ROCKS

centered in IE8 IE7 Opera FF
? what problem

almostbob 866 Retired: passive income ROCKS

first idea
post the code its easier to point and fix

almostbob 866 Retired: passive income ROCKS

w3schools have nothing to do with w3, sometimes they are close but no cigar, sometimes they are right

for the other, can you post the code, not guaranteeing an answer, but the real gurus will likely stick a nose in given time
{I get something like

<!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></head>
<body>
<div style='width:100%'>
<p style='width:22%; margin:1%; margin-top:3em; float:right;'>short text line1<br>shorttext line2<br>short text line3</p>
<img style='width:22%; margin:1%;' src='img1.png'>
<img style='width:22%; margin:1%;' src='img2.png'>
<img style='width:22%; margin:1%;' src='img3.png'>
</div>
</body>
</html>
almostbob 866 Retired: passive income ROCKS

jquery and mootools scripts have that functionality, you may as well examine them as try to code it from scrathc

almostbob 866 Retired: passive income ROCKS

the element you wish to show can be styled a layer, in css with a higher z-index than the underlying text it will appear floating over it

div is not a good descriptor for your function, it is a reserved word and may cause problems, the functions are ok

/* css possibility for hidden elements, can also style them relatively or absolutely or fixed positioning to make them appear in particular place */
#pop { display:none; z-index:10; }
almostbob 866 Retired: passive income ROCKS

html will not display properly unless the doctype is specified properly, throws browsers into quirks mode, which is different for each browser, as they try to interpret what they think the code means
try something like

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type='text/css'>
.wrapper { width:100%; }
img.banner { width:22%; margin:1%; }
p.banner { width:22%; margin:1%; margin-top:3em; float:right; }
</style>
</head>
<body>
<div class='wrapper'>
<p class='banner'>short text line1<br>shorttext line2<br>short text line3</p>
<img class='banner' src='img1.png'>
<img class='banner' src='img2.png'>
<img class='banner' src='img3.png'>
</div>
</body>
</html>

the elements are sized in % and em, which will resize to the window size, font size
Yeah, html4,
everyone says I should update to xhtml,
some of the sites maintained are updating TO html4,
I dont use any features of xhtml,
the effective part of the code will work in xhtml

Not the only solution, A solution

almostbob 866 Retired: passive income ROCKS

agree with raccoon, Web template? what the bleep do you mean?
and with drifiting steps explanation of hwo the background works

If neither post provides insight into your problem, post back with some explanation of what the problem is
If you have sourced a web template from somewhere and you are having difficulty deciphering its options. You didnt get it from here. The gurus will require the code you are having trouble with, what you have attempted to rectify the problem,
If it is general 'how do I apply a bckground' the same gurus will require the code you have developed thus far.

almostbob 866 Retired: passive income ROCKS

to implement adsense for mobile, goto google mobile adsense site and follow the instructions

almostbob 866 Retired: passive income ROCKS

what graphics said, in the code of your OP, you can see the color changes in the text, perchance consider a code highlighting editor, notepad++ notepad2 or similar that offer code hints when some goes wrong

almostbob 866 Retired: passive income ROCKS

background-position:center; is irrelevant when the image is set to repeat in both directions
which is not going to solve the problem, but makes the code prettier

If you are using a footer 200px as a height is wrong, text size on different monitors etc, better is to set the top bottom left right for absolete positioning, and not set a height at all for an element that just forms part of the normal document flow, an inline footer, the page will display perfectly as the page scrolls down without height settings
a fixed footer works better something like

.footer { background:url(../images/flower.jpg); width:100%; top:auto; bottom:0; position:fixed; }

and allows user fonts to not overflow the footer, I assume that font settings elsewhere in the css are all in ems or % not something stupid like px,
so that even blind freddy with a basefont of 180px can view the site

no offense intended to any visually impaired person named Frederick, blind freddy (lower case) is an Australian archetype

almostbob 866 Retired: passive income ROCKS

as it is the code is wrong
when the javascript is declared in the head before the page is rendered the <td id='hp-random'> element does not exist, setting the attrributes of a non-existent element causes errors
a possible solution is to make the javascript a function and put the function in the onload call for the <body> tag,

<script type='text/javascript'>//langueage='javascript' is deprecated
function randomimg() {var img_rnd = new Array ();
img_rnd[0] = "hp-1.jpg";
img_rnd[1] = "hp-2.jpg";
img_rnd[2] = "hp-3.jpg";
img_rnd[3] = "hp-4.jpg";
img_rnd[4] = "hp-5.jpg";
img_rnd[5] = "hp-6.jpg";
var i = Math.floor(Math.random() * 6);
document.getElementById("hp-random").style.backgroundImage="url("+img_rnd[i]+")";
}	//-->
</script></head><body onload='randoming();'>

or to put the script, as is, after the page loads, between </body> and </html>

javascript will always look wrong, the page will load, the script will process, the background image will download and place itself
the same effect done in a server language is seamless to the user the random image is selected before the page downloads, the page source displayed only includes the current image, thew downloaded page is slightly smaller

almostbob 866 Retired: passive income ROCKS

Mobile devices

  • charge per byte
  • flash never works
  • java seldom works
  • device memory is limited
  • screen size is limited
  • user interface is limited
  • physical input devices are limited
  • download speed(bandwidth) is limited

build a site that is not dependent on plugins,
with
iconized graphics,
standard links (default color highlight etc)
single column fluid layout (DONT set anything in px)
logical menu structure
and keep it small

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld emulator, see what your site looks like in opera mini

As the OP wrote
many users use their mobile phones,
so if the site does not display on a device with limited ability, those users go elsewhere.
USER_AGENT detection scripts are not difficult to implement for mobile phones

because people use the devices, does not mean the devices are competent for the use, much is some idiot trying to impress other idiots
a few more device generations and mobile devices may begin to be functional

(and this one didnt get sent from my blackberry)

almostbob 866 Retired: passive income ROCKS

Remember the Search algorithms are smart. obvious link exchanges are worse than ignored, they downgrade the site.
Relevant link exchange is the key thing, from sites related similar local

almostbob 866 Retired: passive income ROCKS

in css .element:hover { display:inline;} ( or display:block; )

thats why I start with an existing script, too lazy

almostbob 866 Retired: passive income ROCKS

Follow the logic(? or not) of the OP

  • Only accept links from sites higher than yours
  • do not link to sites lower than yours

If the premise were valid
Nobody that you want a link from would link to you
Nobody that wants to link to you would be accepted by you.
Pagerank offered as evidence of the value of a site have nothing to do with Google pagerank algorithm, Total BS, without value

Google page rank algorithm is about the best kept secret on the planet.

We also analyze the content of neighboring web pages to ensure the results returned are the most relevant to a user's query.

Ignore the BS, take the link

1 link is better than no link, wherever it comes from

almostbob 866 Retired: passive income ROCKS

It works for me.

that was the point, untangling error messages, the OP couldnt find a fault in that region of code and wanted some input on where and how to find the fault

almostbob 866 Retired: passive income ROCKS

line numbers in executing php scripts are not the same as line numbers in the source.
executing scripts that contain any include(); statements, the included file's line count is counted in the executing file
check line counts in includes and the missing brace will likely be that many lines before the indicated line

almostbob 866 Retired: passive income ROCKS

have you considered hotscripts phpscripts sourceforge to download prewritten user access control scripts
if you do not use them in their premade form, as a code sample will provide valuable, easily developed insight into how the problem of redirectiog users based on stored information can be approached
possible examples in this google search

almostbob 866 Retired: passive income ROCKS

px are a poor choice, the menu will work on Your pcs, but not on anyone elses with a different screen resolution window size basefont
0(zero) is dimensionless and will cause compliant browsers to throw the css definition away if it represented as 0px

#menu ul { margin:0 0 0 10px; padding:12px 0 0 0; list-style:none; }

lose the indenting of code, it is unneccessary, adds size to the file, is not needed by the browser, and does not improve readability for the developer. use an editor with code sysntax highlighting

did you consider any of the premade horizontal css menus available from sourceforge hotscripts phpscripts purecss (and others) to use as a development base, many are very well internally documented and explain what why when the author is using particular code.

invisible elements takes up space on the page. (the whitespace in your menu is the size of the invisible submenus) Use the "display" property to create invisible elements that do not take up space! (display:none; display:block; display:inline; )
and/or
Set the Z-index of the menu higher than 0 for other content to slide under it,
Set the z-index of the submenus higer than the menus, elements with different z-indexes can occupy the same x-y space on the page, then toggling visibility does not leave blanks, the higher z-index appears on top of the lower z-index, equivalent to page numbers

position:absolute; sets the element like the daniweb top menu, relative to …

almostbob 866 Retired: passive income ROCKS

the link given includes all the documentation, RTFM

almostbob 866 Retired: passive income ROCKS

the school board own the database of their schools and have designed it with a geocaching system, google maps has similar functionality
RTFM

almostbob 866 Retired: passive income ROCKS

stop using pixels

almostbob 866 Retired: passive income ROCKS
body {background:pink; width:100%; }
.content { background:green; width:80%; margin-left:10%; }

table 21 lines, css 2 lines
If I understand the question,

almostbob 866 Retired: passive income ROCKS

each table has a reference that links to other tables
the user table has a sequential id, not nul
the language table has its own sequential id not nul
and a column that links to the id of the user table
user
id,name,address,town,state
000, fred, 123 four street, five town, six state
001, bill, 234 five street, six town, seven state

language
id,userid,language
000,000,perl
001,000,php
002,000,c++
003,001,perl
004,000,mysql
005,001,mysql

almostbob 866 Retired: passive income ROCKS

I find that a lot of the authors of those articles that overstate the security risks invloved in xxxxxxxxx are written by consultants, who happen to have a fiduciary interest in companies that specialise in removing the threats they write about.
I have received cold calls about malicious content on my site, who offer to clean the contaminated code for a fee, and they submitted a page ostensible from my site with all the wordpress headers et alexcept that my sites are not WordPress, too slow, I hand code for speed, database generated, and the page submitted does not existI assume they were looking for a ceo who was not closely associated with development

Trust no-one believe nothing till you independently verify it as pertinent to your own needs and uses

which |I guess includes this post :)

almostbob 866 Retired: passive income ROCKS

examine as well the services available on your apache server mod_rewrite can change the displayed url to obfuscate parameters
examine php sessions
and there are a lot of access control /user contrl php scripts available premade at phpscipts hotscripts sourceforge (and others), that you can download and use, or,
If they arent perfect those scripts can provide valuable hints on what you need to roll your own,
a rolled your own script, has the benefit of uniqueness, any bugs will be obscure unpublished bugs bugs and hard for mailcious intent to find
user control system makes the entire site password protected, like daniweb, I can view your profile, public sections, you can view mine, but neither of us can change the other's or change the site in general

and as whieteyoh wrote always validate clean stripslash mysqlrealescape any data from user input before it goes to the database,

almostbob 866 Retired: passive income ROCKS

do not believe everything you read

almostbob 866 Retired: passive income ROCKS

missing colon in body margin possible throws everything after that missing colon off
less importantzero is dimensionless : throws compliant browsers into 'quirks mode'
elements have shorthand constructors : makes your css file smaller
div#id is redundant only #id is required: there can only be 1 element #idtry

body {margin:0; font-family:Arial, Helvetica, sans-serif; background-color:#eeeeee; color: #333333; }
#banner { margin:25px 25% 0 25%; width:50%; border:1px solid #cccccc; text-align:center; background-color:#ffffff; }
#menu {padding:10px 0; margin:0 25%; width:50%; border:0 solid #cccccc; text-align:center; background-color:#ffffff; }
#content { padding:10px 0; margin: 0 25%; width: 50%; border: 1px solid #cccccc; text-align: center; background-color: #ffffff; margin-top: 10px;}
#main { width: 65%; margin-right: 25%; padding-bottom: 10px;}
#right { width:45%; float:right; border-left:1px solid #cccccc; padding-bottom: 10px;}

html is messed up, elements ending in /> require xhtml declaratives in the head, and require all singleton elements end in /> (<br />)
no html doctype is declared so the browser does not know how to handle the mixed code and displays in quirks mode, (badly)
chose a doctype and validate the code at http://validator.w3.org/
validate your css at http://jigsaw.w3.org/css-validator/

<!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" />
<meta name="Keywords" content="your,keywords,here" />
<meta name="Description" content="." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="stdStyle.css" />
</head>
<body>
<p>content<br />content</p>
</body>
</html>
almostbob 866 Retired: passive income ROCKS

^ excited
< dan't dance but can sing his abc-s standing on his head, ɐqɔpǝɟƃɥıɾʞlɯuodbɹsʇnʌʍxʎz, not really, he's Australian, he always talks that way
V also cant think of something mindshattering to be doin instead of this

almostbob 866 Retired: passive income ROCKS

why set a height? especially why px

#footer {bottom:0; top:auto; width:100%; position:fixed; z-index:10; text-align:center; padding:.5em 1em; }
#header {top:0; bottom:auto; width:100%; position:fixed; z-index:10; text-align:center; padding:.5em 1em; }

may work and not waste so much screen space for empty footers and headers

almostbob 866 Retired: passive income ROCKS

sql/mysql/mssql/postgresql now()
php date()

functions already exist
text format dates are stupid

almostbob 866 Retired: passive income ROCKS

It hasnt taken much to push me over the edge today

first time posters who ask for the world without any effort at all have decided to push my buttons
its not my bad temper of course
http://lmgtfy.com/?q=and+do+you+want+me+to+wipe+your+***+for+you+as+well

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

from memory
only repeat-x repeat-y no-repeat are neccessary. repeat does not exist
default(blank) is repeat both : repeat keyword is for javascript
footer 100% not 1020px width, so it fills the screen at all resolutions, fixed width = horizontal scroll bars or empty space
consider font sizes in em,
px get smaller every few months as new monitors are released,
ems adjust to user preference, screen resolution, window size, device ability, user disability.
without the developer having to DO anything

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS
<head><script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script></head>
<a href="skype:skype_username?call" onclick="return skypeCheck();"> Call me on Skype </a>

page 9999999 on the howtos, no-one is ever likely to find it,
it was linked as "how to offer skype me calls from my website"
but no longer is

almostbob 866 Retired: passive income ROCKS

google
it is said there are no stupid questions
don't have to try this hard to prove em wrong

almostbob 866 Retired: passive income ROCKS

Just so you know, this is not true. On apache you can use any extension you want and treat it as a php file.

Just so you know, this is often functionally true. apache server is configurable, however, many servers, particularly low end hosting packs, are locked down
/* addhandler server-parsed is disabled */
so that configuration cannot be changed,

plan on the worst, and you get pleasant surprises when you find the result is better than you expect
plan on the best, and the only surprises are unpleasant

pritaeas commented: Point taken +5
almostbob 866 Retired: passive income ROCKS

The other thread used javascript,
php serverside
javascript clientside
nothing in php occurs after the page source is downloaded to the browser
to change the page source after loading is done in javascript
an image randomizer can be done in php and that random image name written into the javascript, so the image is different each page refresh
but anything after the page is served is javascript
Is this what you want, an php image randomizer?

almostbob 866 Retired: passive income ROCKS

You were alive when Pluto was still a planet? >.>

You were alive BEFORE pluto was a planet

almostbob 866 Retired: passive income ROCKS

for each through the $_POST $_GET $_REQUEST arrays (however the form is sent)

the form will have valid name=>value pairs in its submitted data, that will match rows in the database, regardless of how they are generated

<?php
echo "<tr><td>".$id."</td><td>".$type."</td>
<td>".$item."</td><td>".$description."</td>
<td>".$price."</td>
<td><input type=checkbox name=".$id." value='serving'></td></tr>";
/* when processing form input
update table set serving="" */
foreach ( $_POST as $menuitem => $serving ) {/* do something with the sql table, 
probably/possibly 
update table set set serving='serving' where menuitem=$menuitem
Menu print is select * where serving='serving' (everything in the submitted form unchecked boxes dont submit) 
print this select on a menu */ }
?>

then future printings will be as the chef set, till the chef changes it again

almostbob 866 Retired: passive income ROCKS

This code is about 97 lines

almostbob 866 Retired: passive income ROCKS

Your post is very unclear
you cant change the source of an image after page load in php
the image will only be different each page load, will not cycle through images while the page is open
What do you want to accomplish