The first days of a new college semester
homework questions
RTFM
The first days of a new college semester
homework questions
RTFM
I was thinking about dogs, getting one, a house isnt complete without at least one dog, and the above description of Labradors just broke me up
really,
you mark down the people who try to help you?,
werent they fast enough,
they didnt fix the abortion of code you provided,
you'll notice that after you did mark down both those who tried to extract enough information from your incompetence, to repair your stupidity, that no-one else can be bothered with you.
Wallow in your own muck,
I felt like adding insult to insanity
what a donkey socket
THE db is not supposed to be human readable,
it is meant for the machine to read
date stored as a timestamp, is smaller more efficient and faster, not so much for a few records, but it makes a large difference to use a four byte timestamp to a 25 byte text representation, in for example, 1 000 000 records
it is simpler to compare timestamps,select \* from table where date > 1234567890 and date < 1234568300
than it is toselect \* from table date_format(my_date_field, '%m/%d/%Y %r')
by a time/processor factor several orders of magnitude
selected records are parsed to human readable only, using simple php date() format
for different users 2013/5/12 is fifth of December, or twelfth of May no consistency
a timestamp is unique, to the second, and can be parsed out to each user's chosen/or/regional-default settings, including am/pm
it would be more efficient to run a single table update, and continue using a timestamp.
SQL has a structure Now() just to populate timestamps on insert
the timestamp, is another expression of the php date() object, without formatting applied, sorry all, its a simple 4byte number
Just read the news, "Iron pyrites boulder hits woman in head", but it did get her attention
For heavens sake Gerbil, Dont tell the truth.
Everyone has been trying to avoid that thought; Marriage = Mother in law
I discovered,as well as the prior reply,
that Wife is software
wife 1.0 was supposed to be an inplace upgrade of girlfriend 3.0,
wife 1.0 has many un-documented features
wife 1.0 interacted detrimentally with wallet
wife 1.0 interacted detrimentally with bank account
wife 1.0 interacted detrimentally with friends, deleted all existing friends versions, and installed the incompatible "OurFriends"
wife 1.0 interacted detrimentally with fun, deleted fun and installed the incompatible "WeekendWork"
wife 1.0 interacted detrimentally with careerWife 2.0 has none of the bugs of Wife 1.0
wallet, bank account, friends, football, career, travel, holiday, FUN, restored to prior settings
I love my wife (2.0)
Attempt Humour
Just want to make sure
I am NOT don juan, or any kind of romance guru, the above is just the experience of 1 bloke
If you do code, you get designs and layouts that you can use over and over, knowing they work, and making $ off them
Cordell sells its services to banks and insurers
this link differs from this link differs from this link
by a profile number mapping a good idea to a bunch of purchaser's color and layouts
cant do that if the code you produce is proprietary to someone else
(I do real estate services)
AnyHoo, this is the new mod thread
most wysiwyg editors produceepixel measured layout, looks great on your screen, looks ridiculous on all others
basic design on a wysiwyg, redone to display in em or % instead of pixels will get you by, but hand written code, is going to be prettier, faster, and more consistent overall.
Pretty much everything your co-workers tell you will be wrong, ignorance they learned about X, Y years ago and there is no other way to do it , , , else people would still be slicing up images to display with dreamweaver and doubling the time the page takes to display (oops, they are), or malice they dont want competent competition
ignorance and malice dont leave much room for honest answers
There was an anouncement from HappyGeek, just last week about JorgeM's elevation.
ditto evolutionFallen's thoughts, but, javascript is unfortunately unreliable, many browsers block unload scripts
have you considered a timeout on the session
No, its not urgent to me, no amount of capitals makes it urgent :grin:
dont try to remake the wheel, most users already know where the print button is on their browser
create a print stylesheet that makes the onscreen version, which is one shape, look better on paper, which is a different shape
@media print { /* typeface margins columns images laid out to suit paper */ }
@media screen { /* what you already have */ }
I reread my post, my english (first language) is bloody awful
they are trying to teach me convsersational french/canadian, good luck
if ($BS=='Music') {$this="beethoven's fifth symphony";}
The code is encrypted to protect the encrypted resources,
you have not supplied the correct key to complete the decryption, do not know how to reference the key
this is very obviously not your code
those able to decode this are on the side of the person from whom you appear to be trying to steal
but i would like to know why and how u encrypted ur code ?
cmps, so would he,
you might then get back into SER if you stop spamming
goto google webmaster tools and read webmaster 101
you should be able to work out how to google search google webmaster tools
pǝɹoq 'ɯɐ ı ǝɹoɟǝɹǝɥʇ 'ʞuıɥʇ ı
8-ɟʇn ɟo sǝıʇılıqıssod ǝɥʇ ǝuıɯɐxǝ oʇ ƃuıʇuɐʍ ɟlǝsʎɯ puıɟ ı
sʎɐp ǝsoɥʇ ɟo ǝuo sı ʎɐpoʇ
today is one of those days,
I find myself wanting to examine the possibilities of utf-8
I think, therefore I am, bored
my favorite utf character, Ƒ fhook, the bad words . . . , Oh Ƒ it
Is this the sign of NinJa NJ ?
no, this is, ninjas are sneaky nj
what he said ^^
relative path statements will remain correct
../../../folder/file
will always be up3 down folder and access file
relative links will work if the system is not installed at the root of the live server (or moved later)
or use a config that sets a full basepath at install, and is included in all other files with a well document edit point
being that web-devs are probably operating with an incomplete specification, expected to produce a perfect rendition of what senior somebody keeps changing every second day
how hard will the browndraft hit when senior management decides they want it relocated, and developers havent left a simple path for the change (that the spec they are working off doesnt include)
browndraft:
noun;perjorative, brown-downdraft. the effect where senior people sh_t on their immediate subordinate and the sh_t ball develops increasing momentum as it rolls down, each layer of seniority adding their own sh_t onto their ,subordinate till it finds someone that all the above agree is responsible
senior:
adjective;. imaginary status assumend by people who have risen in a hierachy to the point that their ill-considered decisions can be corrected completely by lower ranks without their notice, allowing them to take credit without doing anything
developer:
1;noun, lowest layer in a browndraft
2;noun, one who as been able for so long, to produce so much, from so little, that they have become able to produce anything from nothing
see also …
more effing homework, eye dee ten Tee errors
I D 10 T
not a problem, just transfer the cash to my paypal account and I will forward you a link to any of the prewritten scripts freely available to download
how big are the images ?
printers are 600-2400dpi
viewing images, the best screens are ~220dpi so the image does not have to be big, a 5000x4000 image looks the same onscreen as a 1000x800 image (25x smaller)
maybe resize the images for the intended use, they will be smaller in proportion to the reduced square-size and faster to download
well, umm, no, it isnt,
e-mail address #
Any string that matches the following [ABNF] production:
1( atext / "." ) "@" ldh-str 1( "." ldh-str )…where atext is as defined in [RFC 5322], and ldh-str is as defined in [RFC 1034].Examples:
foo-bar.baz@example.com
must contain @
AJAX
Let me google that for you
the servers update, the updates are reflected in the page
knowing the acronyms is the hard part, cant google for it if you havent already got the name
In Las Vegas some worshippers at Sunday services will give casino chips rather than cash when the basket is passed.
Since they get chips from many different casinos, the churches have devised a method to collect the offerings.
They send all their collected chips to a nearby Franciscan Monastery for sorting. Then the chips are taken to the casinos of origin and cashed in.
These monks are called chip monks
.
Sorting gambling chips, is very tiring work,
chip monks need food that will not allow their mental accuities to to diminish, fish is the ideal food
high in omega whatevers, and protein
chip monks are fed by fish friars
}while ($data = fgetcsv($csvfile,1000,"¤","|"));
delimiters; end data, data separator, can only be single characters
so long as |$| is unique as the end data record marker,, the above should work
fingers crossed
sometimes graphic character eg. ¤ can be the display figure for a non-characterset letter,
if the data input is not the same language/characterset as the database the ¤ could represent any of several million possible high order utf characters, or 10hex lower order control character
eg english has 26 letters in 2 cases, 10 digits about 40 punctuations,
Japanese has 50K Kanji
ANSI <=> UTF8 is one such problem
<?php echo "I am lazy"; ?>
after all determinatins of error messageif(!filter_var($_POST['Email'], FILTER_VALIDATE_EMAIL)){$info= "Invalid Email Address";}
there is no exit point\
nothing tells the code to skip inserting the data into the database if there is an error that populates $info35.if (!empty($_POST['Fname']) && !empty($_POST['Lname']) && !empty($_POST['Email']) && !empty($_POST['Phone'])){}
this is already accomplished above, the code checks the column data is not blank and does basic validation earlier, so35.if (!$info){}
The error message is browser specific, not website specific.
The installed language of the browser, and whether the translation is available, determines the content of the error message.
NOT a good idea to depend upon anything that requires the user to have or do anything properly.
serverside validation, and controlled error messages is better.
Especially as 70%+ of users still do not have a browser that supports any part of html5
70% of something, is better than 100% of nothing
there is so much freeware in php that the product has to be exceptional to sell.
the added impetus of being on a site surrounded by other programs for sale, may make a significant difference,
the main thing though, will always be, is the script good enough to pay for.
If it is good enough try before you buy, expiring demos. or the shareware model may work.
check out google webfonts for the solution, they have implemented a pretty good system that works,
you can do it yourself,
BUT, big but,,
do you want to add between 15 and 90 seconds to download page times,
If you use google, there is a pretty good chance that the font you want will be DL by another google user/designer, like all the javascript library, and you wont get apparant downlodelays, as the font will be in TIF
I use similar
I dont think p will ever equal 3
<?php if(isset($second)){ $third == $second; }
if($first - $third) <= 5){$p='1';}
elseif($first - $third > 5){$p='2';}
else $p='3';
echo "<img src='images/img$p.png' />"; ?>
start tv episode voiceover..
* Does insane paranoia automatically decrease once you get more than a month in or ten posts?
* will it always stay an unhelpful peanut,
* stay tuned for the next episode in "life of a scared mind"
..end voiceover
Tinabina, post what you need to get the help you need, css files will identify your class names, about the most unscary thing there could be, someone may discover you like blue hover states.
your css file is DL to every user who accesses your site, so there are no issues of security to answer, its already out there.
some people like to push their agenda, some people like to help, some manage to do both at the same time.
looks like everybody except one, is trying to help, doesnt take a roll of the dice to determine which one. generally post count and 'attaboys' go together, you can see the attaboys list by clicking the username
Ezzeral got the honorific 'most valued' and is a moderator (bit like the 'Thats god, he likes to pretend he's bill Gates' jokes) sits in the top10
Iamtwee is in the top20 on every list, problems solved, people who get attaboys, most posts,
the number of users- couple hundred thousands, you got 7 & 13 on your side
Corazon, not forgettin him(/her no sexism intended) is in the same logical progression, ex table - divs are positioned in css, need …
<li><a id="facebook" rel="_blank" href="https://www.facebook.com"> </a></li>
ie is quirky it was a big nothing, should now be a big space character & should be clickable
site.com, is somebody else's url, Do Not post faked urls they always turn out to belong to somebody, and DaniWeb will get blamed for your being ignorant of the social niceties.
Use your url, and/or post the code that the screwup applies to, then help will be more likely to work, since those who care enough to try and unravel the screwup will view source to find your css
those who care, usually does not include me :)
d'ya think any of the ops are going to read this crap after 7 years
Communicate with the client, there will be a hundred changes in requirements during the development
test run every aspect you can imagine, and those you can't, before it goes live,
I, middle aged, old fashioned,
typify the small company C-levels who will sign your cheques
websites for them and there clients is not the same as websites for them and their clients
and will be the difference between referrals and no referrals,
You can learn php, and have millions of potential clients, develop with free software, make use of millions of other developer's input and work
You can learn coldfusion, but there are limited clients, limited hosts with cf support, and expense in purchasing the software, and the licenses for distribution
You can learn asp, and attempt to break into a closed shop of MS contracts, and expense in purchasing the software, and the licenses for distribution
You can learn jsp but there are limited clients, and expense in purchasing the software, and the licenses for distribution
possibility
edit your stylesheets
0px is incorrect and may cause compliant browsers to fail to properly display the element
chrome is compliant, IE is not
0 is scalar and has no units, (0em 0px 0pt 0% 0en 0in 0cm are equally invalid)
top: 0px; should simply be top: 0;
find & replace " 0px;" " 0;"
#container { margin: 0 0px 0 0px; padding: 0px 10px; height:100%;
corrected #container {margin:0;padding:0 10px;height:100%;
padding: 3px 5px; text-decoration: none; border-left: 0px dashed #E5E5E5; border-right: 0px dashed #E5E5E5; color: #fff; }
just how do you have a colored border 0px wide
corrected padding:3px 5px;text-decoration:none;border-left:0;border-right:0;color: #fff;}
somebody made a wordpress theme, does not mean it is good, this one isnt
run the css through the w3c css validator, http://jigsaw.w3.org/css-validator/
teedoff: adad is a javascript local variable defined in the script at the top of the op function show_hide(adad)
it only exists within the scope of the function, you can code many functions with the same local variable name without error, makes it simpler to reuse functions
DG12
<a href="javascript:show_hide('info');"> </a>
<div id="Informações" style="display: none;">
the parameter in the function call and the id of the hidden div, really need to match
probably easier to change the hidden div id = "info"
edit; apologies Phillipe, already answered
<a href='*' onclick="JAVASCRIPT:window.location.href='list_upload.php?reqid=<?php echo $row['reqid']; ?>';" title="View" >View</a>
pixels are not a layout tool, the size of a pixel is dependant on screen resolution
current best practice is to use em or % as dimensions for layout, these are scalar quantities that automatically adjust to window size screen resolution and user preference
a page laid out (example) as
body { width:100%; margin:1%; padding:1%;}
.menu { width:98%; margin:auto; padding:1%;}
always looks the same
added benefits of scalar dimensions;
content remains onscreen in partscreen windows, without horizontal scroll bars (Which absolutely P__ off users), on a large range of devices from phones(200px screen) to my laptop, plugged into a wall projector (3072px screen),,
and text auto adjusts to visual impairment font settings, making the site disability friendly
Rent an avis car, rob a bank, bank sues avis
steal a car, rob a bank, bank sues theft victim
buy a hammer, break a window, sues hardware store??
beyond sad, pathetic
in the form <select name='payment'
in the handler if($_POST['Payment']
Case sensitive?? maybe; payment ≠ Payment ;
$_POST == "";//none of the checks return true, default 'else' result Paypal
change either the html form or the php handler, so they both use the same name
dont get many UK tv in Aus or Can, but, the byline in old
.Net PC_Direct PC_Pro Computer_Life
magazines
The Times on Sunday (2 weeks late)
3 books on my shelves
awards out the wazoo
guru << happygeek
why not start with this
<?php
<form action="verxbh738hxzge2d8a.php?nav=zjxpmovdtzjd" method="post" enctype="multipart/form-data"
php is not html
changing locations, not opening a window
"","top=0,left=400,width=1000,height=1000,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes";
is bull
you can specify filetypes for compression in apache's .htaccess file
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
which acts on all files of the designated extension or mime
the text above is from my .htaccess file
or in php on a per file basis
example style.css renamed to style.css.php
<?php header ('content-type:text/css');
ob_start("ob_gzhandler"); ?>
.rss-box {margin:1em 3%;padding:4px 8px;background-color:#ededed;border:2px dashed #7485CA;}
.rss-title, rss-title a {font-family:"American Typewriter", "Trebuchet MS", Trebuchet, Lucida, sans-serif;font-size:100%;font-weight:bold;margin:5px 0;padding:0;letter-spacing:1px;}
//huge amount of css
<?php ob_flush();?>
it may be more productive to combine the .js files and .css files into 1 if they are small,
other ways to speed up your site
http has limits on simultaneous file transfers from a single domain
create subdomains on your site, I have www pics img, as subdomains so can parallel 2 files from each subdomain (=6) instead of only 2 from www, all subdomsins point to the same root of mydomain.com keep paths constant
Its not urgent to me
so I'll make coffee
. . . . .
I'm back, still not urgent
the question is poorly phrased,
the op tells nobody any information,
you might consider explaining
before some person can pull a magic solution out of their [**expletive deleted**]
more politely, Ive had ma cawfee,
would you explain what is already created so that any body who knows an answer may answer
For a pre-written script it is often as simple as checking some boxes, for a self written script it is often as simple as adding some checkboxes
Tables are not used as layout, since the 90s. they were the tool then only because there was nothing else
tables as a layout tool are 80% layout 20% content, the page becomes huge, slow, difficult to edit, every page must contain the full table
css layouts are smaller, simpler to maintain, the layout is downloaded once, in the style sheet, the page is 80% smaller = 500% faster to load
even with data from a db, dynamic pages, css layout is easier to construct, maintain, and design, tables to present the information, tables have that ideal use, for tabular data,
there are still sites laid out in tables,
alligators are the remnants of dinosaurs, the same reason, too stupid to die out.
the source of this error is the missing closing brace in line 3 as matthew wrote, errors are usually just before the reported line number
the missing quotes (per the OP) $_SERVER[[b]'[/b]variable[b]'[/b]] will cause another set of problems later
format is not optional
good code editors provide code highlighting that will negate this occurring again
the PHP manual is available online, as a downloadable text,chm ,any number of file types
perhaps, get the php manual and as a last resort, and, when nothing else works RTFM
no you dont want to remove it,
you want to edit it to ensure it matches your site structure and requirements
User-agent: *
Disallow: /cgi-bin/
Disallow: /other_folder/
Disallow: /another_folder/
Disallow: /pics/
Sitemap: http://www.mysite.com/sitemap.xml