almostbob 866 Retired: passive income ROCKS

file saveas html

almostbob 866 Retired: passive income ROCKS

hard to test without seeing the code
but it is possible that the code includes the #code that generate Aumlaut in the character set displayed instead of intended character,
many page scripts use & #171;broken « to represent goto first page and & #187;broken » to represent goto last page
A- acute, greve, umlaut etc start at & #191;broken could just be a typo

almostbob 866 Retired: passive income ROCKS
<?php
/* form processing, captcha generate etc */ 
?>
<form action='<?php echo $_server['php_self']; ?>' method='post'><br>
bog: <input type='text' name='bog' value="<?php if(isset($_post['bog'] { echo $_post['bog']; } ?>"><br>
big: <input type='text' name='big' value="<?php if(isset($_post['big'] { echo $_post['big']; } ?>"><br>
<input type='text' name='captcha'><br>
<input type='submit' onclick='return(confirm("Are you sure?"));' value='Submit'>
</form>
almostbob 866 Retired: passive income ROCKS

have you tried uploading as .rtf instead of .doc or .pdf
closer to html in styling, no multibyte characters, no ctrl characters, just the 128ascii set

almostbob 866 Retired: passive income ROCKS
  1. the database is not connected
  2. no validation of input
  3. other input fields can be left blank
    on first load this
    $id=$_GET['id'];
    print "<form action='reply.php' method='post'>";
    print "<input type='hidden' name='id' value='$id'>";

    does nothing

there are 6 fields, and as few as 3 in $_post and calculated data

wont mention using two text strings for timestamping, how slow and unneccessary 35 characters string instead of 10 digit number now() formatted on output with php native time() functions

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

once the id topics are grouped the individual id_msgs may not be available for sort
perhaps what you want is

SELECT id_topic, subject FROM smf_messages WHERE  id_board=$bolum ORDER BY id_topic, id_msg DESC
almostbob 866 Retired: passive income ROCKS

a thread titled Do you Believe in evolution has to be a 'god thread' somewhere in its passage
I don't think that evolution and intelligent creation are exclusive of each other
Big Bang, could be an appropriate appelation for a godhead
and
There is nothing to suggest that a deity of some stripe didnt just decide to start the ball rolling and leave it go. resulting in the current crop of mutations, thats the other part of omnipotence, big bang, is a party trick

or that existence wasnt just sneezed out of the nose of the great green arkelseizure

almostbob 866 Retired: passive income ROCKS

two ways(of many)

<form <!--etc-->>
<input type='checkbox' name='check0' value='apple'>apple<br>
<input type='checkbox' name='check1' value='banana'>banana<br>
<input type='checkbox' name='check2' value='orange'>orange<br>

<input type='checkbox' name='bannana' value='yes'>banana<br>
<input type='checkbox' name='orange' value='yes'>orange<br>
<input type='checkbox' name='apple' value='yes'>apple<br>

<input type='submit' onclick="return(confirm('sure?'));">
</form>
almostbob 866 Retired: passive income ROCKS
(document.getElementById) ? dom = true : dom = false; //test if IE
function hideit(id) {
 if (dom) {document.getElementById(id).style.visibility='hidden';} //ie
 else {document.layers[id].visibility='hide';} } //firefox
function showit(id) {
 if (dom) {document.getElementById(id).style.visibility='visible';}//ie
 else {document.layers[id].visibility='show';} }//firefox

generic show/hide script works in firefox opera ie
usage
hideit('addbook')
showit('addbook')

almostbob 866 Retired: passive income ROCKS

Five senses - I think if all species have around five senses then that would support evolution because why wouldn't a creator create some species with 20 or 30 senses?

fish, and birds, 'see' magnetism
may or may not be that our senses can't detect the senses that other creatures may or may not be using.
Ghosts,
If ghosts existed there would be standing room only for ghosts only, billenia of ghosts would be stacked on top of each other, hominid ghosts, erectus ghosts, cromagnon ghosts, ghosts of every religion, ghosts in every location.
ghosts persist in the folk tales of every society even those uncontaminated by contact with any other, and behave(if existing) in similar fashion in all tales.
there are occurrences that arent adequately explained by physical laws as we know them. shamen, healers,
there are fake TV evangelists, who if god(s) existed would be burned to a crispy critter by lightning in the middle of the broadcast, by the tenets of the religion they preach.
What happens to elder gods, do they retire after a few years, out of boredom.
baal aten mars odin jupiter, had a pretty good thing going, but now?
and why three religions all worshipping the same god, spend so much time killing 'for my god' the others.

what do(es) god(s) get out of worship
If omnipotent omniscient what benefit do you get

Rashakil Fol commented: Learn how to hit the shift key. -2
almostbob 866 Retired: passive income ROCKS

Carry your 'solution' to its end
The business expands the web site has multi millions of users
the database is gigbaytes larger than it need be
operations that should take microseconds very much longer
The correct solution is always to use the software as it was designed to be used
not to use a construct to repair another construct
cast(RTime as smalldatetime)
is several orders of magnitude slower than
time()
get the design right, is better than get the wrong design working

almostbob 866 Retired: passive income ROCKS

the database is meant to be machine readable
human readable data constructs just *expletive deleted* the data
time is not a character string
time is, int, numeric result from the time functions (seconds from 0.00 1 jan 1970).
sql (php asp perl flex) time functions convert human readable day month year strings to timestamps to be stored in the database
timestamps are faster smaller easier to correctly manipulate
change your database to properly store the 'unix' timestamp and format to human readable in the output script

sql now() time()
php time() mktime() strtotime()
asp time() date()

almostbob 866 Retired: passive income ROCKS

Nope, but unless it turns out to be Kali, I haint done nothin to noone that would send me to any purgatory

almostbob 866 Retired: passive income ROCKS
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01  Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<script language="javascript" type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false;
function hideIt() {
 if (dom) {document.getElementById("layer1").style.visibility='hidden';}
 if (document.layers) {document.layers["layer1"].visibility='hide';} }
//--></script>
</head>
<body onload='setTimeout("hideIt()",1000);'>
<div id="layer1" >this is a div that will show till the page is loaded +1 second (see timeout above)</div>
as;lkjasd bla bla blah this is the reast of the page
</body></html>

I use this script
hideit showit declared twice for mozilla and IE DOMs
the external javascripts actually define as
hideit(id) asnd showit(id) as a generic hide/show script

(document.getElementById) ? dom = true : dom = false;
function hideIt(id) {
 if (dom) {document.getElementById(id).style.visibility='hidden';}
 if (document.layers) {document.layers[id].visibility='hide';} }
function showIt(id) {
 if (dom) {document.getElementById(id).style.visibility='visible';}
 if (document.layers) {document.layers[id].visibility='show';} }
onResize="window.location.href = window.location.href"
almostbob 866 Retired: passive income ROCKS

The code below is a popup layer, for mozilla/firefox dom and IE dom, so you will see each action declared twice for the different DOM.
Its a script included in the pages for certain properties, I manage apartments and houses, creates a button that shows or hides a layer containing text onclick.
the layer/window remains in position on screen untill the viewer actually clicks 'close'.
class='top/bottom' in the script are just the color schemes of the layer, different to the site scheme so that it looks like a different window, described in the external css file, they werent necessary to put in for function

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01  Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<script language="javascript" type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false;
function hideIt() {
 if (dom) {document.getElementById("layer1").style.visibility='hidden';}
 if (document.layers) {document.layers["layer1"].visibility='hide';} }
function showIt() {
 if (dom) {document.getElementById("layer1").style.visibility='visible';}
 if (document.layers) {document.layers["layer1"].visibility='show';} }
onResize="window.location.href = window.location.href"
//--></script>
</head>
<body>
<button align="center" onClick="showIt();">Important Information</button>
<div id="layer1" style="position:fixed; left:20px; width:45%; top:20px; visibility:hidden;"><!--Had to include the style from the ext sheet, else it would not be recognisable that this div will remain in place over the other layers until closed-->
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td Align="right" onClick="hideIt()" class="top">
<font Color="#ffffff"><Strong>Close</strong></font>
</td>
</tr>
<tr>
<td class="bottom">
<center><font size="+1"><b>Single Dwellings</b>:</font></center>
Tenants &amp; Residents of Single homes have different responsibilities to Tenants &amp; Residents of Multi Unit Residential Developments.
<UL compact>
<li>The tenant is required to have current adequate …
almostbob 866 Retired: passive income ROCKS

Now we're closer
and the fix is probably easy (not maybe for you and me but there are code gurus)
Post the wrong code in tags, and 99% likely someone will be able to debug the error if there is a result, the form is likely ok if there are wrong results, the back end select function needs some tweaking something like a wrong expression used to select $price < 50 $price > 30[code=language] tags, and 99% likely someone will be able to debug the error
if there is a result, the form is likely ok
if there are wrong results, the back end select function needs some tweaking
something like a wrong expression used to select $price < 50 $price > 30

almostbob 866 Retired: passive income ROCKS

I wouldn't agree with that, yes, a lot of creationists just don't want to hear any contrary theory or explanation but, there are a few eminent scientists who are just as closedminded, when their theories are questioned. On a fairly recent radio broadcast, Richard Dawkins, the eminent Engllish scientist and Darwinian scholar, said this: "Darwin solved all the mysteries of existence; all that we know about life, marine, animal, human etc". "Darwin, through his science lost his faith, he discovered the superfluousness of a creator" On a recent BBC TV programme, which I saw, he said, in effect, we have took God out of the equation, we have given you the knowledge of how the world is, so go and use it. Charles Darwin, undoubtedly, contributed enormously to our understanding of of life on Earth, he didn't say their was no creator, he called himselg an agnostic (one who does not accept the traditional icea of God/Creation). Richard Dawkins is an unquestionable heavyweight in the sceintific world, and science , in general, has increased our understanding of ourselves and the Universe but, sweeping statements like: "the superfluousness of a creator", "explained all the mysteries of existence", and then adopting the role of "Masters Of The Universe" while giving us the Big Bang Theory, chance and chemical reaction, to explain all the rest, only proves, like the rest of us, they have got 'feet of clay'. The Universe is a lot more sophisticated than that.

Thats a scary quote,
add …

almostbob 866 Retired: passive income ROCKS

its for a ms access database and php, i want customers to be able to select or tick various things they want in our services and when they click the submit button depending on the things they selected our database should return two of our package that will best suit them

And you want to do this without even knowing how to create a form,
Before you begin, you need to read a lot, and practice on a dummy dataset
you need the details on how to connect to your database and pull information from it, and you want relational logic to select the best matches
this is not a trivial exercise
'best match' is a very difficult logic to implement

almostbob 866 Retired: passive income ROCKS
<?php if($_POST){
echo 'submitted were<br>';
foreach ($_POST as $key => $value) {
echo $key." value ".$value.'<br>';} }
?>
<form action='<?php echo $_SERVER['php_self']; ?>' method='post'>
choice 1<select name='1'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select> &nbsp;
choice 2<select name='2'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select> &nbsp;
choice 3<select name='3'>
<option value='big'> big</option>
<option value='blue'> blue</option>
<option value='marble'> marble</option>
</select><br>
Is AlmostBob a smartass<input type='radio' value='yes' checked='checked' name='radio'> Yes <input type='radio' value='no' name='radio'> No<br>
<button TYPE="submit" name="submit" value="submit" onclick="return(confirm('Are you sure,\nthis is such a **example'));">Submit</button> one kind of submit button<br>
<input type='submit' onclick="return(confirm('Are you sure you want \nto destroy all life?'));" value='exterminate'> another kind of Submit button<br>
</form>

How many forms do you want to know how to build
or should you just go to the w3c tutorial page at http://www.w3.org/TR/html401/interact/forms.html

darkagn commented: Haha, I particularly like the 'Exterminate' submit button :) +3
almostbob 866 Retired: passive income ROCKS

access & asp, or php?
this is the php forum, here is a php solution to the question asked, no database mentioned in the op, what are you actually looking for

<?php
if($_POST){
echo 'submitted were<br>';
foreach ($_POST as $key => $value) {
echo $key." value ".$value.'<br>';} }
?>
<form action='<?php echo $_SERVER['php_self']; ?>' method='post'>
<input type='checkbox' value='yes' name='1'> checkbox 1<br>
<input type='checkbox' value='yes' name='3'> checkbox 3<br>
<input type='checkbox' value='yes' name='5'> checkbox 5<br>
<input type='checkbox' value='yes' name='7'> checkbox 7<br>
<input type='checkbox' value='yes' name='9'> checkbox 9<br>
<input type='radio' value='yes' name='10'> Yes <input type='radio' value='no' name='10'> No<br>
<button TYPE="submit" name="submit" value="submit" onclick="return(confirm('Are you sure, \nthis is such a trivial example'));">Submit</button>
</form>
almostbob 866 Retired: passive income ROCKS

"How to get exxed from search engine results"
"How to lose customers"
"How to avoid repeat visitors"

alternate titles to this thread,

almostbob 866 Retired: passive income ROCKS

Of course evolution is believable
Creationists are evidence that some of us are much closer to ape than others

almostbob 866 Retired: passive income ROCKS

put the <noscript> in the <head>
put a html redirect in the noscript

<head>
<noscript>
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/noscriptpage.html"> 
</noscript>
<!-- rest of file-->
almostbob 866 Retired: passive income ROCKS

do it ANother way
frameset instead of iframe
this is a file 'external.php' that we use to load outside files under a little header that says external file and a menu the file takes a parameter $ext that is the file to load

<?php ob_start('ob_gzhandler'); ?>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN' 'http://www.w3.org/TR/html4/frameset.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<Title>Linking <?php if(!$ext){$ext = '/home2.php';} echo $ext ; ?></Title>
<LINK rel='StyleSheet' HREF='/style.css.php' TYPE='text/css' MEDIA='all'>
<script language='javascript' type='text/javascript' src='/script.js.php'></script>
<frameset rows='100,*'>
<frame name='Menu' SRC='menu2.php' TITLE='Menu'>
<frame name='Content' SRC='<?php echo $ext; ?>' TITLE='Content'>
</FRAMESET>
</body>
</html>
<?php ob_flush(); ?>

(stylesheets and javascripts are .php files, mod_gzip.)

almostbob 866 Retired: passive income ROCKS

<noscript>This page requires javascript</noscript> anything between noscript tags is ignored if javascript is active, and the tags are ignored and the contents parsed if javascript is inactive
Any contents

almostbob 866 Retired: passive income ROCKS

single table, as the data is presented in a single table in the csv values from stats sicily, with unique id key, the other columns can be anything at all

/* queries on city, */
select * from table where name = '%s' ,$ciity
/* queries on county */
select  countmen as count totalmen, countwomen as count totalwomen countall as count total populationfrom table where county='%s', $county // add all city in county
/* or if the subtotals are provided for counties in the imported csv */
select * from table where ( county = '%s'  and name = '' ) ,$county  //no city name = county total

BOS Aus, supply csv with
id city region state
if city is blank the row is a region subtotal
if city and region are blank the row is a state subtotal

the ID key of the city table, can be the fkey to the ages table

almostbob 866 Retired: passive income ROCKS

A good place to start is the government bureau of statistics, whatever they may be called in the region of interest, the information requested is often available for access. premade to the date of the last census, on cdrom or downloadable

almostbob 866 Retired: passive income ROCKS

My circumstance
a number of files, changed at midnight then remain the same for 24 hours.
first access after midnight script generates the files from database,
then they are served from the file system,
very basic cache system to reduce database calls.

Read files
a supplier changes their price lists, we receive .csv to parse and import to sql database, weekly(?)
there are 20K stock items in some supplier lists,
typing would take longer than the time between updates

almostbob 866 Retired: passive income ROCKS

download a copy of vbulletin, coppermine, et al
and you can read the source of those pages and implement your own

almostbob 866 Retired: passive income ROCKS

Verruckt
the final arbitration of all takes up so much of your time.
It must be difficult to be you.

almostbob 866 Retired: passive income ROCKS

because IE and firefox/mozilla use a different DOM (document object model)
there are many scripts that only work in one or the other
and on the sites that offer them for download they usually state things like IE only, or "degrades gracefully in other browsers"
I do not know enough Javascript for the mozilla DOM to be able to fix it but to point you at a possibility IBM.com Migrate javascript apps from IE to Mozilla

almostbob 866 Retired: passive income ROCKS

Tutorial:: get multiple images from sql blobs

its tedious
now I'm really glad I dont store blobs in the database

almostbob 866 Retired: passive income ROCKS

How is a 3 digit HEX number interpreted as a color value in this example?
background: #fff

Do browsers double up each digit?
Thanks!
WBR

http://www.december.com/html/spec/color3hex4.html

almostbob 866 Retired: passive income ROCKS

the error is caused by storing the date as a text string in a 'date' formatted field
the database is not meant to be human readable, data constructs for human readability mess things up
the date should be stored as a unix timestamp, php strtotime() time() sql now()
solely numeric representation, in a numeric field
then sort by, and all other functions will work
the database will be smaller and faster and the operations on the data will be likewise faster
not an issue now perhaps, but eventually there may be millions of records in the database
the timestamp is output in human readable form by php date time functions.

almostbob 866 Retired: passive income ROCKS

I'm trying to display in a web page all the images stored in a database. THis is my code, but it only displays the first picture:

<?php
include "cysylltiad.php";
$result = mysql_query("SELECT * FROM files ORDER BY fid");
while($row = mysql_fetch_array($result)){
header("Content-Type: {$row}");
echo $row["content"];
}
?>

where content is the name of the picture field.

Any help would be appreciated.

in my mind, this should produce a row of images
the content-length header should tell the browser where to break the image,
untested, I do not use blobs
blobs in databases are slow, processor intensive and unneccesarily large, my databases just store the file system pointer to the image

while($row = mysql_fetch_array($result)){ 
header("Content-Type: {$row['type']}");
header("Content-Length: strlen($row['content'])");    
echo $row['content']; 
}
almostbob 866 Retired: passive income ROCKS

most do not want to be told rtfmits easier for me its just another line of code, that I have in memory, references I have to waste my time looking up

almostbob 866 Retired: passive income ROCKS
select name where state like '%s', $post['state']
mysql_query(sprintf("select name where state like '%s', $post['state'] "));

probably better if you take the commas out of your state tables
wa fl az mi
instead of
wa, fl, az, mi,
many schema give commas a meaning, and cannot be sure where the data will be interpreted and parsed
the space character is a sufficient divider

%s , $post['state'] could be written as 
$post['state'] 
replaceable parameters that I need to know which ones are numeric / text / blob to debug,  sql %s is literal text
almostbob 866 Retired: passive income ROCKS

Gremlins
upload the script, and view it on a different pc
the gremlins could be hiding in the rendering on your browser
it *should* work

almostbob 866 Retired: passive income ROCKS

Y'welcome

almostbob 866 Retired: passive income ROCKS

The middle column is 600px wide and the left and right 15% each

resize the window, ~500px, now the layout is 150% wide
the op wants to avoid having the right div drop below the others when the window is resized, not cause further layout problems, overlays, scroll bars
This why the W3C css standard is relative sizes and postioning.

almostbob 866 Retired: passive income ROCKS

hi guys,
I am designing a website. The site has to have 3 columns, so i floated the left bar to the left. Didn't float the main, middle content and i floated the right bar to the right. Everything looks perfect eeh?

well, not really!. Its coll if the browser is maximized but if you resize(squeeze) the window the contents condense, till to the point the right bar drops to the left.

I don't want that!! Please help me.

Thanking you in advance!

take out the fixed sizes the colums are set at and change them to % of the window width

almostbob 866 Retired: passive income ROCKS

Hi,

INSERT INTO money (salary) VALUES ('100,000,000.00')

100,000,000.00 is stored as 100.00 in decimal (14,2).
I don't know what is wrong?

Thanks

do not punctuate numbers in input data
mysql suypports multiple data schema, language-specific and region specific
in many supported schema the comma is a decimal separator, the number is truncated 2 digits after the first valid decimal separator = 100.00
database code is meant to be machine readable, not human readable, so dont try to make it pretty in the database
do any formatting only on output.
number should be 100000000.00.
input validation should strip out any incorrect characters in the input data, and return to the input form for re-entry with a "did you mean" prompt (like google when you mis-spell)
without validation the database wont last very long till it falls over dead
(Likewise repair dates that these salaries refer to, store timestamps not text strings, for the same reasons)

almostbob 866 Retired: passive income ROCKS

I hate English
difficult
inconsistent language

almostbob 866 Retired: passive income ROCKS

To quote myself for emphasis:

In the page inside the iframe, thoroughly check the css file requested. I would make sure it is one of a select number of specific filenames, rather than checking just the extension, etc.

Thank you Death,
I have clips now from one site working in another, like they belong, despite there being vastly different css.

almostbob 866 Retired: passive income ROCKS

Yea, there were a few examples of that kind of speak in years past. Another example was: "A penn'orth of sweets" etc, translates as: a pennies worth of, aka, what a penny can buy.
In grammatical terms, pennies worth is a statement of quantity, not possession. To justify an apostrophe you would have someting like: "That's the penny's place".

Does this imply that four yards worth is a statement of possession, that four yards collectively own a worth?
What is a worth, of which this mutiplicity of yards have taken possession?
When I buy ten dollars worth of fuel, for my very small motor at current prices, do the ten dollars likewise take possession of the fuel, or do I take possession of the amount of fuel that ten dollars buys?
Four yards worth, as is anything else worth, is an expression of quantity

almostbob 866 Retired: passive income ROCKS

my code for forced download is very like yours,
dont want the pdf to open in the browser

if(!$file) return false;
header("Content-disposition: attachment; filename=$file");
header('Content-type: application/pdf;');
readfile("$file");

try,

header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment;  filename=$dumpf\;");
readfile("$dumpf");
almostbob 866 Retired: passive income ROCKS

sorry, I have very little javacsript except for a form validation
have never got my attempted AJAX to crawl, let alone fly
I read the guides, and everything gets blurry

almostbob 866 Retired: passive income ROCKS

error messages usually have a string of digits, or a dump, I was hoping dreamweaver did too
instead they have a long list of errors and yours is included in the trouble shooter

Link: adobe Knowlege base

good luck
KB - ensure the latest greatest version is installed with all the updates, then delete some cache files

almostbob 866 Retired: passive income ROCKS

copy and paste the error message
'something like' only tells 'almost how' to fix it