Increase the number...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
ericburnard
Forum Contributor
Posts: 104
Joined: Wed Jun 15, 2005 5:11 pm
Location: Chesterfield, UK

Increase the number...

Post by ericburnard »

sorry if this sounds like a simple question or i have asked it before but i have been away for 2 weeks and i think the sea washed away some of the php knowlage that i was storing in my ears :D

so ....

what i am wanting to do is -

1) get a record from a database table (can do)
2) increase that number by 1 (cant do)
3) display that new number in the text box.

i think i have to use the loop code thing but am not to sure.

Thanks again

Eric
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Time to learn some SQL :p

Code: Select all

UPDATE mytable SET mycolumn=mycolumn+1, othercolumn='whazaaaaaaaaa' WHERE name='bernie'
User avatar
ericburnard
Forum Contributor
Posts: 104
Joined: Wed Jun 15, 2005 5:11 pm
Location: Chesterfield, UK

Post by ericburnard »

Ohhhh is it that simple :D:D:D

thants great. i think i will have to set some time aside to learn all the functions :D

Thanks
eric
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Be prepared to learn MUCH. Not alone do you need to learn php syntax, general algorithms and data structures but also html and sql. And yes, it takes a while to know them all ;)
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

hi timv, could you elobarate wot are the general algorithms and data structures you want a web developer to learn? cos, I am a masters student...i jus wanna c how much I hv learned all these years :wink: cheers
Post Reply