DaveAmour 160 Mmmmmm beer Featured Poster

Try this

    function validate(dt1, dt2)
    {
        var jdt1 = Date.parse('20 Aug 2000 ' + dt1);
        var jdt2 = Date.parse('20 Aug 2000 ' + dt2);
        var diffMs;
        var diffMins

        if (isNaN(jdt1))
        {
            alert('invalid start time');
            return false;
        }

        if (isNaN(jdt2))
        {
            alert('invalid end time');
            return false;
        }

        if (jdt1 > jdt2)
        {
            diffMs = (jdt1 - jdt2);

            diffMins = Math.round(((diffMs % 86400000) % 3600000) / 60000); // minutes

            alert('start is greater by ' + diffMins + ' minutes');
        }
        else
        {
            diffMs = (jdt2 - jdt1);

            diffMins = Math.round(((diffMs % 86400000) % 3600000) / 60000); // minutes

            alert('start is less equal by ' + diffMins + ' minutes');
        }

        return true;
    }
DaveAmour 160 Mmmmmm beer Featured Poster

Is this any help?

` <style type="text/css">
html body
{
margin: 0 atuo;
margin-top: 20px;
}

    #main
    {
        margin: 0 auto;
        background-color: lightgreen;
        overflow: auto;
        text-align: center;
        height: 300px;
        width: 300px;
        color: blue;
        display: table;
        padding: 40px;
    }

    #box
    {
        display: table-cell;
        vertical-align: middle;
        height: 200px;
        border: 1px solid #000;
        width: 200px;
        background-color: #FFA500;
        border: 1px solid silver;
        color: blue;
        font-weight: bolder;
        font-size: 24px;
        padding: 30px;
        margin: 0 auto;
    }
</style>`
DaveAmour 160 Mmmmmm beer Featured Poster

What is your other problem? If it is different you should open a new question.

DaveAmour 160 Mmmmmm beer Featured Poster

Will this work?

$result = str_replace(' ', '', $input);

DaveAmour 160 Mmmmmm beer Featured Poster

Does this kind of thing help?

$start_date = new DateTime('2007-09-01 04:10:58');

$since_start = $start_date->diff(new DateTime('2012-09-11 10:25:00'));

echo $since_start->i.' minutes<br>';
matrixdevuk commented: Yay, you got the answer. :D +0
DaveAmour 160 Mmmmmm beer Featured Poster

Its 1

matrixdevuk commented: You goofed real bad. +0
Gribouillis commented: haha! +14
DaveAmour 160 Mmmmmm beer Featured Poster

Dirty hack but you can try <label style="position: relative; top: -44px; left: 200px">State:</label>

DaveAmour 160 Mmmmmm beer Featured Poster

You can hit F12 in most browsers and see what CSS is in action to help diagnose.

Source control is so easy to implement, can't recomend it enough.

DaveAmour 160 Mmmmmm beer Featured Poster

Should it have a for attribute?

Do you not have source control - if so you can check what has changed!

DaveAmour 160 Mmmmmm beer Featured Poster

Probably the apostrophe in industry's

DaveAmour 160 Mmmmmm beer Featured Poster

You have posted this 3 times

DaveAmour 160 Mmmmmm beer Featured Poster

Can you post the entire page or is it online somewhere?

DaveAmour 160 Mmmmmm beer Featured Poster

Any JavaScript in your page?

DaveAmour 160 Mmmmmm beer Featured Poster

You have prodid in your url. You are getting productID though in your code.

DaveAmour 160 Mmmmmm beer Featured Poster

Because image_id cannot be both 7 and 9 right?

What is it you want to achieve?

Maybe

sql = "SELECT * FROM image_upload WHERE location='article' AND (image_id='7' Or image_id='9')";

DaveAmour 160 Mmmmmm beer Featured Poster

Probably unclosed tag or speech marks.

DaveAmour 160 Mmmmmm beer Featured Poster

You have records in the table?

DaveAmour 160 Mmmmmm beer Featured Poster

You can try with a cable or maybe even buy a usb network adapter such as:

http://www.ebuyer.com/262952-tp-link-tl-wn822n-wireless-n300-high-gain-usb-adapter-tl-wn822n

DaveAmour 160 Mmmmmm beer Featured Poster

What game is this?

DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster

Line 7 you declare bytes as Byte. I think that should be an array of Bytes.

DaveAmour 160 Mmmmmm beer Featured Poster

Shit sorry that wasn't quite in Q A format!

DaveAmour 160 Mmmmmm beer Featured Poster

My dog has no nose.

How does he smell?

Of badger blood.

DaveAmour 160 Mmmmmm beer Featured Poster

Do you get an error message?

DaveAmour 160 Mmmmmm beer Featured Poster

Cursors are slow. Avoid them if you can, it will be much faster.

DaveAmour 160 Mmmmmm beer Featured Poster

Try putting [] around the words with spaces in

DaveAmour 160 Mmmmmm beer Featured Poster

What database are you using?

Does Bank Account really have spaces in? Also does Account Name really have spaces in?

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

A hashed password in my system looks something like this:

$2a$10$dfLab4y467mdxJeSDlvAIOOjKmrW8Tbm80IN9qm5WVd7ALGZTQkBe

In my table they are all the same length - this is usually part of the hashing algorithm.

When someone attempts to logon you take the password they typed in and hash it. You then compare it with the hashed password in the database. If they are the same then you can log them on. If someone were to get their hands on your database they would not be able to use the passwords as they would not know what the actual password is. It is practically impossible to reverse a hash.

Check out http://en.wikipedia.org/wiki/Cryptographic_hash_function

I don't do PHP so cannot advise on the second part of your question. Generally hashes are the same length. All of them in my table are 60 chars.

From wikipedia: A hash function is any function that can be used to map digital data of arbitrary size to digital data of fixed size.

Hope that helps.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok I'm at work now - maybe you have time to get this in - I did this quickly in a few minutes so its not up to my usual standards - lacks error checking and commnents etc but maybe it will help in time?

using System;

class InchesToFeet
{
    static void Main()
    {
        //Declare variable
        int inches = 49;

        //output to the screen
        Console.WriteLine(inches.ToString() + " inches is ");
        
        TotalFeet(inches);

        TotalYards(inches);
        
        Console.ReadLine();
    }

    //Method to pass inches
    public static void TotalFeet(int inches)
    {
        //Calculation conversion for feet and inches
        int feet;

        int tInches;
        
        feet = inches / 12;

        tInches = inches % 12;
        
        Console.WriteLine("{0} feet and {1} inches", feet, tInches);
    }

    public static void TotalYards(int inches)
    {
        int feet;
        int tfeet;
        int yards;
        int tInches;

        feet = inches / 12;

        yards = feet / 3;

        tfeet = feet % 3;

        tInches = inches % 12;

        Console.WriteLine("{0} yard {1} feet and {2} inches", yards, tfeet, tInches);
    }
}
DaveAmour 160 Mmmmmm beer Featured Poster

Ahh sorry can't help then - literally just off to work in 1 minute. Very sorry.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok leave it with me and I'll have a look later today. Is this quick enough or is this due today?

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

Ok sorry for saying its a mess, just being honest!

Is there any flexibility in these instructions. I wouldn't want to put a Main method in the InchesToFeet class as then this class is difficult to reuse.

If there is no flexibility and you have to do exactly as told I will happily code this for you.

DaveAmour 160 Mmmmmm beer Featured Poster

Dude thats a mess!

Tell me in plain english what you want to achieve and I'll code it for you along with some explanation of good practice - eg classes should be named after nouns - eg Car, Person, Animal, Customer and the operations or methods should be named after verbs eg customer.Sell() or customer.Pay() and so on

Also your methods should not use Console as then they are tied to Console programs - you could not reuse your code in other apps - eg WinFroms or Webapps.

Better to have conversion methods return just the value and then output it to the Console from the main program or client code.