Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 05-13-2010, 12:03 AM PHP + MySQL
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
I'm looking to create a user system with a basic profile system. I want users to be able to input and edit a field. Then I want to display the total change in that field for all users on a certain part of the page.

How would I do this?

For example:

user 1
20 apples
edit: 10 apples
change: 10 apples

user 2:
10 apples
edit: 5 apples
change: 5 apples

user 3:
2 apples
edit: 0 apples
change: 2 apples

Total Change: Change user 1 + change user 2 + change user 3 = 10+5+2 = 17

I would want that value of 17 displayed on the page somewhere. How would I implement such a system?
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
 
Register now for full access!
Old 05-14-2010, 08:12 AM Re: PHP + MySQL
Average Talker

Posts: 22
Trades: 0
If you have already read the jquery.com library tutorials, it may help you on this issue. You may use for example $.post ajax call to post value from front end. And edit in place and to display the computation then and there.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
katierosy is offline
Reply With Quote
View Public Profile Visit katierosy's homepage!
 
Old 05-16-2010, 02:29 PM Re: PHP + MySQL
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
I was under the impression this can be done purely with PHP and a MySQL database
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 05-16-2010, 02:36 PM Re: PHP + MySQL
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
Quote:
Originally Posted by andrei155 View Post
I was under the impression this can be done purely with PHP and a MySQL database
If you don't mind doing page refreshing then you can implement it using php and mysql only.
But displaying total value without refreshing the page will require you some javascript coding at minimal.

Using jQuery will simplify that process and will help you overcome incompatibility issues with browsers without need to know each browser specifications.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
Reply With Quote
View Public Profile
 
Old 05-16-2010, 02:48 PM Re: PHP + MySQL
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
If I use jQuery will I still be using a MySQL DB? Would anyone mind pointing me in the right direction?
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 05-16-2010, 04:23 PM Re: PHP + MySQL
nayes84's Avatar
Extreme Talker

Latest Blog Post:
Difference between ASP And JSP
Posts: 232
Name: John
Location: Tokyo
Trades: 0
Quote:
Originally Posted by andrei155 View Post
If I use jQuery will I still be using a MySQL DB? Would anyone mind pointing me in the right direction?
You need to store that information permanently right? then you need either to use files or db to store permanent information

jQuery is just a way for making site responsive without need to press submit button or refresh the page. like dynamically changing information in the page.
check this page for some info about jquery
http://docs.jquery.com/How_jQuery_Works

Since you don't know about jQuery yet, my suggestion is to make it using static html then if you like you can change it later to use jQuery.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

if(I'm("Helpful")) Add_Talkupation("nayes84");
nayes84 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP + MySQL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26111 seconds with 12 queries