almostbob 866 Retired: passive income ROCKS

Expert
combination of Ex, has been, was, past tense
and
spurt, a drip under pressure
expert : a hasbeen drip under pressure

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

yes a hidden div, or a div that you toggle z-index -100 to hide, +100 to show,

<button onClick="showIt();">Important Information</button><script type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false;
function hideIt() {
if (dom) {document.getElementById("layerm1").style.visibility='hidden';}
if (document.layers) {document.layers["layerm1"].visibility='hide';} }
function showIt() {
if (dom) {document.getElementById("layerm1").style.visibility='visible';}
if (document.layers) {document.layers["layerm1"].visibility='show';} }
--></script><div id="layerm1" class='bottom' style="position:fixed; left:10px; top:30px; width:50%; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid;">
<center><font size="+1"><b>Multi unit residences</b>:</font></center>Tenants &amp; Residents Multi Unit Residential Developments of have different responsibilities to Tenants &amp; Residents of Single homes.<button onClick="hideIt();">Close</button></div>

this scrap produces a layer that hides and displays onclick, its a part of a page, I think I clipped it all
might helpo in development

almostbob 866 Retired: passive income ROCKS

window.open will not work in the majority of users browser, they will not turn off the popup blocker for your potentially malicious site
use a layer in the existing page to give the appearance of a new window without being blocked

almostbob 866 Retired: passive income ROCKS

You need the extension in the table or file handling wont work, you dont need it displayed in the download link

<?php   foreach($files_array as $key=>$val)  {            echo '<tr><td><a href="dlc_download.php?file='.urlencode($val).'">'.substr($val, 0, strlen($val -4)).'</a></td> 
<td><span class="download-count">'.(int)$file_downloads[$val].'</span></td>;
</tr>'; }  ?>
Cap'nKirk commented: Excellent job, thank you! +1
almostbob 866 Retired: passive income ROCKS

Left stuff out of that code above
clicking as it is will take whatever time to download the images before the image changes, when the link is first clicked

<html><head></head><body><!--bla bla bla -->
<img id='bigimage' src='image3.jpg' width=x height=y>
<a onclick="document.getElementById('bigimage').src='image1.jpg';">Image1</a>
<a onclick="document.getElementById('bigimage').src='image2.jpg';">Image2</a>
<!-- bla bla bla -->
</body>
<script type="text/javascript">
//<![CDATA[
<!-- 
image1 = new Image();
image1.src = "image1.jpg";
image2 = new Image();
image2.src = "image2.jpg";
//-->
//]]>
</script>
</html>

loads the images into the tif, after the page is fully displayed (preloading in the head is a bad idea delays page loading) so that when the link is clicked the image displays immediately
any number of images can be loaded into the tif
I think this is better

almostbob 866 Retired: passive income ROCKS

When I got to Canada, (bloody immigrants), had my first root beer, mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

almostbob 866 Retired: passive income ROCKS
<img id='bigimage' src='image3.jpg' width=x height=y>
<a onclick="document.getElementById('bigimage').src='image1.jpg';">Image1</a>
<a onclick="document.getElementById('bigimage').src='image2.jpg';">Image2</a>
almostbob 866 Retired: passive income ROCKS

run the select twice, do nothing with the first result
fgetcsv gets the next line each time it is called

almostbob 866 Retired: passive income ROCKS

Show the html, and css, nobody is going to waste time view source on your pages

almostbob 866 Retired: passive income ROCKS

Thankyou Cwarn23, just came back to find the footprints where I stepped in it, have been repaired
/* bla bla bla */ :(

almostbob 866 Retired: passive income ROCKS

while loops until a fail occurs, looping on the same line does not fail

<?php if (($handle = fopen("test.csv", "r")) !== FALSE)  {
 $data = fgetcsv($handle, 1000, ",")  
 echo "$data[3] ,  $data[10]" /* bla bla bla bla */ ;
 fclose($handle);
} 
else echo 'failure opening data file'; ?>
almostbob 866 Retired: passive income ROCKS

IF you are selecting a single record, then have an input form somewhere thay you can input the information you are searching on with the same field names and order as your csv file
then when you step through the file

if(isset(search[0])) {if (data[0]=search[0]) {echo "hello $data[3] , In reply to your $data[10] ";} }
if(isset(search[1])) {if (data[1]=search[1]) {echo "hello $data[3] , In reply to your $data[10] ";} }
//etc

with apologies for really crappy code sample, its has been ages since I thought about it, its so much easier without thinking

almostbob 866 Retired: passive income ROCKS

you have an an array $data made up of a single record row
you know the elements in the array $data[0] to data[10]

echo "hello $data[3] , In reply to your $data[10] we can /* bla bla bla bla */";

CSV handling is not elegant in finding a particular row, except by stepping through, it is not a random accessible database
have always fwritten the last row number to another file on fputcsv
selecting a single line, first, last, or any by line number, is a piece of cake
the code example in your prior post shows stepping through the record lines by 1 row $row, and $row++

almostbob 866 Retired: passive income ROCKS

Any book is out of date, before it is even published
W3schools::: the w3 consortium is responsible for web standards, the code standards of html xhtml css

or you could be another **expletive deleted** person producing code that

  • fails in half the browsers
  • takes forever to display
  • looks like crap
  • is invisible in hi-res displays
  • doesnt work in handheld devices
    and worst of all from a developers viewpoint
  • is **expletive deleted** difficult to maintain
almostbob 866 Retired: passive income ROCKS

When using csv files you should be using CSV operators
fgetcsv() see also fputcsv()

dont use a fork to serve soup

almostbob 866 Retired: passive income ROCKS

bacon
bacon
and some other stuff

almostbob 866 Retired: passive income ROCKS

No one messes with this little black duck, -- Daffy

almostbob 866 Retired: passive income ROCKS

My car, parked, with me standing in front of it, did not move between shots, rolling over me and pinning me underneath, from where I am lying screaming for help, except for the time that I am typing this on a laptop via the wireless link in the building in the picture (there is a wireless link in the building in the picture thats why I was parked there)

What a **expletive deleted** response

Google Bblurr faces names signs, if other shots in google maps appear similarly distorted, it is far more likely that Google blurring algorithm hiccupped than it is that the camera fails at just that point.

Edit:: I am not steealing wireless, its my building

almostbob 866 Retired: passive income ROCKS

Mac
Linux
FreeBSD

precisely How do you get those systems to open IE ?

almostbob 866 Retired: passive income ROCKS

this link shows a green toyota approaching on the left side of the road, as soon as you can see my face through the window, (saying 'what the hell is that') the car is photoshoppped out and reappears behind the mapcar as it proceeds down the road
Truro Nova Scotia
In this link I am standing in front of the car, and its fairly obvious that something is done with the front of the car

almostbob 866 Retired: passive income ROCKS

I followed this google car around for half a day
they fuzzed my face out of every pic
I am very upset
My car is in google maps a hell of a lot

almostbob 866 Retired: passive income ROCKS

most people would look at at the html reference for input type=radio and the parameters thereto

http://www/w3schools.com

We are not studying your course and gain no benefit from doing your homework

almostbob 866 Retired: passive income ROCKS

use the rss feed of the stock page

almostbob 866 Retired: passive income ROCKS

not added, example code only

read the link provided to find the correct format and edit your code

almostbob 866 Retired: passive income ROCKS

no quotes on table names column names

mysql_query("INSERT INTO Persons (FirstName, LastName, Age) VALUES ('Peter', 'Griffin', '35')");
// so
$sql="INSERT INTO letohost_user.player (USER_ID, USERNAME, PASSWORD, EMAIL, POSITION, ACTIVE, MEMBER) VALUES (NULL, {$_POST['register_username']}, {md5($_POST['register_password']}), {$_POST['register_email']}, '0', '0', '0');)";

http://www.w3schools.com/php/php_mysql_insert.asp

almostbob 866 Retired: passive income ROCKS

Post the code that causes the problem, not a url to the site
It is not anyones job to go to your site copy everything, find the error, fix it and repost it, you will get more assistance if all the person has to do is look at the post and write 'line 3 xxx should be yyy'

almostbob 866 Retired: passive income ROCKS
$SWEAR = array('a' => '@', 's' => '$');
almostbob 866 Retired: passive income ROCKS

on login update lastlogin with sql now() the timestamp of now

delete low_priority from table where last_login < (now() - 2592000 ) order by last_login limit 100

2592000seconds=30 days
limit 100 to make sure no timeout and because a limit is usefull where there may be 10000000 members
low priority to ensure the login page the code is embedded in presents without delay

almostbob 866 Retired: passive income ROCKS

With apologies to the author (whomsoever they may be), the email that included this article did not attribute it, and did not preserve the original, the emailer is not the author, merely forwarded it to the one person in their region identified as the Australian, this is a very small town.
The poster is not the author.
No copyright is known.
No copyright is claimed.

Australia
Australia is a very confusing place, taking up a large amount of the bottom half of the planet.
It is recognisable from orbit because of many unusual features, including what at first looks like an enormous bite taken out of its southern edge; a wall of sheer cliffs which plunge deep into the girting sea. Geologists assure us that this is simply an accident of geomorphology and plate tectonics, but they still call it the "Great Australian Bight" proving that not only are they covering up a more frightening theory, but they can't spell either.

The first of the confusing things about Australia is the status of the place. Where other land masses and sovereign lands are classified as either continent, island, or country, Australia is considered all three. Typically, it is unique in this.

The second confusing thing about Australia are the animals. They can be divided into three categories: Poisonous, Odd, and Sheep. It is true that of the 10 most poisonous arachnids on the planet, Australia has 9 of them. Actually, it would …

Nick Evan commented: Great story! +0
darkagn commented: Brilliant post, made my day :) +0
almostbob 866 Retired: passive income ROCKS
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>
<head>
<link href="table.css" rel="stylesheet" type="text/css" media="screen" >
</head>
<body>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
</tr>
<tr>
<td>Lois</td>
<td>Griffin</td>
</tr>
</table>
</body>
</html>

should function
whitespace and indenting are not required for production code and should be removed
often 40-50% of the filesize downloaded to the user browser is whitespace
Its ok as an aid to developer, but a code highlighting notepad is better.

almostbob 866 Retired: passive income ROCKS

with no dtd you are limited to html2
self closed elements (end in /> ) are xhtml ONLY
the declaration of your css wil lbe ignored

if you make the firstline of the html file a dtd for html 4 (strict or transitional) or xhtml (strict or transitional) you will be able to properly use external css files <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> sample html4 Transitional DTD
course notes are never complete

daviddoria commented: Thanks almostbob +3
almostbob 866 Retired: passive income ROCKS

post the code,
including the css
that you are using

we dont do homework, nobody is going to look it up, fix it, and post it for you
but we do show the bugs in what you have tried

almostbob 866 Retired: passive income ROCKS

There are parts of the spice girls I remember vividly

but a backstreet boy was and is, as a chocolate starfish, and a butthole surfer,
something completely other than a musician

Salem commented: music or anatomy? ;) +0
almostbob 866 Retired: passive income ROCKS

what did you try
how did you try
post the code you are using so nobody, with a possible solution, has to do anything twice

almostbob 866 Retired: passive income ROCKS

most would do that in php/asp so as not to transfer as much information and keep the page the user sees (eg view source) simpler

<?php $today=getdate();
if($today['hours'] > 17) { $display='evening';} 
elseif($today['hours'] > 11) { $display='afternoon';} 
else $display = "morning"; 
echo 'Good '.$display;?>

view source Good morning

datetoday = new Date(); 
thehour = datetoday.getHours();
if (thehour > 17) display = "evening";
else if (thehour >11) display = "afternoon";
else display = "morning";
document.write("Good " + display );

View source <script type='text/javascript'>datetoday = new Date();thehour = datetoday.getHours();if (thehour > 17) display = "evening";else if (thehour >11) display = "afternoon";else display = "morning";document.write("Good " + display );</script> javascript is tediously case sensistive

almostbob 866 Retired: passive income ROCKS

sample only, did not check the code pulled out of my *****
look at look at php.net mail for mime mail proper formatting

thats why the above was written and a link to php html mail was given, so you can find the correct code for your exact application
html mail is at the bottom half of the page

MUST include the mime type headers to use html mail or else it is plain text

MUST include the other headers, or your mail will get bounced from any server in the route with a spam catcher

and perhaps, fwrite the email address and passcode given to a csv text file on your server to trace how many people have gained proper access to the discount

almostbob 866 Retired: passive income ROCKS

front bench seats, powerglide three on the tree,

almostbob 866 Retired: passive income ROCKS

line 9 in the code of the second post should look something like

Response.Write ">" & location & "</option>"

and there should be a </select> after the loop

almostbob 866 Retired: passive income ROCKS

MIME html email eg

<?php
$email = $_REQUEST['email'];
$headers .= "Reply-To: me@myemailaddress.co.uk\r\n";
$headers .= "Return-Path: me@myemailaddress.co.uk\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><head><style='text/css'>.red {color:red;}</style></head><body>";
$message .= "<h1> This is a test </h1>";
$message .= "Thank you for applying for an INSTANT DISCOUNT CODE. \n\n <span class='red'> 1a2b3c4d5e</span> \n\n is your discount code, please type it using lowercase letters at the checkout \n\n\n Thanks The Team";
$message .= "</body></html>";
$email = $_REQUEST['email'];
mail ("me@myemailaddress.co.uk", "$email", "$headers $message", "from: the team");
if ( mail($to,$subject,$message,$headers) ) { header ("location: http://www.mydomain.co.uk/confirmation.htm"); } 
else { header ("location: http://www.mydomain.co.uk/failed.htm");  }
?>

the code highlighting is done by [code=language] in this case code=php [/code] tags, makes for easier reading, debugging

sample only, did not check the code, pulled out of my *****
look at php.net mail for mime mail proper formatting

almostbob 866 Retired: passive income ROCKS

It is as saiprem wrote,
the semantics of php do not consider, as people do in spoken language, that post get request are 'similar enough' to be interchangeable
$_post does not show the data sent in the query string, and is harder to fake
if the data being edited is subject to attack,
privacy issues,
security needs,
it is definitely better to $_post the data from one page to another,

almostbob 866 Retired: passive income ROCKS

Yours was a refreshing question,
it wasnt 'help me with my homework' of which there has been rather too many
And there was thought behind it
'I've begun to look at these, where to look next'

there are previous posts in daniweb about securing files for users only, but the thread titles may be obscure
this is a goldmine of data if you have a few hours to browse

edit ::
images are stored in the database in a BLOB datatype binary large object field
or in the file system and the uri to the image is stored in the database in a text field

almostbob 866 Retired: passive income ROCKS

production code should not be indented, it causes problems
whitespace in your code
html interprets whitespace as a space
multiple tabs and spaces before <img are a space,
that space shows between the images

<img src="http://goyami.corante.com/archives/images/july4th05.gif" /><img src="http://www.logoogle.com/images/logooward/july4th04.gif" />

no space

I assume the closing > in line 31 is a typo and not reflected in the code with problems

almostbob 866 Retired: passive income ROCKS

all of the questions you have asked are answered in the MySQL user guide sections
in the appropriate server side language for the site host,

at mysql reference sections http://dev.mysql.com/doc/ for the version to be used
from theses sites you will get absolutely accurate answers, code samples and instructions
cmon back and post a question if the code you develop has a specific bug

perhaps start with a CMS, prewritten to accomplish what you look for

henpecked1 commented: almostbob's guidance was accurate and gave me exactly what I needed. +3
almostbob 866 Retired: passive income ROCKS

most table updates can be done with mysql now, that stamps the current timestamp to the field
and output from the timestamp any which way you like with regular date functions
google MYSQL NOW to find the correct code for your app

do not use any text date time function, it will be wrong in 2/3 of the world, numeric timestamp can be formatted to user preference for every user regardles of whether they expect dd mm yyy, mm dd yy, YYY MMM dd, dd MMM yy or any other date format.

almostbob 866 Retired: passive income ROCKS

but we have a thread so we can remember what we are eating, we aint old

almostbob 866 Retired: passive income ROCKS

if you want to use in side the html tag or href
use like this
<a href="<?php echo $Lnag[0] ?>"><?php echo $Lnag[0] ?></a>
this is the answer for you question.
if any dobut reply me.

Do not use this code in your file, the poster has not bothered to read any part of your existing code and this generic crap will kill php at the first ?>

almostbob 866 Retired: passive income ROCKS

Rochester
Yes Mr Benny
Be reasonable
Your reasonable, or My reasonable Mr Benny

Well !!

and,, The MaxWell

almostbob 866 Retired: passive income ROCKS

left out the important part,

...

any image rotator script could be modified to rotate between several versions of favicon.ico