DaveAmour 160 Mmmmmm beer Featured Poster

Do you have any code at all yet?

miazara commented: #include <iostream> #include <iomanip> using namespace std ; void main () { int total_month; float total_salary = 0, total_pay = 0; c +0
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

Ok and the same characters for the key?

Also any min and max size for the input and for the key?

DaveAmour 160 Mmmmmm beer Featured Poster

Ok so which characters do you want to allow?

DaveAmour 160 Mmmmmm beer Featured Poster

You can restrict which characters are allowed, that's fine. But you cannot encrypt like that as you will not be able to decrypt. Does that make sense?

DaveAmour 160 Mmmmmm beer Featured Poster

Well I can code you an example if you like but I would need to ask some questions first.

So first question - what is the range of permissable characters you wish to encode - is it just letters and numbers for exmaple or can we have spaces, special characters etc?

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry but that just looks like an awful mess and just looks all wrong to me.

I wouldn't code it that way.

Also if you encode numbers to 0 then when you are decrypting how to you know what zero is since 1 through to 9 would encrypt to 0 right?

DaveAmour 160 Mmmmmm beer Featured Poster

Ok I understand now. Let me take a look...

DaveAmour 160 Mmmmmm beer Featured Poster

Right sorry I assume this was Vb.net! Didn't even notice which area I was in.

Sorry

DaveAmour 160 Mmmmmm beer Featured Poster

So are you saying whatever you want to encrypt you had to provide a key of the same length?

So if you want to encrypt a 20 character string you have to provide a 20 character key?

DaveAmour 160 Mmmmmm beer Featured Poster

No you can create them on the fly. What is it you want to do specifically?

DaveAmour 160 Mmmmmm beer Featured Poster

Looks oks to me. Can you zip and send me the whole solution?

Message me for my email if you want to send it.

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

"how can i know the open source mobile application" doesn't make much sense - can you clarify please?

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

I do lots of C# too.

DaveAmour 160 Mmmmmm beer Featured Poster

Where is the actual compile error?

DaveAmour 160 Mmmmmm beer Featured Poster

Show me your code?

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry I just realied you might want an Else Statement - put one in if you need one.

DaveAmour 160 Mmmmmm beer Featured Poster

No need for an Else statement since that does nothing.

Dim reply As Integer = MsgBox("Are you sure you want to Logout?", vbYesNo, "Confirmation")

If reply = vbYes Then
    Unload Me
    frmAuthentication.Show
End If
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

Can you reword "how can i have 2 choices example i want vb no and just stay with my form help me.."

It is not clear what you need.

Thanks

DaveAmour 160 Mmmmmm beer Featured Poster

Will this work?

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

DaveAmour 160 Mmmmmm beer Featured Poster

A cypher is an algorithm for encrypting/decrypting.

Why are you adding two strings - AB + AB - I don't understand that. Can you explain please?

DaveAmour 160 Mmmmmm beer Featured Poster

You can embed images into your program yes using Resources.

Is this a Winforms App?

DaveAmour 160 Mmmmmm beer Featured Poster

My Skype name is dave_amour

DaveAmour 160 Mmmmmm beer Featured Poster

Because Facebook likes should be given because someone likes your site. If they have to like your site to use it then that is abusing the system. Its pretty simple really - don't you see that?

DaveAmour 160 Mmmmmm beer Featured Poster

I don't have a FB account, can I view your site?

Also how will you know who the user is?

This is an awful idea!

DaveAmour 160 Mmmmmm beer Featured Poster

Yes you just install SQL Server and the couple of other steps I mentioned, that's all.

You can try me on skype but not today as I'm working. Tomorrow is ok though.

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

You can do it via querystring or via a cookie but it still requires a trip to the server of course.

DaveAmour 160 Mmmmmm beer Featured Poster

You will of course need to make sure jquery is included in your page and your code is within script tags etc.

DaveAmour 160 Mmmmmm beer Featured Poster

"Temporary tables records not invisible in html page" should be "Temporary tables records not visible in html page"!

DaveAmour 160 Mmmmmm beer Featured Poster

A sports direct mug of coffee. Kick starts me each morning!

http://1000heads.com/wp-content/uploads/2013/02/mug.jpg

DaveAmour 160 Mmmmmm beer Featured Poster

You don't want all that code inside a button click event handler.

Break your code up into discrete classes and methods of specific functionality. It will make everything much easier.

Your button click code should be very simple like below - note this is pseudo code (http://en.wikipedia.org/wiki/Pseudocode)

If FormIsValid() Then
    If UserExists() Then
        ShowUserExistsMessage()
    Else
        SavePicture()
        SaveRecord()
        ClearForm()
    End If
Else
    ShowInvalidFormMessage()
End If

So you can write a Function which returns a bool if a user exists. Try and think like this rather than having one massive block of code which does everything. It will be easier, more fun, easier to fix and add to later and easier for other people to understand and easier to reuse code too.

ddanbe commented: Great advice! +15
Reverend Jim commented: Always worth pointing out. +12
DaveAmour 160 Mmmmmm beer Featured Poster

Hi

I use TinyMCE and its great and easy to use.

Not sure what you mean by "able to upload image from computer directly without url"?

Can you clarify that point please?

DaveAmour 160 Mmmmmm beer Featured Poster

You can run it on a PC or Server. There are different versions. There are all the express versions which I think are free and then for the full blown software you even get developer and server versions.

For the connection string, below is a real example from one of my projects.

"data source=Holly;initial catalog=Paxium;persist security info=True;user id=fred;password=MyPassword"

The data source can be anything which resolves to an IP address. So you can use an actual IP address or a computer name or a url - doesn't matter as long as it resolves ok.

Initial Catalog is the database name, user id is the user name in SQL Server and password is it's password in SQL Server.

You will often need to enable the right protocols when installing a new SQL instance - https://www.simple-talk.com/sql/database-administration/provisioning-a-new-sql-server-instance-%E2%80%93-part-three/

You will also need to make sure any firewalls are open for port 1433.

Hope that helps.

DaveAmour 160 Mmmmmm beer Featured Poster

How you define "SALES are performed" - is that via someone filling in a form and clicking a button?

DaveAmour 160 Mmmmmm beer Featured Poster

I may be able to help but I'm not clear on what you are actually asking for. Can you clarify/summarise what you need?

DaveAmour 160 Mmmmmm beer Featured Poster

If it is then just check if certain things are in the query string and only run the JavaScript if they are not.

DaveAmour 160 Mmmmmm beer Featured Poster

I don't do Java but could it be that you need:

while ( (bufl += inputReader.read(buf)) != -1)

or something along those lines?

DaveAmour 160 Mmmmmm beer Featured Poster

Is prayer-times.php the same page - ie are you redirecting to the same page?

DaveAmour 160 Mmmmmm beer Featured Poster

Well you took that well, better than anticipated :)

DaveAmour 160 Mmmmmm beer Featured Poster

This probably won't help and will only annoy you but always develop with the versions you are deploying to!

DaveAmour 160 Mmmmmm beer Featured Poster

I know it works perfectly but I feel so dirty now!

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
                                    .
DaveAmour 160 Mmmmmm beer Featured Poster

Yep that sounds about right.

Sorry I seem to have a knack for causing trouble!

DaveAmour 160 Mmmmmm beer Featured Poster

Ok I see.

Well I did join a few years back but then also rejoined when I couldn't get my login to work so it's probably for that account but then it started working again so I think I have two accounts. Even so it did come a number of days later.

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!