PHP Coding Help
#4

INSERT to insert a record
UPDATE to update a record


To do what you want use the UPDATE function.

For example
This is a textboxl:
-------------------------------------------
| Set Badge |
| #9582 |

Button:
-----------
| Submit |
-----------

When you use the UPDATE function it will update the X record.

So lets you're an admin you logged in you want to set an officers b adge number.

You go to lets say..

Admin CP >> Set Badge.

"Enter Officers Name"

"Mark_Weston" and lets say my account is user id 857

setbadge.php?userid=857

This shows up:

-------------------------------------------
| Set Badge |
| # |

Button:
-----------
| Submit |
-----------

You enter a badge number press submit

and the UPDATE record will insert the new badge number into the SQL.


Its kind of hard to explain, but is that what you want to do?


That's how I made my web based MDC.
Reply


Messages In This Thread
PHP Coding Help - by JasperH - 19.05.2014, 21:30
Re: PHP Coding Help - by KingHual - 19.05.2014, 21:49
Re: PHP Coding Help - by punklord - 21.05.2014, 16:14
Re: PHP Coding Help - by Mark_Weston - 21.05.2014, 17:26
Re: PHP Coding Help - by DaRealShazz - 21.05.2014, 21:05
Re: PHP Coding Help - by JasperH - 24.05.2014, 01:50
Re: PHP Coding Help - by Isolated - 24.05.2014, 11:07
Re: PHP Coding Help - by JasperH - 25.05.2014, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)