almostbob 866 Retired: passive income ROCKS

wort

almostbob 866 Retired: passive income ROCKS

the id and name of the select field are missing from the code sample, I have chosen 'fieldname'

<?php if($_POST['fieldname']){ 
echo "<option value='$_POST['fieldname'] selected='selected'> $_POST['fieldname'] </option>";}
else { 
$getData = $db->prepare("SELECT * FROM first_university_degree_list");
 if ($getData->execute()) {
  $res = $getData->get_result();
  while ($data = $res->fetch_array()) {
   echo "<option value='$data['univ_degree']'";   
   if($FirstUniversityDegree == $data['univ_degree']) {echo 'selected="selected"';} 
   echo "$data['univ_degree'] </option>";
  }
 }
} ?>

If the data is posted, use that, else run the select statement

syntax may be incorrect due to not seeing the entire code page, may be _GET etc, but should provide a base for dev

almostbob 866 Retired: passive income ROCKS

font

almostbob 866 Retired: passive income ROCKS

Couldn't log in.
Couldn't request reset.
Immediate thought, I have p-ed off majorly those I should not.
Those who have met me in person will be able to affirm this, I am expletive 99% of the time.
I have been banned from other sites before, permanently (sadly often), and assumed I had been again.
At DaniWeb I have tried to keep the answers almost relevant and helpful.
I emailed my thanks for being permitted here, and assumed I was a dead man
Very suprised to receive a reply, any reply actually, that login was down and I had not done anything too stupid (recently?)
Happily surprised

DaniWeb is extremely tolerant 6384eb2ad0803beeefef27551d397a04
Gratefully

Bob

almostbob 866 Retired: passive income ROCKS

Escaped being bullied in High School, didnt go much,
and between end of yr 6 and beginning of 7, grew from 4ft 5 to 6ft 1
was the weird kid who'll kill you
a few violent outbursts mostly exerting the change of influence between the former 4'5" punching bag, and former bullies
Defence paid for uni, and a salary while I was there.
Even if you are the only student in uniform, being the only one with money helps a lot. $3 lunches at the 'Nott'
Of course I like to blow things up

almostbob 866 Retired: passive income ROCKS

1981
chem, physics, pure math, applied maths, biology, cartography, English, English lit,
I went to school on mondays, mondays were prac classes
didnt go other days, boring
external exams made 100% of the marking,
I do well in exams, usually finish hours before the end

There was a truant officer, she gave up coming around after a few months of the folks
"well test him on anything studied when you say he wasnt there"

damn, hippies

diafol commented: heh heh +0
almostbob 866 Retired: passive income ROCKS

</option>"; in line 3
should be
</option>";}

almostbob 866 Retired: passive income ROCKS
<?php if( Is_Array( $Players ) ) { echo '<select class="form-control">'; 
 foreach( $Players as $Player ) {
  echo "<option> htmlspecialchars( $Player[ 'Name' ] </option>";
  echo '</select'>;
 }
else {echo '<input class="form-control" type="text" disabled="disabled" Value="No players in da house">';
}

every timne you go to php, drop back to html, it adds processing time
If you can do it once
do it once

almostbob 866 Retired: passive income ROCKS

post the actual error message, not a link.
follow the instructions you have been given

Please... pretty please... "mod speaking" - paste your code and errors directly into this thread.

'mod' is the bloke who kicks your ass off the site when you annoy them enough

almostbob 866 Retired: passive income ROCKS

Another "proffessional" who cant create their resume in the language they claim to be profficient in.
Links to your resume, from this well SEIndexed thread where you state your incompetence, will not help your employment search.

Move your resume when it is corrected, to a host not linked from here

It needs to be

  • html5 css3 compliant,
  • css layout not tables,
  • responsive not fixed dimension,

for you to be taken seriously

almostbob 866 Retired: passive income ROCKS

If you are serving many files from the web service, it would be better to retrieve the file onclick
the page will be huge, +(all files x1.25) if all embedded at once

1 post, no return for a week, not coming back

almostbob 866 Retired: passive income ROCKS
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  1. turns on rewrite
  2. if the link does not start with www
  3. replace link with www and 301 permanently moved

for SEbots it transfers most of the non-www link's mojo to the www version

Inform google directly in your webmaster tools panel

savedlema commented: Thank you very much. I was able to read about this and implement. Now it works and I hope for the best. Thanks. +2
almostbob 866 Retired: passive income ROCKS

the above two scraps are used when the pdf is the only thing on the page to be displayed, headers make the page limited in the amount of other data than can be sent, everything is assumed to be encoded pdf

as part of a page, tested,
BUT there is always a but;
Ensure the type of encoding in which the content is sent, and change base64 appropriately

<a href="data:application/pdf;base64,<?php echo $YourArray['content']; ?>"><?php echo $YourArray['filename']; ?></a>

the mimetype is still wrong
If you are accepting multiple mimetypes from the web service, you can always if/else or switch/case through $YourArray['mimetype'] and echo the correct mimetype into the link

sample generated pdf, as html, in the attachment

almostbob 866 Retired: passive income ROCKS

display

header("Content-disposition: inline; filename=$YourArray['filename']");
header('Content-type: application/pdf;');
echo $YourArray['content'];

force save

header("Content-disposition: attachment; filename=$YourArray['filename']");
header('Content-type: application/pdf;');
echo $YourArray['content'];

not tested for pdf
works with images

the mimetype pdf/file is wrong

almostbob 866 Retired: passive income ROCKS

I am not as polite as you two

Do your own bloody homework
die('lazy students');

diafol commented: my sentiments exactly +15
almostbob 866 Retired: passive income ROCKS

csv files do not store data in columns
each field in the row is only as wide as the data it contains
each row is therefore different in size
the program reading or writing the csv file is intelligent enough to parse the data and display it as columns

"S.NO","A.NO","NAME","SAN DATE","SAN.BAL","BALANCE","DUE DATE","OVER DUE","INT","P/OTHER","TOTAL"
"Y",8,"BAIGANPALLI SADIQ MEHABOOBSAB","16/06/00",8000,4740,"16/12/02",4740,1804,332,6876,6
"Y",2","INAMDAR ILIYASPEERA KHADARSAB","04/07/00",8000,7601,"04/01/03",7601,14180,1699,23480,6

or something similar, is correct as output
csv "comma separated values" is not meant to be easily human readable, it is a data transfer format.

[edit] the csv file will open with or import into excel, open-office, or any other spreadsheet program for further manipulation.
Most of the tabulation in the OP reports is added html in the report creation file, If there is a need for human readable the code there could be used as a base[/edit]

almostbob 866 Retired: passive income ROCKS

it can be as simple as propogation time, DNS servers take time to react to the construction of new sites, or the changing of site structure.
very likely the links may simply not have reached google yet

sitemap submission to the webmaster tools page will increase depth of googlebot access

savedlema commented: Thank you very much. I'll see if more time solves DNS issue. +2
almostbob 866 Retired: passive income ROCKS

Go get a google webmaster tools account and let google tell you what to do properly
Much of what passes for optimising, on webpages devoted to seo, is apocryphal.
What you did may be insignificant, wrong, more often just delayed

Google webmaster tools will tell you precisely, tailored to your site, what to do to make your site the best SEoptimised it can be.

Ignore other SearchEngines, Google makes the rules

Anything you get from anywhere else, including here, including me, is crap.

almostbob 866 Retired: passive income ROCKS

add selected='selected' to one of the choices
or add a blank entry with selected='selected'

<option value="" selected='selected'>choose</option>

second run of the page is remembering the last time
to see what it is like without the memory effect, clear the tif

of course the field is centered around the currently selected choice, that is default behaviour, its just that IE remembers, not default behaviour IE is a shit, and other browsers behave

almostbob 866 Retired: passive income ROCKS

This u tube is a linear along the time dimension, 12 years long,

almostbob 866 Retired: passive income ROCKS

time as a fourth dimension is simple to understand
a floor plan is a section across the z dimension, and the time dimension
an elevation is a section across the x dimension, and the time dimension
or elevation is a section across the y dimension, and the time dimension
your baby photo, teenage photo, wedding photo, retirement photo, are sections across the time dimension, and the x y z dimensions
the time dimension is enormously important.
It is simple to stand on the train tracks in front of a train, as long as the train's position on the time dimension is 'yesterday'
it just is bloody difficult to produce a linear drawing along the time dimension.

ddanbe commented: Great explanation. +0
almostbob 866 Retired: passive income ROCKS

my 5c a4 papers involve making things explode, lots of fun, not appropriate to the business of business
many accept the existance of an unrelated degree, as evidence of competence, I do not know why.
In reality I like blowing things up.
it still opens doors, that I wouldn't think it should

almostbob 866 Retired: passive income ROCKS

19 is wrong
20 is wrong
26 is wrong
39 is wrong

almostbob 866 Retired: passive income ROCKS

somepeople would write, just google it
other people would write google it for me
still others would write let me google that for you

because its funny

almostbob 866 Retired: passive income ROCKS

try searching for your content, or the reason for your site, not your sitename, the results may be hugely different

"why does god hate me, I am insignificant and need to be punished" gets them

"why does my plumbing leak Victoria BC" gets you (just paid my plumber bill, you probably arent a plumber)

and
get a google webmaster tools account, and get google to give you exactly what you need to push your SER to the top
google do not publish the search algorithm
but through webmaster tools, google provide sets of personalised instructions to make your site exactly current with the search algorithm, and the instructions change when the algorithm changes
its the answer to 'how do these new sites rank so well so fast?'

read some of SEO guru CanadaFred's posts, he's spectacular on SEO and in .CA

almostbob 866 Retired: passive income ROCKS

@SIBERIAN: setting favored domain, only applies when both domains are the same website, nothing in those articles applies to you

Searches are content based, your content reflects how your site is indexed and how it is seen in SER
.CA is specific, and will improve your ser as ser geo-target responses

a religion site will return results for "magic invisible friend who lives in the sky and grants wishes"
the non-religion site will return results for "something that is not stupid"
and the two should not overlap

ensure your links prominantly indicate .ca to reduce mistyping when the address is entered directly

almostbob 866 Retired: passive income ROCKS

Google says to set the favored domain yourself
through your webmaster tools account you can program google
or MattCutts has generic and specific advice
and moz says the same

almostbob 866 Retired: passive income ROCKS

Ask Google:
.
get a google webmaster tools account; follow the instructions

ridiculous to ask information from us, when you can get it directly from Google, personalised to your site

almostbob 866 Retired: passive income ROCKS

coffeeeeeeeeeeee

almostbob 866 Retired: passive income ROCKS

Amherst -> Truro via Oxford 'the blueberry capital of Canada'
watched a couple raking blueberries in scoops,
bought some

ladylove makes blueberry pancakes
Yum

Canada has short seasons,
strawberry season, sneeze and you miss it,

summer was on a wednesday this year
my garden does not look like it will do much before we go
the kids will eat my veges

Blueberry season lasts for a few months, YAY
when its over go to Aus and eat mangoes pineapple guava kiwi, more Yay

eating homemade blueberry muffin, yum

almostbob 866 Retired: passive income ROCKS

The first step would be the bravesites helpscreens
the second would be godaddy helpscreens
They are usually pretty good

almostbob 866 Retired: passive income ROCKS

1, tables? tables? wtf

2, media detection, pixels are entirely appropriate to determine physical device size

where is the slap-up-the-side-of-the-head button

almostbob 866 Retired: passive income ROCKS

many new sites follow google's instructions
given in their new webmaster tools account
many older site operators think they know more than google does, about google
those older sites think they dont need webmaster tools accounts, and disappear from ser

almostbob 866 Retired: passive income ROCKS

The spam/content threshold on facebook and twitter is very low
links to your site, without contextual reason, have a rapid negative effect
& will trip search bot algorithms
you won't know until SER disappear
+1WebOutGateway's "be patient"

good results take more time than results

almostbob 866 Retired: passive income ROCKS

external stylesheets in reverse order of declaration, last declared is it, the others do not exist
Internal styelsheets kill external styles
Inline styles kill internal stylesheets

media queries ::
there is no media specified for the linked css FILEs, so the last one takes priority and replaces all prior

something like

<link media='screen' rel="stylesheet" href="css/iframeStyles.css" />
<link media='handheld' rel="stylesheet" href="css/iframeStyles-mobile.css" />

would apply styles more as expected

or replace both files with a single file containing 2 media queries
@media screen {}
and
@media screen and (max-width:767px){}

almostbob 866 Retired: passive income ROCKS

If at first you don't succeed, try, try, try again.
If at first you do succeed, try, to hide your astonishment,

almostbob 866 Retired: passive income ROCKS

The default actions on insert flash drive, are not able to be set as a cdrom drive is
even if you create a 'autorun.inf' it wont work as expected
I refer to this artical often
http://www.samlogic.net/articles/autorun-usb-flash-drive.htm

almostbob 866 Retired: passive income ROCKS

goto google webmaster tools, and get the answer, from the ones who make the rules
with all the recent algorithm changes your site may no longer be relevant

almostbob 866 Retired: passive income ROCKS

It is more than ridiculous to rely on any third party for search engine quality checking

why not get accurate results from the source: google webmaster tools

almostbob 866 Retired: passive income ROCKS

open new tab or open new window is set in the user's Internet Options
the web page has no control of it
attempting to take control of any user's pc will be seen as malware,
with the appropriate action being taken by anti-malware programs,
blogs, et all. not a good result for you, without any malicious intent.

the only possible reason you see a different result in IE8,
is
you have different Internet Options applied in the machine running IE8

I have win98 print kiosk IE6, the code opens new window ie6 has no tabs
I have winxp laptop, the code opens new tab
I have win7 laptop, the code opens new tab
I have win2000 server, the code opens new tab
I have win81 desktop, the code opens new tab

almostbob 866 Retired: passive income ROCKS

datetime is a stupid, woefully inefficient data construct
a timestamp uses 4 bytes, and stores all the information of a 25byte text representation datetime
not much in 1 record, a lot in 100million records
and the processing to output the data in any form, is a less, orders of magnitude less
select date > stored text date and < stored text date,
(convert str2time() for each entry)
is orders of magnitude more processor intensive than
select date > 1234567890 and < 2345678901

in answer to the actual question,

Yes
set a default value, that the data handler accepts as nul≡unpopulated
or populate the unfilled fields with today's date and time
overwrite with user entered values, and store the value in the db

almostbob 866 Retired: passive income ROCKS

Although saddened by the passing of more of the stars of my youth
I wonder if, at the funeral, they played the parody :

When-a, When-a, When-a, it's my turn to go
I wanna be cremated
Don't need a shov-el, or a back hoe
I wanna be cremated

Just get me to the furnace, put me in the flame
Never mind a casket, or headstone with my name
I can't afford a funeral, or eulogy that's lame
Oh no no no no noooo

When-a, When-a, When-a, it's my turn to go
I wanna be cremated
Don't need a shov-el, or a back hoe
I wanna be cremated

Not mockery, memory

almostbob 866 Retired: passive income ROCKS

Google publishes the NAME of the algorithm
the algorithm itself is better protected than any country's security data.

Code the site cleanly
Use original content
Link to quoted material
dont spam
dont cloak
dont keyword stuff

and dont get kicked in response to any of the above
easy peasy

Content is King

almostbob 866 Retired: passive income ROCKS

more homework
die('lazy student');

almostbob 866 Retired: passive income ROCKS

coffee eeeee aaaaahhhhh soothed

almostbob 866 Retired: passive income ROCKS

ditto all the above, a watermarking script is easy to implement, and idoes not need to modify the images on the server, only while they are served

almostbob 866 Retired: passive income ROCKS

html5,
no type='text/css' type='text/javascript
http://www.w3.org/TR/2011/WD-html5-author-20110809/the-link-element.html

not required,
and
some browsers, guess which in particular, spit it

<M/> commented: i'll keep that in mind :) +10
almostbob 866 Retired: passive income ROCKS

It is an error in your code, as cereal shows
can be as simple as including an extra space where there shouldnt be one, before the opening <?php
that space is output to the browser and no headers can be sent
If you cannot locate it post the code and others will point out the fault,

its easy to see other's errors,
impossible to see your own. . . . . other peoples errors are more fun

if you do not have access to your php.ini file, many hosts do not permit it
file buffering can be enabled within the file, (in this case compression as well)

<?php ob_start("ob_gzhandler"); ?>
<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
</head>
<body>
</body>
<script src='/js/bootstrap.min.js.php'></script>
</html>
<?php ob_flush(); ?>
almostbob 866 Retired: passive income ROCKS

has the site providing facebook services .. ditto the above

almostbob 866 Retired: passive income ROCKS

has the site providing ad services changed their format
the ad script is included in the KB count of the page, and you dont have much control of that
when developer comments and keys are not removed from the first production run of code,
:token: //this is 20kb to explain how we reduced the filesize by tokenizing