almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

When you remember that the records are 78rpm

almostbob 866 Retired: passive income ROCKS

When you remember 5 inch SS SD floppy disks

almostbob 866 Retired: passive income ROCKS

px are not the recommended scalar/measurement
on a .12 dot pitch hi res screen 15px=1.8mm=.07inch high, hardly visible
current best practice is em % as measurements, settings that adjust to screen resolution and user preference. Using the current best practic will also make the site more user friendly, as impaired person wont have to use the horrendous zoom functions on browser windows just to see the site0px is not a valid measurement zero is always just zero 0, 0px will put standards compliant browsers into quirks mode

Yes body should be at the top
typically css is declared in box order, outer box, first box second box
body
table
td
.classes

that way the elements inherit the styles of their parents, the 'C' in 'CSS'

lower case element names
td not TD

edit** most of it scottlway already said

almostbob 866 Retired: passive income ROCKS

not only html, javascript to do the crunching,
innoccuous javascript,
but some users have all javascripting disabled as a security issue.

almostbob 866 Retired: passive income ROCKS

IF you remember Pink Floyd, you werent really there man ..

almostbob 866 Retired: passive income ROCKS
echo "<tr><td><a href='$Link[$j]' target='_blank'> <img src='/images/news3.gif' /> <font color='#FFFFFF' size='3'>$NewsPapers[$j]</font></a></td>";

the html is screwed up,
a mix of xhtml and html,
attributes are required to be quoted,
dtd is required
some browsers will fail to render on this type of error

wrape code in [code=language] [/code] tages where language is html php asp etc. to make viewing simpler

like the instructions on the top of the page tell you

karthik_ppts commented: useful +5
almostbob 866 Retired: passive income ROCKS

.asp will be preferred by those unlucky few with windows servers, a proprietary Microsoft product with all the bugs holes and illogicalities that implies

for the 90% on other than windows hosts there is .php

why pay for something where the free one works better

almostbob 866 Retired: passive income ROCKS

What will said
Current best practice is % and em, the derivation of % is obvious, the em is width of the M in the user's set basefont
both scale to window size, and user preference
a div 25% wide is 25% wide on a widescreen monitor and a handheld device and everything in between
scaling elements and fonts in ems and % allows the user preferences to set the basefont of the page and that means the page in 99% accessible to people of impaired vision, too easy

If you must live in the 90s and set pixel widths, set the border or margin, and let the body fill the rest of the screen

almostbob 866 Retired: passive income ROCKS
echo <<<END
<h1>Edit Page</h1><p>Here you are allowed to edit your personal page, 
$array["page"], 
in all sorts of ways. You can start out by
choosing a background color, and what font you would like.
In that way you can make a completely unique page, that is like no others.
Have fun! :)
END;

text as entered
might not be following the problem correctly?

almostbob 866 Retired: passive income ROCKS

The google maps API as posted in google code, includes AJAX calls of the type required
there are other sites than google that provide editable code to create the desired result as well

almostbob 866 Retired: passive income ROCKS

the first line of an xhtml file should be a doctype
no doctype , doesnt work

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

validate your code and css

http://validator.w3.org/ html check

http://jigsaw.w3.org/css-validator/ css check

almostbob 866 Retired: passive income ROCKS

dont do it, there are too many annoying sites

almostbob 866 Retired: passive income ROCKS

so did we, 10 years later, but not the body of the one dancing with

almostbob 866 Retired: passive income ROCKS

THe Hosts file part of every windows since 3.11
part of every MacOS
part of every linux os
part of every freeBSD os

and very seldom used,,,, DOH

a text file list of
127.0.0.1 uri
one item per line

no ads, no google adware, no trackers, no problems
vastly improved page load times
regularly updated with new threats and malware,, not aware that DaniWeb was ad supported

http://mvps.org/winhelp2002/hosts.htm

almostbob 866 Retired: passive income ROCKS


It works in all the browsers on my Linux box.

If the text-shadow is not supported, the page shows just as it would as if I had not specified it. It's a progressive enhancement.

:headslap Moment:
may have timed out rather than failed, it gives the same error msg, browsershots is in development as well,
I apologise,

Still looks damn good in all other than those first 5 blank screens

almostbob 866 Retired: passive income ROCKS

we dont do homework
show your code, and it will be repaired if broken

almostbob 866 Retired: passive income ROCKS

Post the code, and the gurus here are likely going to be able to point and shoot : done
nobody wants to have to pull the code of the site and work it

aside:: Google tracker is malware,(third party script loaded without user permission that reports browser activiety to the third party, classic spyware) spybot, the MSMVP hosts file and probably everything else blocks it. useless for a tracking system, most of potential clients run an antimalware program,
use the server logs (and webstats awstats or similar to easyread them) or if your host package does not give access to the server logs install a php script like bbclone to monitor your site.

open your site in a part screen window, as would a potential customer comparing your site with an opponent site. half pane each
fixed width body pushes content offscreen right
fixed size text does not adjust to user basefont settings

opponent site is current best practice ems and %, their site works in part screen window

other site gets contract, just on looks

the attached list of these standard test beds may assist you replace yoursite.com with the appropriate url

http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/ Speed tweaks

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en css check

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld

http://www.browsershots.org other browsers

many problems (if present) will show
serious code errors in the w3c validator sites will produce blankscreens in browsershots

…

almostbob 866 Retired: passive income ROCKS

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

almostbob 866 Retired: passive income ROCKS

have you tried it without the dot in invoicNo

thinks concatenation

almostbob 866 Retired: passive income ROCKS

12px is, on a hi-res monitor (.12mm dot pitch), 1.4mm (0.05inch) high, px are not scaleable by the user to the users convenience,
current best practice for screen layout is em and %, which both adjust around the user basefont settings, the site becomes immediately impairment friendly and you wont get fined in any of the countries now signatory to the latest international boondoggle

0px will crash css rendering in some standards compliant browsers, zero has no unit, it is just zero

wont even mention that tables are not a good layout tool,,,

almostbob 866 Retired: passive income ROCKS

perl scripts are always invoked as a result of some request, until then they just sit on the server doing 0 nada nothing
traditionally perl script gets data posted or getted to it from a html form, runs on the server and returns a html page to say its done.
the code given, sends the data to the perl script by post or get and ajax similarly could/would handle any returned data

almostbob 866 Retired: passive income ROCKS

put the files in a folder
put the uri of the files in the database
smaller faster

almostbob 866 Retired: passive income ROCKS

english is not the first language?
http://www.php.net/manual/en/tutorial.php select the button on the page for your preferred language

almostbob 866 Retired: passive income ROCKS

if not logged in redirect to login page
after login, redirect to $_SERVER;
whatever page sent the user to the login page

almostbob 866 Retired: passive income ROCKS
<table width="100%">
<tr>
<td>Content</td>
<td width='*'>More Content</td>
</tr>
</table>
samarudge commented: Usefull stuff =) +2
almostbob 866 Retired: passive income ROCKS

look at your code in the post above, at line 33 you see the colors change, one of the benefits of code highlighting is it shows you when you are missing quotes
there are editors available with code highlighting that make debuging easier
other than than it is unusual to have checked on more than one checkbox with the same name, My head doesnt seem to be working at the moment
gone to think

5 minutes, back
thoughts, unGuaranteed,

the onclick handler likely reacts before the value is set, so the first 'checked" value is sent perhaps onclick='this.checked;submit();' or similar code
remove all "checked" values but one
perhaps use input type = 'radio' to get the one/only

just thoughts

almostbob 866 Retired: passive income ROCKS

for everybody else that may be concerned whether their code will display properly these standard test beds replace yoursite.com with the appropriate url

http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/ Speed tweaks

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld

http://www.browsershots.org other browsers --have to punch the url into the opening screen, this is a real eye opener

many problems (if present) will show
serious code errors in the w3c validator sites will produce blankscreens in browsershots

Valid code does not ensure the site will work ...
Invalid code ensures the site will not work ...
.. in all browser OS combinations

not all layouts work in handheld devices
strictly code based, you understand your content more than I would

EDIT** Chris,, your site failed in 5 of the first 6 browsers out of the box, it doesnt like *nix http://browsershots.org/http://cfajohnson.com/
uses css3 shadow unsupported in most *nix browsers
looks good in everything else

almostbob 866 Retired: passive income ROCKS

background is a reserved word

almostbob 866 Retired: passive income ROCKS

Block google advertising, google spyware tracker and a lot of other crapware http://www.mvps.org/winhelp2002/hosts.htm

almostbob 866 Retired: passive income ROCKS

make life easier on yourself (may not be the problem but make life easier)
dont use mixed case filenames

'This' is exclusive to 'this'

almostbob 866 Retired: passive income ROCKS

look also at line 5 of you html there is an odd number of dquotes there

almostbob 866 Retired: passive income ROCKS

look at your code in the post above, color highlighting shows the problems
you have doublequotes inside double quotes, does not open a new set of quotes, closes first set "open.("closed"open)"closed
replace the innner sets of dquotes with single quotes

<li>&gt; <a href="javascript:void(0);"  onclick="function("mc");" id="mc">Consultancy</a></li>

looks better as

<li>&gt; <a href="javascript:void(0);"  onclick="function('mc');" id="mc">Consultancy</a></li>

get a code highlighting editor, these type of issues show up in development,

sometimes it is only required to turn code highlighting on, in the editor being used,

almostbob 866 Retired: passive income ROCKS

when you get the code sorted out for the css rollover, the FIRST rollover for each image will appear very slowly, as the file is not downloaded from the server until that time
this can really mess up your page appearance
javascript to preload the images can be added to the foot of the page after the </body> tag and before </html> to preload the images, it wont display anything and degrades gracefully(does nothing) if javascript is disabled on the user browser. but speeds the apparent load time of the page as the images load after the page is fully active, but usually before the user has a chance to mouseover something

</body><script type="text/javascript">
//<![CDATA[
<!-- 
image1 = new Image();
image1.src = "http://pics.mysite.com/rollover1.jpg";
image2 = new Image();
image2.src = "http://pics.mysite.com/rollover2.jpg";
//-->
//]]>
</script></html>

this script loads rollover1 and rollover2 which are then in the cache to be accessed without load delays

almostbob 866 Retired: passive income ROCKS

depending on server configuration

index.html index.php default.asp

the default file for the site seems to be missing or missnamed

when you access this-site.com you really get this-site.com/default-file.default-extension

if index.htm index.html index.php default.asp is not present the server does not know what to do

almostbob 866 Retired: passive income ROCKS

.pl is perl
parse.pl appears to be a serverside script used to manipulate data to a user friendly output, it parses the data
the output is html, same as the output from .php, .asp, cgi is html
if it isnt html a browser may not be able to display it
the file extension tells the server how to handle the internals of the file before the is sent as html

almostbob 866 Retired: passive income ROCKS

I've tried editing my query as per you instructions and ended up with the following:

$sql4 ="SELECT Company.Link, Company.Address, Company.TelOther, Company.HomeTel, Company.Area, Company.Classification, Company.Class2, Company.Class3, Promotions.CompanyName, Promotions.PName, Promotions.PDescription, Promotions.Monday, Promotions.Tuesday, Promotions.Wednesday, Promotions.Thursday, Promotions.Friday, Promotions.Saturday, Promotions.Sunday, date_format(Promotions.StartDate, '%d/%m/%Y'), Promotions.EndDate, Promotions.PromoID
FROM Company INNER JOIN Promotions
ON Company.Name=Promotions.CompanyName WHERE Promotions.EndDate IS NULL AND '".$q."' >= Promotions.StartDate AND Company.Classification = '".$p."' ORDER BY Promotions.StartDate ASC";

It's now showing an unexpected T-Variable error.

Any thoughts?

Cheers.

in the php for the output, not the sql query, sql requires only column names

almostbob 866 Retired: passive income ROCKS
<div style="width:100%; bottom:0; top:auto; position:fixed; text-align:center">test</div>

one of many ways, styles belong in the stylesheet
tables are not used for layout, too much code too little content, current best practice is css positioning, separates layout from content, makes constant appearance simple

almostbob 866 Retired: passive income ROCKS

references ?
site name ?
anything ?

kerplunk

almostbob 866 Retired: passive income ROCKS

email without a title/subject header is routinely bounced

almostbob 866 Retired: passive income ROCKS

some more information may be neccessary to give accurate answers
what do you need to prefetch
random code sample images/pdf/etc

</body>
<script type="text/javascript">
//<![CDATA[
<!-- 
image1 = new Image();
image1.src = "http://mysite.com/image1.jpg";
image2 = new Image();
image2.src = "http://mysite.com/image2.jpg";
image3 = new Image();
image3.src = "http://mysite.com/image3.jpg";
//-->
//]]>
</script>
</html>

do not have to be images any file placed as src will be fetched,the script doews not display anything, just fetches it

between </body> and </html> means the page will fully display before the items are fetched, apparent faster loading

almostbob 866 Retired: passive income ROCKS

dear friend,

I got your prob., to resolve this prob. you have to use <frameset> to create this web site,

Regards,

framesets require multiple files all complete html, they are larger than necessary so are slower than necceessary
framesets are not indexed well by search engines
and have been superseded by server includes, in any of the server languages previously mentioned, smaller faster and more indexable
framesets are a retrograde step,

the thread was marked 'solved' before you posted, the original poster thinks its DONE, and the answers given work

almostbob 866 Retired: passive income ROCKS

Do you mean news from your site?
or news from newspaper/reuters/associated press or other news agencies?
if your site php&mysql as cwarn23 posted,
if external site look for a rss feed, most news sites have them, and one of many rss2php rssthtml feedreader scripts off google hotscripts phpscripts scriptworld

almostbob 866 Retired: passive income ROCKS

egg toast/french toast

almostbob 866 Retired: passive income ROCKS

Yes,
its the most common improvement from "my first web page" to "my second web page"
in .php .asp .shtml (server side language extensions to html) you can <?php include('menu.php'); ?> (example)
the only thing you have to do is determine what server language your hosting package supports and use that language
my site has 1600+ pages, & 2 included files that actually do all the 'grunt work'
head.php that is all the doctypes css scritps
menu.php that is the menu, sidebar and footers
the average page looks like

<?php include('/head.php');
include('/menu.php'); ?>
content bla bla bla
</body></html>

menus on all pages can be altered easily and all pages retain the same look and feel all the time

almostbob 866 Retired: passive income ROCKS
  • Wrap code in [code] [/code] tags to improve readability
  • THERE IS NO JAVASCRIPT
    the javascript that defines the function changeImage() has been placed in <style type='text/css'></style> tags (xhtml QUOTED)
  • javascript not css it belongs in <script type='text/javascript'></script> tags
    there is nothing there that changes the image.
  • <script type='text/javascript'>
    function changeimage(obj) {
     if(obj.src='creek.jpg') {obj.src='dock.jpg';} 
    else {obj.src='creek.jpg';}
    }
    </script>
  • xhtml is stricter than html,
    <img /> not <img>,
    onclick="function" has to be quoted,
    inline javascripts end with a semicolon,
    get rid of the <a></a> around the <img /> it usurps the onclick function
almostbob 866 Retired: passive income ROCKS

change display:hidden; to display:none;

almostbob 866 Retired: passive income ROCKS

The options are not in alphabtical order,
keypress M is selecting items in the order they are coded
html, can't spell.

almostbob 866 Retired: passive income ROCKS

easyphp is an IDE integrated development environment for php, it contains a local server that can parse php files and support for php mysql html etc
to use it to locally view php files follow the instructions here http://www.easyphp.org/introduction.php
item 5. see the result

dreamweaver doesnt display php well (at all)

you can create a contect menu item for .php files 'open with easyphp' so you can just click on them in explorer

almostbob 866 Retired: passive income ROCKS

an iframe contains a complete file,
style references for the file within the iframe have to be included in the html of the file within the iframe
If you are accessing a file on another site, the file will use that other site's styles
If you are accessing a file on your own site, it may just require the link to the css file be updated (in the iframe file)