www.webdeveloper.com

Search:

Type: Posts; User: paulnic

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    2,247

    After some research i believe this is a...

    After some research i believe this is a fundamental computing problem with floating point numbers.

    Does anyone have a fix/solution to this...?
  2. Replies
    27
    Views
    2,247

    round(152.77499999999998,2) Any ideas how to...

    round(152.77499999999998,2)

    Any ideas how to produce the correct answer 152.77 and make it scalebale with all numbers not just this example?
  3. Replies
    27
    Views
    2,247

    Yes this is a major pain in the a$$! ...

    Yes this is a major pain in the a$$!

    Javascript rounds it to 152.77 (correct) and PHP doesnt and i need them to both be the same... agghhh!!
  4. Replies
    3
    Views
    1,297

    PHP Round function

    Hi,

    I'm a little bit confused - can someone explain this to me:

    If i say round(22.044960000000003,2) the answer becomes 22.04 (expected)
    If i say round(152.77499999999998,2) the answer becomes...
  5. Replies
    27
    Views
    2,247

    In PHP if you say round(152.77499999999998,2) the...

    In PHP if you say round(152.77499999999998,2) the result is 152.78
  6. Replies
    27
    Views
    2,247

    thanks but that doesnt work. ...

    thanks but that doesnt work.

    152.77499999999998 becomes 152.77 not 152.78
  7. Replies
    27
    Views
    2,247

    Imitate PHP Round Function in JS

    Hi

    When rounding these 2 numbers in PHP and JS i get the following results:

    22.044960000000003

    PHP = 22.04
    JS = 22.05

    152.77499999999998
  8. Replies
    3
    Views
    1,963

    Thanks hastx but that space isnt actually there -...

    Thanks hastx but that space isnt actually there - i must have added it by mistake when pasting it into here. Have tried your suggestions (7 bit and quoted) but no change... When i remove the 1st 2...
  9. Replies
    3
    Views
    1,963

    PHP Mail - MIME Composition help

    Hi,

    I have written some code which generates and sends an email with attachment. It works fine when viewing in hotmail but in Outlook the html portion is messed up. It also seems to be adding the...
  10. Replies
    3
    Views
    2,631

    Website load speed best image format?

    Hi,

    To increase load time on my website what is the best image format jpeg or png? I always assumed jpeg as they are smaller but have heard from some that png's are better??
  11. Replies
    2
    Views
    2,209

    yes - trimmed down for this post - thanks anyway

    yes - trimmed down for this post - thanks anyway
  12. Replies
    2
    Views
    2,209

    HTTP POST Not working (408 Error)

    Hi,

    I am having some problems trying to get a post request to work from a payment provider (WorldPay) to my host server. Basically WorldPay does a callback to a script on my website if/when a...
  13. Replies
    1
    Views
    1,906

    Submit form on Meta Refresh?

    Is it possible to submit a form and post some data on a meta refresh??

    i have some html which i want to submit after 5 seconds but i dont want the user to have to click a submit button - is this...
  14. Replies
    6
    Views
    4,025

    i've confused myself now... To get that all i...

    i've confused myself now...

    To get that all i would have to say is:

    SELECT c.contractorId, c.contractorName, c.addressLine1, c.addressLine2, c.addressLine3, c.town,
    c.county, c.postcode FROM...
  15. Replies
    6
    Views
    4,025

    Table contractor has every contractor in it. ...

    Table contractor has every contractor in it.

    Table works has works in it and each works is related to a contractor, however not all contractors are in this table.

    So my not in is saying give...
  16. Replies
    6
    Views
    4,025

    MySQL "NOT IN" Performance Problem

    Hi,


    I am using a NOT IN on a subquery in MySql and the performance is really bad... Is there another way of doing what i am doing below w\o using NOT IN?

    Thanks


    SELECT c.contractorId,...
  17. How to get the height (in Pixels) that is taken up by the address bar etc

    Hi,

    as title says i need to calculate the height in pixels that is taken up by the address bar, file menu and any other toolbars that are present.

    Any ideas?
  18. Replies
    4
    Views
    5,901

    thanks for your reply Could you demonstrate...

    thanks for your reply

    Could you demonstrate how to redirect mysite.com/index.php to www.mysite.com?

    thanks

    paul
  19. Replies
    4
    Views
    5,901

    .htaccess - redirect index.php and non www

    Hi,

    I would like my .htaccess file to redirect the following urls to:

    http://www.mysite.com/

    The urls to redirect are:

    http://www.mysite.com/index.php
    http://mysite.com
  20. Replies
    1
    Views
    1,106

    404 Page for .php files?

    Hi,

    I have set up a custom 404 page for my website and it works fine except for files with the extension .php. For example if i put http://www.mysite.com/blahblablah.php into the browser it wont...
  21. Replies
    0
    Views
    687

    dijit.layout.ContentPane question

    Hi,

    Is it possible to set the content property of a dijit.layout.ContentPane to a js object? e.g.

    this.Container = new dijit.layout.ContentPane({
    title: "Test",
    ...
  22. Javascript not executing when used in innerHTML div

    Hi,

    I am inserting html into a div which calls various js functions, it works fine when not inside the div but now inside the div none of the onclicks are working.

    e.g code:


    <div...
  23. Replies
    1
    Views
    3,588

    MySql create calendar table

    Hi,

    You would have thought there would have been many scripts out there that create calendar tables but i cant seem to find a simple one that does what i want...
    Basically all i want is to create...
  24. Hi, thanks but that is what i have got atm. That...

    Hi, thanks but that is what i have got atm. That means i need an if statement or a case for every possible variation of boxes checked. This means i need about 20 if statements which i dont like...
  25. This may help a bit: here are some example...

    This may help a bit:

    here are some example tables (options in my select)

    Type1_LookupProduct
    Type1_LookupAddress
    Type1_User
    Type2_LookupCountry
    Type2_Address
    Type2_County
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles