How can a change a mysql field's value using an html link inside the php file? >?

  • Thread starter Thread starter tyyyypo
  • Start date Start date
T

tyyyypo

Guest
How can I change a Mysql field's value using an html link inside the php file? Example: <a href="#" onclick="Change player value to BLAH">

Any help?
Or any suggestions of another way I could accomplish this?
 
You can't modify a field value using an onclick tag.

The most basic way I see you could doing this is setting up a PHP file which you'll link to, and which connects the database and modifies the field.

The other way you could do this is to set up an HTML form and submit the data either to another PHP file or the same file (just in a post method).

You'll have to secure any vulnerabilities, of course, in either of these methods.
 
Back
Top