Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: simonpearce
  • Content: Threads
  • Order by date
  1. simonpearce

    rounding to decimal places

    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...
  2. simonpearce

    Outlook freezing when sending attachements

    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
  3. simonpearce

    Moving photos gallery

    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...
  4. simonpearce

    Outlook 2003 Calendar - show day names in work week view?

    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
  5. simonpearce

    Powerpoint startup defaults

    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
  6. simonpearce

    Screen settings - brightness, etc

    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...
  7. simonpearce

    Macros in Word 2003

    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...
  8. simonpearce

    preg_match question

    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"...
  9. simonpearce

    Basic coding error

    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"; } ?>...
  10. simonpearce

    Variable problem!

    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=&quot;checkbox&quot; name=&quot;tlds&quot; value=&quot;.com&quot;>.com <input type=&quot;checkbox&quot...
  11. simonpearce

    Extracting information from a string

    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 &quot;word1 word2 word3 anythingelse&quot; eg &quot;simple domain aardvark anythingelse&quot; I need to be able to get...
  12. simonpearce

    Too many messages in Outlook?

    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'...
  13. simonpearce

    Removing hyphens!

    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...
  14. simonpearce

    onmouseover/ommouseout not working for me!

    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=&quot;text/javascript&quot;> var revert = new Array(); var inames = new Array('1', '2', '3'...
  15. simonpearce

    Changing the output year format

    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...
  16. simonpearce

    Problem with Date::Calc

    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 &quot;month&quot;) {$newrenewdate = Date::Calc->today()...
  17. simonpearce

    Changing the number auto_increment starts from

    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
  18. simonpearce

    mySQL code

    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
  19. simonpearce

    Spliting a variable into two

    Here we go again (I'm learning *so* much today!) I want to split a variable into two eg: $variable = &quot;name=value&quot; and I would like $name = &quot;name&quot; $value = &quot;value&quot; I imagine I would need to use the split function but how!? Simon
  20. simonpearce

    date format

    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

Part and Inventory Search

Back
Top