Hi,
I'm trying to round to decimal places - this code works on the whole but if that answer is 14.1 I want it to show as 14.10
Any ideas?
Simon
<script language="javascript"><!--
function doRound(x, places) {
return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
}
function...
Hello,
We have Outlook installed on two machines in the office and everytime you attach a file to it and press send it freezes.
We've tried several different versions (settling on 2003) but it still does the same.
Other computers in the office are fine.
Any ideas?
Simon
Hello,
I would like to have a 1" wide by 6" deep rectangle with thumbnails of photos moving up and down.
When you move the mouse up it'll scroll quickly up and the same down too.
It would also be good if you could click on an image and have it pop up larger in a new window.
Does anyone know...
Does anyone know if it's possible to see the days of the week along with the date when in work week view?
At present it shows 18 July - 19 July - 20 July, etc
but it would be useful if it also said Monday, Tuesday, Wednesday, etc
Cheers
Simon
Hello,
Everytime I start PowerPoint (2003) it sets the default page as 'paper landscape' and put a silly template on the screen.
Is is possible to set it so it always starts with 'a4 portrait' and a blank template?
Cheers
Simon
I have dual monitors connected to my PC but one is brighter than the other and I never seem to be able to get them the same.
We also use pantone colours here and recently made a mistake as the screen colours were off.
Anyway I can set my monitor colours (brightness, contrast, etc) do a proper...
I've just upgraded to Office 2003 and everytime I open or create any Word doc, I get:
"The macros in this project are disabled . .. "
I've tried changing the security to lower but then I just get a popup box asking if I want to enable or disable them.
I never use macros so why does this...
Hello,
I'm using the code below to check the URL of the current page to see if the word 'apple' appears. I would like to adapt it to check whether 'apple' OR 'banana' appears - what would I need to change?
<?php
$thispage = $_SERVER['REQUEST_URI'];
if (preg_match ("/apple/i"...
Hi! I'm passing some information through a browser to a .php page but this is causing me a nuisance.
The code below ALWAYS outputs "apple" no matter what $prefix is.
Why doesn't this work:
<?php
if ($prefix = "apple") {
echo "apple";
} elseif ($prefix = "banana") {
echo "banana";
}
?>...
Hi Folks,
I have some information passed to a script from a form.
$query->param('tlds') grabs that info which is actually made up of some checkbox information, ie
<input type="checkbox" name="tlds" value=".com">.com
<input type="checkbox"...
Hi everyone,
It's been a while since I posted here - let's see if the expert advice is still as good!
I have a variable (let's call it $variable) - that is in the format
"word1 word2 word3 anythingelse"
eg "simple domain aardvark anythingelse"
I need to be able to get...
Hello.
I'm running Outlook 2002 on XP. I like to keep e-mails to hand for reference.
I've got about 8000 in my inbox - is this OK? At what point will there be too many? It seems to be running OK (obviously not as fast as when there was only 10 messages!).
Would be interested to hear peoples'...
Hello! I'm using this short piece of code to make $shortusername the first 20 characters of the variable $FORM{'domain'}.
$shortusername = substr($FORM{'domain'},0,20);
. . . but I need to be able to remove any hyphens that might be in the $FORM{'domain'} variable - how would I go about doing...
Hello!
I'm using the code from:
http://www.yourhtmlsource.com/images/rollovers.html
which seemed quite good. I have about 11 images I want to be able to swap and I'm using this code:
<script type="text/javascript">
var revert = new Array();
var inames = new Array('1', '2', '3'...
Hello! This little piece of code here comes from the OpenSRS system and very nicely outputs the next six years as four digit numbers (2003, 2004, 2005, 2006, 2007, 2008)
BUT can anyone make it so it only outputs two digit numbers (eg 03, 04, 05, 06, 07, 08)????
Hope someone can help!
sub...
Hello,
An odd one I can't get round:
The first bit works but when I try to get Date::Calc to work with a date other than todays - it gives up!
use Date::Calc::Object qw(:all);
#THIS WORKS - using today():
if ($FORM{'Renew'} eq "month") {$newrenewdate = Date::Calc->today()...
Hello!
When I create a new table, I want a field to use auto_increment but I'd like the number to start from 100 rather than 0 - is that possible?
I'm quite new to MySQL, but can't find anything in the docs.
I'm using MyISAM if that makes any difference!
Thanks all
Simon
Hello!
I'm looking for some basic code that will let me add a record to a mySQL table hosted on the same server.
Nothing fancy - any ideas anyone?
Simon
Here we go again (I'm learning *so* much today!)
I want to split a variable into two eg:
$variable = "name=value"
and I would like
$name = "name"
$value = "value"
I imagine I would need to use the split function but how!?
Simon
Hi all.
I need to get the date down to 8 characters eg:
yyyymmdd
so today, 3rd April 2003 would be 20030403
Any ideas what I could use without using any modules?
Simon
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.