/    Sign up×
Community /Pin to ProfileBookmark

How to change cell in HML table (from MySQL DB) to a predetermined value?

Hello! I am trying to change a cell in a HTML table, that is populated from a MySQL DB, to a another predetermined value, when the cell is clicked. To start the value in each cell is “XX” and when the user clicks the cell, I want the value to change to a number that hey entered previously. I have the table already which works good, but I am stuck on how to proceed to setting this up. I prefer using HTML and PHP as I am learning that. Thanks!

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@bsha100Oct 11.2014 — Hey Bigmo,

You'll want to store the value that the user enters in your form within your database, then have some php script nested in the table to echo the value. This will require a call to the database. You can also use method="post", or method="get" in your form tag to pass the value to the next page if you don't need to store the data.
Copy linkTweet thisAlerts:
@bsha100Oct 11.2014 — Check out www.w3schools.com for more info on how to do this.
×

Success!

Help @Bigmo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.10,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...