GetDotted Domains

Viewing Thread:
"PHP: Adding two variables..."

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sat 13/09/03 at 19:00
Regular
"Chavez, just hush.."
Posts: 11,080
This sounds basic but I can't find anything on it on the net...

Say I have one variable, $a and another, $b.

The value of $a is 1 and $b is 2.

I want to add them together to get $c which is the total.

Is that possible?

And does anyone have a link to a snippet of code that may be able to explain this to me so I can work with it?

Thanks.
Sun 14/09/03 at 22:09
Regular
"It goes so quickly"
Posts: 4,083
Miserableman wrote:
> http://www.melonrock.com/IS346/

That's good.

How long did it take you to create?

And what grade/marks did you get for it?
Sun 14/09/03 at 12:20
Regular
"Chavez, just hush.."
Posts: 11,080
That's a very good point...

Normally I'd just test it first, but for some reason I didn't...

Hmmmmmm.

I knew it was something like that, but I still don't know why I didn't test it!

It's always the same with me though, I can get something fairly complex to work, but when I'm stuck with the basics, I just get lost.

Oooooh, like Maths.
Sun 14/09/03 at 11:54
Regular
"It goes so quickly"
Posts: 4,083
phi11ip wrote:
> That's what I thought it was, I knew it was super simple, but didn't
> want to say that because I knew someone would laugh at me if I got it
> wrong...

Just out of interest, why didn't you just write the code and see if it worked??

I found that the best way to learn, rather than asking others. Because you use your current knowledge of the subject and take it in more, rather than copy-and-paste from someone else.

But saying that, you’ve got to learn from somewhere.

Though, I have to say I am rather surprised at you ... the man who's diving into MySQL and already forgetting the basics ... tut tut tut :)
Sun 14/09/03 at 00:24
Regular
"bing bang bong"
Posts: 3,040
http://www.melonrock.com/IS346/


A basic PHP tutorial I wrote for some Uni coursework. It's quite easy to follow, but I had to chop off a lot of it when I ran out of time. See what you think!
Sat 13/09/03 at 20:07
Regular
"Chavez, just hush.."
Posts: 11,080
That's what I thought it was, I knew it was super simple, but didn't want to say that because I knew someone would laugh at me if I got it wrong...

*bursts out crying*
Sat 13/09/03 at 19:37
Regular
"Eff, you see, kay?"
Posts: 14,156
$c = $a + $b;

Dude this is basic stuff.
Sat 13/09/03 at 19:15
Regular
"Chavez, just hush.."
Posts: 11,080
Ah, I think I've found something...

I'll post back if I need help.
Sat 13/09/03 at 19:00
Regular
"Chavez, just hush.."
Posts: 11,080
This sounds basic but I can't find anything on it on the net...

Say I have one variable, $a and another, $b.

The value of $a is 1 and $b is 2.

I want to add them together to get $c which is the total.

Is that possible?

And does anyone have a link to a snippet of code that may be able to explain this to me so I can work with it?

Thanks.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!
You were 100% right - great support!
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.