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

netbeans DevPHP wordpress coppermine Notepad2 notepad++

almostbob 866 Retired: passive income ROCKS

wordpress, rock solid and idiot proof, and more than you need just for photo display

almostbob 866 Retired: passive income ROCKS

I have in use a php sql freeware script coppermine photogallery, http://www.coppermine-gallery.net only because I didnt need any other of wordpress's features, if there were to be any input other than photos, captions, it's in wordpress

almostbob 866 Retired: passive income ROCKS

hazy memory...

span is an inline item and inherits the line height and vertical margins of its parent block element, and appears in the flow of text.
to use other css effects not applicable to inline items, example absolute positioning, add display:block; to the css for this span

almostbob 866 Retired: passive income ROCKS

Go to the google webmaster page and RTFM

almostbob 866 Retired: passive income ROCKS

agree with ps3
go to the google webmaster page and read the instructions
there is a good discussion byu google on what works

almostbob 866 Retired: passive income ROCKS

if it works, please click solved
I get an attaboy

almostbob 866 Retired: passive income ROCKS

0px is deprecated, zero is dimensionless, 0px puts compliant browsers into quirks mode and may be causing problems
1px <> 1em <> 1% <> 1pt <> 1in <> 1cm <> 1apple
0px = 0em = 0% = 0pt = 0in = 0cm = 0apple and is written 0

for validation problems these standard test beds may assist you Speed http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/

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

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

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

other browsers http://www.browsershots.org

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 [b]not[/b] work ... .. in all browser OS combinations

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

almostbob 866 Retired: passive income ROCKS

geez bloke I was agreeing with you, well at least I intended to be agreeing with you,

the plugin used to do it, comes to which is easier to install and use

almostbob 866 Retired: passive income ROCKS

You are doing it wrong, you are setting headers for the page, then sending the user elsewhere...

You need to set the headers, then do a readfile if you are opening a file

bloke, the op is asking what the headers do, giving specific examples, we could have "let me google that for you" or sent him to read the manual http://php.net/manual/en/function.header.php but he showed some effort, has been examininig the source

almostbob 866 Retired: passive income ROCKS

there is no doctype declaration in the html
without a doctype the browser is free to interpret the code any way it chooses, each browser, and each version within each browser, has its own default doctype to use.

almostbob 866 Retired: passive income ROCKS

bbcode is better than allowing html, an interestingly crafted entry, and your site goes fubar, uscwap
the plugin used to do it, comes to which is easier to install and use

* f_cked up beyond all recognition
* up sh_t creek without a paddle

almostbob 866 Retired: passive income ROCKS
header("Content-type: $contenttype"); //to ensure the receiving pc can display the developed page in the correct way, the content type may be different for each object pulled from the database
header("Content-type: image/png"); //to ensure the receiving pc can display the developed page in the correct way, the normal content type for served php pages is text/html, likely the original did not have a dollar sign
header("location:bird.php"); // this one i understand, yep redirect
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache"); //each of these three to ensure the browser reloads the item from the server, make sure of the most recent version, expired 20 years ago, nocache for each of the two major object models
almostbob 866 Retired: passive income ROCKS

there is a plugin, bbcode, that you may be able to install and use, it is the one used on this site that allows bold underline color and the [code=language] syntax highlighting [/code] that makes the site easier to read

almostbob 866 Retired: passive income ROCKS

properly declare a doctype >4 and css positioning works ie::html 4 4.01 5 xhtml1

<!DOCtype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type='text/css'>
.fixtop { top:0;right:0;position:fixed;z-index:-100; }
.fixbottom { bottom:0;right:0;position:fixed;z-index:-100; }
</style>
</head>
<body>
<body topmargin="0" leftmargin="6"> 
<img src="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Sunset.jpg" width="1024" height="126">
<body bgcolor="#FFE193">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" align="left" valign="top">
<table border=0 width="500" align="leftcorner" bgcolor="#CDDFFF">
</tr>
<tr>
<td colspan=2 style="font-size:12pt;color:#00000;" align="center"><font size=5> Search Employee</font></td>
</tr>
<tr>
<td><b> Employee Name</b></td>
<td>:
<input  type="text" name="emp_name" id="emp_name"></td>
</tr>
<tr>
<td><b>Department</b></td>
<td>:
<input  type="text" name="emp_dept" id="emp_dept"></td>
</tr>
<tr>
<td><b>Email</b></td>
<td>:
<input  type="text" name="email" id="email"></td>
</tr>
<tr>
<td colspan=2 align="center"><input  type="submit" name="submit" value="Search"></td>
</tr>
</table>
</td>
<td width="2%">&nbsp;</td>
<td width="28%"><table width="100%" height="180"  border="0" align="rightcorner">
<tr>
<td align="top" height="135" valign="top">
<!-- I just hate these *expletive* things
<marquee height="150" align="left"  direction="up" scrollamount="2" scrolldelay="1" onMouseOver="this.stop()" onMouseOut="this.start()">
<a href="news.asp" class="more">Faith InfoTech Academy for Professional Advancement starts operations at Technopark<b></a><br/>
<br/>
<a href="news.asp" class="morelink">Faith InfoTech Academy for Professional Advancement starts operations at Technop...</a><br/>
<br/>
<a href="news.asp" class="more">Mr. R. Narayanan joins Faith InfoTech as Chief Mentor and Director.</a><br/>
<br/>
<a href="news.asp" class="morelink"><b>Mr. R. Narayanan joins Faith InfoTech as Chief Mentor and Director.</b><br>
...</a><br/>
<br/>
<a href="news.asp" class="more">Faith InfoTech engaged by RevenueMed to deliver training in IT enabled health services.</a><br/>
<br/>
<a href="news.asp" class="morelink"><b>Faith InfoTech engaged by RevenueMed to deliver training in IT enabled health...</a><br/>
<br/>
</marquee>---></td>
</tr>
</table></td>
</tr>
</table>
<div class='fixtop'> this text will stay put<br/> and the rest of the page will scroll around …
almostbob 866 Retired: passive income ROCKS

fgetcsv()

almostbob 866 Retired: passive income ROCKS

If this is the same css that is set with fixed margins and position:absolute, of course it stayed put, absolute means STAY PUT, if you want it to move it can't be fixed or absolute

almostbob 866 Retired: passive income ROCKS

I dunno what the <b></b> means either, when I typed it in, and viewed the submitted post it said

javascript:history.go(-1)

in php
if isset($_server
checks for the existence of the referer in the server array, as you thought, some browsers do not send the referer , the link goes to the actual page if the page is known, or goes back 1 (change the number for two etc, if the page is unknown
non-validating, the variable $_server is not set until the page is referenced from another page that makes the first choice wrong, and there is no history in the validator so that makes the second choice wrong, on an active page there will (should) be oine or the other,
I prefer the 'ralph' method, ralph and fred becuase I did not know the form name on your submission page, explicitly declaring the refering page in the $_post array, so that it accessible to the later processing file
which works even when you get to generation2 of the website and the questionaire form becomes an include file that you just lump in anywhere you want the questions to appear

almostbob 866 Retired: passive income ROCKS
.container { width:100%;text-align:center; }
.cc_menu{ font-size:14px;text-transform:uppercase;color:#fff; overflow:hidden; }
<div class='container'><div class='cc_menu'> menu </div></div>
almostbob 866 Retired: passive income ROCKS

javascript does not work, more users have javascript turned off as a securtity measure, any site that depends on javascript will fail

pixels are not the same size,
each generation of monitor has a higher resolution so a smaller px size, all the fixed size sites are getting smaller and smaller

it may take time to learn to use current best practice, the alternative is failure

almostbob 866 Retired: passive income ROCKS

or css style the <a>nchor to look like a button

almostbob 866 Retired: passive income ROCKS

I am fundamentally lazy, so goto somewhere like www.cssmenu.com and download one of their free scripts, and see how they did it, then do your own

almostbob 866 Retired: passive income ROCKS
<?php if (isset($_SERVER['HTTP_REFERER'])) { echo "<a href='$_SERVER['HTTP_REFERER']'>back</a>"; } else { echo "<a href='javascript<b></b>:history.go(-1)'>back</a>"; }?>

Will take it back or make the url on the link that submits the form include $_server['PHP_SELF'] as part of the array and redirect to the value passed to the form handler
example

<form action='fred' method='post'>
<input type='hidden' name='ralph' value='<?php echo $_server['PHP_SELF']; ?>'>
<input all the other garbage></form>[/code][code=php]<meta http-equiv="REFRESH" content="5;url=<?php echo $_post['ralph']; ?>">[/code]
//bla bla bla
something $_post['ralph'];

Did not even write the code out something similiar can be done with http_referer but not all browsers send the referer

almostbob 866 Retired: passive income ROCKS

havent looked at your menuy css, but my menu is unordered lists with css hover effects, the standard css menu (from cssmenu.com thanks guys blatant plug I am not affiliated with cssmenu in any way)

<style type='text/css'>//partial code sample
.menu { width:100%; text-align:center; } //the outer container is set to occupy the whole window width and texst-align works on all elements within
.menu ul { // bla bla bla the menu items are styled for drop down effects
</style>
<div class='menu'>
<ul><li>Menu 1</li><li>Menu1.1></li><li>menu1.2</li><li>menu1.3></ul>
<ul><li>Menu 2</li><li>Menu2.1></li><li>menu2.2</li><li>menu2.3></ul>
<ul><li>Menu 3</li><li>Menu3.1></li><li>menu3.2</li><li>menu3.3></ul></div>
almostbob 866 Retired: passive income ROCKS
<?php
//bla bla bla
$airtype = array("clr" => "clearance","twr" => "tower", "gnd" => "Ground", "dep" => "departure"); //etc
echo $rows['airport']." ".$airtype[$rows['type']];
?>

pulls the value from another array, perhaps

almostbob 866 Retired: passive income ROCKS

Let me google that for you


encript your email address, anything you put in clear is read by bots for spammers

there are multiple captcha scripts for download
cmon ya got to laugh at the animation

almostbob 866 Retired: passive income ROCKS

wrap your code in [code=language]codesample [/code] makes it easier to read, turns on code highlighting, sometimes the highlights can solve the problem, they show up mismatched braces miss-spelled codewords etc

your code wrapped in [code=php]

<?php
$con = mysql_connect("localhost","eduardli_user","-z.x,c");
if (!$con) { die('Could not connect: ' . mysql_error()); }
$description = $_POST["description"];
$price = $_POST["price"];
$quantity = $_POST["quantity"];
mysql_select_db("eduardli_company", $con) or die(mysql_error());
mysql_query ("INSERT INTO Products (description, price, quantity) VALUES ('$description', '$price', '$quantity')")
 or die(mysql_error());
$latest="select * from Products order by serialno desc limit 0,1";
$result = mysql_query($latest,$con) or die(mysql_error());
$row = mysql_fetch_array($result);
{ echo $row['serialno.'] . " " . $row['description'] . " " . $row['price'] . " " . $row['quantity'];
echo "<br />";
}
mysql_close($con);
?>

assuming serialno is the autoincrement field
try

$latest="select * from Products order by serialno desc limit 1";

select the first 1 result,
the original code chooses the first result starting at record(0), which is always equal to record(0)

almostbob 866 Retired: passive income ROCKS

do some tutorials at w3schools, there are some code errors on the site but the code works, they arent affiliated with W3.org
then think of what you want to do, and google for the code samples, then edit them and make the samples exactly your own
html is not enough for a modern web page, but the css javascript and serverside scripts are also in tutorials at many sites
remember that even code that doesnt work, does something, keep your failures, there will come a time when what the wrong stuff did is exactly what you want to do

almostbob 866 Retired: passive income ROCKS

I'm using feedreader its going to be either 1 or 2 on the google search, all you need then is the address of the rss feed, which you can get from the newssite

the prior post wasnt just a smartalec, I think the animated thing is cool

almostbob 866 Retired: passive income ROCKS

stop using pixels,
fixed measurements screw up as window or screen size changes
current best practice for dimensioning are em or % relative scalars that auto adjust to screen size window size and user preference

almostbob 866 Retired: passive income ROCKS
.col1, .col2, .col3, .cols { float:left;}

.col1{ width:404px;}
.col2{ width:230px;}
.cols{ width:177px;}
.main {	width: /*1280px;*/2000; /*border:4px solid yellow;*/}

best practice for css dimensions is ems and %, dimensions that auto adjust to screen size and window size, fixed dimensions, the px used in the stylesheets attached to trecall cause screensizes or window sizes other than that used to develop the site to display unexpectedly
the display is exactly as instructed, but the site author did not examine the effect of the css instructions
redo the css dimensions to add to a total of 100%, and the site will work in all screen and window sizes
users will follow the page down forever, but will not scroll sideways, mice dont have sideways wheels

almostbob 866 Retired: passive income ROCKS
<body><img src='C:\Documents%20and%20Settings\Prashanth.yatakeeri\Desktop\Winter.gif' width='100%' style='z-index:-1;' alt=''>

excusing inline style, get it out into css where it belongs

almostbob 866 Retired: passive income ROCKS

smarter? top members by rank lists,
you have 17 reputation points, congratulats, exceptional, impressive, way up there
I have 400, guess I'm not very good at this, retired at 38, not very smart either
the obscenity trap would excise my opinion, synonymic of donkey perferation

nowhere in the op, does it state that any attempt has been made, or what has been tried, or is there code supplied for comment
just another 'help me with my homework' question
you want good answers, ask good questions,

one of many possible solutions is not a background property at all,
a full size image with z-index<0 to put it behind all other content, giving the appearance of a fullscreen background even in IE<8

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

Google, are in the dictionary, web search,
carry over 75% of all search traffic,
and because of this overwhelming presence, Google make "the rules",
follow the rules

Content is King,
xml sitemap
properly valid html xml css

24hour magic sites, get blacklisted
link exchange farms, get blacklisted
SEO tricks, get blacklisted

getting back into google, is much more difficult than getting into google

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

well aint that a headslap moment,
Ya know, I got a pig smarter than that

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

Don't:
•Manipulate the logos unless necessary due to color restrictions (for example, black and white)
•Imply sponsorship, endorsement, or false association with Twitter, Inc.
•Use the Twitter bird as a spokesperson to carry your logos or messaging (for example, your logo next to or being carried by the bird).
•Use anything other than the most current versions of the Twitter logos.
•Use any other artwork from our site without explicit permission.
•Create your own buttons or marks using our logos.
--snip--
Other Things to Know about the Twitter Trademarks
The Twitter name, logo, Twitter T, Tweet, and Twitter bird are trademarks of Twitter, Inc. in the United States and other countries. Please do not use the Twitter marks in your avatar or business icon. Please remember to capitalize the T in Twitter and Tweet! For further information about use of Twitter’s name and trademarks, please contact trademarks at twitter.com.

depends whether you think twitter legal dept will eventually trace incoming links for permitted usage
Not a risk I would take either, if the client insists get them to sign a release absolving you from responsibility for their choice

almostbob 866 Retired: passive income ROCKS

<input type=button value="Back" onClick="history.go(-1)">

<?php if (isset($_SERVER['HTTP_REFERER'])) { echo "<a href='$_SERVER['HTTP_REFERER']'>back</a>"; } else { echo "<a href='javascript:history.go(-1)'>back</a>"; }?>
almostbob 866 Retired: passive income ROCKS

runs very nicely under php, on apache, in my application immediately after the uploaded dbf is verified for structure.

almostbob 866 Retired: passive income ROCKS

http://3d2f.com/programs/18-270-dbf-to-sql-download.shtml mAY HELP

woz gunna edit the text and put the capslock off, but didnt

almostbob 866 Retired: passive income ROCKS

dammin none of this means I am old

title   Hello World Program                             (hello.asm)

dosseg
.model small
.stack 100h

.data
hello_message db 'Hello, World!',0dh,0ah,'$'

.code
main  proc
      mov    ax,@data
      mov    ds,ax

      mov    ah,9
      mov    dx,offset hello_message
      int    21h

      mov    ax,4C00h
      int    21h
main  endp
end   main
almostbob 866 Retired: passive income ROCKS

The wonders of scripting, perhaps have the link be smarter, in something like

<a href='login.php'> //be something like
<a href='login.php?refer=<?php echo $_SERVER['PHP_SELF']; ?>'>

and have the login page return to the supplied parameter

almostbob 866 Retired: passive income ROCKS

you dont listen to loud music anymore

& when you have to listen to loud music

almostbob 866 Retired: passive income ROCKS

I am far right of republican, mensate, non-American, if you prefer, the US school system produced Paris Hilton, and Dubya.
A school system that has not some oversight authority produces graduates who are illiterate, without any personal disparagement, Americans can't find Europe on a map of Europe

almostbob 866 Retired: passive income ROCKS

A repeat of a prior post,

<img width='100%' src= ...such a lot of unneccessary ** expletive deleted **

set the image width in %, the height will adjust to retain the proportion of the image, there is no need of javascript, which will not work in any browser that is secure, or any special sizing.
If you want the image the size of the window 100% or any fraction thereof

almostbob 866 Retired: passive income ROCKS

When you remember having milk delivered to the door by a milkman in a horse-drawn wagon [but it's not as long ago as you might think].

When you had a job delivering milk in a horse drawn float before high school
(it just seems as long ago as you might think)

almostbob 866 Retired: passive income ROCKS

<img width='100%' src= .....
such a lot of unneccessary ** expletive deleted **

diafol commented: say it like it is AB! +9