almostbob 866 Retired: passive income ROCKS

nope
they all produce pretty much the output of the DOS debugger,
the simplest byte level opcodes
the statements from a higherlevel source are lost, thats why assembler is so efficient
the Hello world in C or Pascal is very much larger, contains much of the source

almostbob 866 Retired: passive income ROCKS

the dis-assembler does not produce the same highlevel source code you had before you ran the assembly language compiler
it produces an intermediate opcode equal to each byte sequence within the exe
the traditional hello world program, is

;"hello, world" in assembly language for BeOS
;
;nasm -f elf hello.asm
;ld -s -o hello hello.o

section	.text
    global _start			;must be declared for linker (ld)

_syscall:			;system call
	int	0x25
	ret

_start:				;tell linker entry point
	push	dword len	;message length
	push	dword msg	;message to write
	push	dword 1		;file descriptor (stdout)
	mov	eax,0x3		;system call number (sys_write)
	call	_syscall	;call kernel
	add	esp,12		;clean stack (3 * 4)

	push	dword 0		;exit code
	mov	eax,0x3f	;system call number (sys_exit)
	call	_syscall	;call kernel
				;no need to clean stack

section	.data

msg	db	"Hello, world!",0xa	;our dear string
len	equ	$ - msg			;length of our dear string

compiles to 16 bytes, and decompiles to ~1K, without comments, every byte in a dword gets a separate push mov call sequence, every letter in the text

sergent commented: Helpful :) +0
almostbob 866 Retired: passive income ROCKS

if you dont tell them the code, only show them the output.....
will they notice

almostbob 866 Retired: passive income ROCKS

its easier to store unmanipulated unformatted data,
if the small local american site becomes a large global site there is less recoding of rigid code
the database is smaller by 2bytes, not a big thing for 10 records a big thing for many fields of millions of records
a datetime stamp takes 4bytes(?), a text date time takes
monday Feb 16 2011, 11:05:45pm (much more than 4) etc

<?php echo subst($_request['telephone'],0,3).'-'.subst($_request['telephone'],3,3).'-'.subst($_request['telephone'],6,4); ?>
almostbob 866 Retired: passive income ROCKS

http://www.w3.org/TR/i18n-html-tech-bidi/ the standard, resorts element order, so the menu buttons should adjust, home will become first on right, in rtl languages, and first on left in ltr languages

almostbob 866 Retired: passive income ROCKS

slopes works on my pc, no javascript so
it is a css menu, triggered on the :active psuedo state instead of the :hover pseudo state
the html is just text, the smarts is in the css
something that operates on focus, on an element id inside a containing element
re-examine the css that is bundled with the script, or post it here

almostbob 866 Retired: passive income ROCKS

if it works, please click solved
I get an attaboy

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

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

often get gremlins
<link rel="stylesheet" type="text/css" href="style.css" />
mYay fail when
<link rel="stylesheet" type="text/css" href="./style.css" />
works

almostbob 866 Retired: passive income ROCKS

<a name="coats"></a>
?

almostbob 866 Retired: passive income ROCKS

did you remember the bang in line 46,
if(selectArrayId[x] != excludeId)
without it the function would do the opposite

bang, ! <--- that thing

almostbob 866 Retired: passive income ROCKS

thats useful code, which I have added to my samplelist, than kyou
but not intuitive naming, in 18months time when there is a rewrite function disable(element) may cause programmer errors, why not function disableallother(element) is there a length limit to variables in javascript that I missed or some such

almostbob 866 Retired: passive income ROCKS

looking at your code above notice the color changes where the variables are all messed up by incorrect quotes

<html>
<head>
<script type="text/javascript" src="coomang.js"></script>
<title>JS COOKIE MANAGER</title>
<link rel="stylesheet" type="text/css" href="coomang.css"> </link>
<script type="text/javascript" >
function loadcontent()
{
var x= "<div class="general">";

first error shows in lline 9, cant include dquotes inside dquotes unless they are escaped use var x = "<div class='general'>"; all the way thru the file, fix the quotes
to prevent this recurring every time, get a decent editor with code highlighting, which will show you your errors, in the same way, by color changes
notepad+ notepad2 spring to mind
its a simple error that everyone makes the first few times

<html>
<head>
<script type="text/javascript" src="coomang.js"></script>
<title>JS COOKIE MANAGER</title>
<link rel="stylesheet" type="text/css" href="coomang.css"> </link>
<script type="text/javascript" >
function loadcontent()
{
var x = "<div class='general'>";
almostbob 866 Retired: passive income ROCKS

in the example there is no reference to background,
the background property does not do what you intend, probably supposed to, but,,,
background is static and does not play swf or animation or vid

you are, in essence, faking it
create an ordinary player element and give it style that makes the player sit behind other content and fixed PLAYERelement {z-index:-100; position:fixed; left:somethingX; top:somethingY;} where the element id='PLAYERelement' is whatever code it would require to embed the swf in the page

something along the lines of

<dtd>
<html>
<head>
<style type='text/css'>
PLAYERelement {z-index:-100; position:fixed; left:somethingX; top:somethingY;}
</style>
</head>
<body>
<div id='PLAYERelement'><!-- code to embed .swf --></div>
<div> bla bla bla rest of page
bla bla bla</div>
</body></html>

the rest of the bla bla bla should scroll over the embedded player, which has the appearrance of a background
couldnt be bothered looking up the swf player code, likely the player itself can be given the id and styled without requiring the enclosing <div>

almostbob 866 Retired: passive income ROCKS

yes, something nobody ever gets, until the second time, then its a 'headslap moment' 'how did I miss that' do not use the background property of the body, background does not do much
the z-index example above allows you to do it with a positioned div,p,player,any element

"simple items as background"

"complex items as css z-index layers not as background, because background at the moment cant play animations, or do much other than sit there"

give your swf player the css in the example should (fingers_X) work

almostbob 866 Retired: passive income ROCKS

set in css, for simple items as background,
for complex items as css z-index layers not as background, because background at the moment cant play animations, or do much other than sit there
but examine the z-index property, default z-index is 0
higher z-index sits above,
lower z-index sits below in the page
so if you style an element

element {z-index:-100; position:fixed; top:somethingX; bottom:somethingY;}

it will sit at position somethingX,somethingY behind other content, while the rest of the page scrolls,
"element" can be a player, image, div, pretty much anything

almostbob 866 Retired: passive income ROCKS

You had this to display the image.

background: url("h1.png") no-repeat scroll left top transparent;

You ad this to link the image:

background-image:url(http://yourlink.com);

Ps. I see your site on your last post linked is off.

Please ignore this BS
background is a shorthand entry for all the separate css properties applicable to background, and does NOT link the image
body {background:#ffffff url('img_tree.png') no-repeat right top;}

almostbob 866 Retired: passive income ROCKS

to stay put

#footer { height: 150px;margin-top: 0px;margin-bottom: 0;text-align: right;clear: both;	background-repeat:no-repeat;background-image: url('bg_body_2.jpg');background-repeat: no-repeat;	}

could include instructions to keep it fixed and at the bottom of the page

#footer { height:150px;margin-top:0;margin-bottom:0;text-align:right;clear: both;background-repeat:no-repeat;background-image:url('bg_body_2.jpg');bottom:0;position:fixed;}

zero px is not valid in css, you missed one at 'margin-top' in your cleanup.

Production code is not indented or formatted, whitespace is useful for those developers who have not discovered code highlighting editors yet, but useless in production code it just adds extra download time, often 40-50% of html css js files is whitespace, that the browser doesnt need

almostbob 866 Retired: passive income ROCKS

no issues, css '%' requires numeric values, **.** is valid numeric so will be properly interpreted, (even by IE) to the limits of the browsers implementation (IE very limited)

by satphone from outback queensland, month 2/8 holiday, fanbloodytastic

almostbob 866 Retired: passive income ROCKS
<script type='text/javascript'>
<!--//
if (window != top) { top.location.replace(self.location.href); }
//-->
</script>

put a framebreaker in the head of the page you wish to ensure is n ot in the frameset. the above codescrap is one,

almostbob 866 Retired: passive income ROCKS

if you waqnt it to work as expected you have to declare it as expected

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
diafol commented: good spot AB - whether or not it solves his prob +6
Night N Gail commented: Thank you very much for the help. +0
almostbob 866 Retired: passive income ROCKS

firefix opera safari have 'thumbdrive' versions, no-install versions that allow yout to have all the major engines installed

via best western hotels, stuck waiting for hurricane to leave

almostbob 866 Retired: passive income ROCKS

edit the table, to add a new column as a date,a nd store the timestamp, not any text representation.as php date() or mysql now()..
a text date is bigger, size matters in the opposite way
a timestamp is faster
a timestamp is easier to select date or time ranges "where date > number and date < number2"
the database is for computers, human readability is a liability, it causes errors, 10/7/11 can be 10 july 2011, 11 july 2010, 7 october 2011,
the information can be simply printed in human readble form on output, using something like cyberspatium's code sample
NOTE:not bagging prior poster;sample is accurate, even customizations to individual user regional preferences, based on this code, so that americans will see 10/7/09 and english will see 7/10/09 on the same day 7 October 2009;

it does not matter when there are ten records in the db, it begins to matter when there are ten thousand records in the db, timeout failures when there are ten million records in the db, unless you optimize the system at the start

anyhow, if you store a text date, how do you simply select between april 1 and august 15 at 3 pm last yeqar

almostbob 866 Retired: passive income ROCKS

NO it is not a good idea to separate scripts based on expected location, adds processing, http calls filesystem fetches
the only reason to code anything in any manner is to improve speed-reliability-security.
separate as external files, things that will get reused, css javascripts,
keep as internal to the file, things that are just for that file
There are php scripts made up of multiple external files,(PHPBB example, hundreds of script files) done that way for easy maintainence, improved usablility, upgradability
but somewhere, somehow, the scripts must output html or they do not display, you cant separate html from php completely
function is king, if what you do does not make it function better, dont do it.

almostbob 866 Retired: passive income ROCKS
<dtd with all the doo dah>
<html>
<head>
<!-- bla bla -->
</head>
<body>
<?php /* huge amount of php script, 
perfectly OK,  
user does not see the php, only the output of the script after it is completed */ 
echo '<p>this is visible</p>';
?>
<!-- more html -->
</body>
</html>

user sees

<dtd with all the doo dah>
<html>
<head>
<!-- bla bla -->
</head>
<body>
<p>this is visible</p>
<!-- more html -->
</body>
</html>
almostbob 866 Retired: passive income ROCKS

Please help me how to hide table set of rows from print..??

read the prior posts <tr class='dontprint'> wiping your behind for you incurs extra charge

almostbob 866 Retired: passive income ROCKS

a method
for logged in users, the uploaded image url is stored in the db and put into style.css.php on each login from either cookie or session details
of course the first lines of style.css.php look something like

<?php header ('content-type:text/css'); 
ob_start("ob_gzhandler"); ?>/*<style>*/
@media all { .dontall {display:none; } }
@media print { body { line-height:100%; font-size:10.5pt; font-family:verdana, arial, sans-serif; }
.dontprint { display:none; } }
@media screen { .dontshow { display:none; } }
a { text-decoration:none; }
a:hover { background-color:#66cdaa; text-decoration:none; } 
a:focus { background-color:#66cdaa; text-decoration:none;}
a:active { background-color:#66cdaa; text-decoration:none; }
body { background-color:#f6f6f6; body {background-image:url('<?php if(!$_SESSION['bg']) {echo 'paper.png';} else {echo $_SESSION['bg'];} ?>');} color:#000000; font-family:verdana, geneva, arial; margin-left:3%; margin-right:3%;}
/*   bla bla */
<?php ob_flush(); ?>

in the above case, the stylesheet is linked as <link rel="stylesheet" type="text/css" href="http://www.mysite.com/style.css.php"> the gziphandler speeds download of the css file, which is a great candidate for compression the file is large, and contains much repeated strings

almostbob 866 Retired: passive income ROCKS
$album_num = mysql_num_rows(mysql_query("SELECT * FROM albums WHERE userid='%s'",$id));

mysql_query takes sql syntax, not php syntax.
not a guaranteed solution I dont work much in sql either

almostbob 866 Retired: passive income ROCKS

.dotnet, Microsoft servers, such a very small %age of clients possible, but many of those clients are large and require large maintainence contracts, because the type of product they are, but the larger they are the more likely they are locked into maintainence agreements, proprietary codebase -more difficult to outsource
java a slightly larger %age of customers

Apache *n?x (Linux Unix PosIx all the possible combinations) php RoR a very much larger %age client base, often of smaller clients who each require smaller amounts of maintainence
large resource availablility, can integrate into finished work

sql, as mssql mysql sqllite PostgreSql needed for all

.dotnet and java alone, unless you are real good, and real lucky, starvation status

Re: Teedoff's post below server use list Aug 2010

Lusiphur commented: What he said :P +1
almostbob 866 Retired: passive income ROCKS

Does this work on external servers? I'm making an app for bebo and using their API all i get is the URL's of the images. Can I use the URL provided in this method?

It would have been nice, intelligent, logical, to include this nugget, gem, of information in the initial post

http://developer.bebo.com/downloads/example-libs-php.php at http://developer.bebo.com/ $bebo->photos_get(); is the part of the API you're interested in,
most file servers are configured to block external access, BUT bebo apps like facebook apps run on the bebo server so should work

almostbob 866 Retired: passive income ROCKS

Its easy if you use a premade gallery script, you dont have to use the script as your script, but it may provide insight to methods to accomplish what you intend <a href='download.php?img=thisimage.jpg'><img src='thisimagethumb.jpg' /></a> download.php

<?php if(!$img) return false;
header("Content-disposition: attachment; filename=$img");
header('Content-type: image/jpeg;');
readfile("$img");
?>

Pisspoor code, but it may provide a starting point

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

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

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

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

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

almostbob 866 Retired: passive income ROCKS

I can navigate to your profile page in Daniweb,
I can view it, unless I am logged in as you I cant edit it,

this is what user control scripts do.

I cant be sure, .htaccess mod_rewrite is seamless invisible to the user, but it is hugley unlikely that Daniweb keeps 500000 odd static html pages, when the database can fill in the blanks in a template page so easiliy

RewriteEngine On
RewriteRule /profiles/(*).html /profiles.php?user=$1 [R,NE]

(untested possible syntax errors too lazy to check the format) should redirect all /profiles/xxxxx.html to profiles.php?user=xxxx , its as simple as that