+ 2
I need help in php an mysql?
Hello developers, I have admin.php <input type="number"> And i have user.php <input type="number"> <br/> <div class="result"></div> <button type="submit">show result<button> I need , if i put 2 in admin.php update exist raw in database table And if i put 5 in user.php and click button show result ( result = 5×2) I hope the idea is clear Thank you who gave me some of his time
1 ответ
+ 14
Fir this to work, there are lots of edits needed. but here are the basics:
First you should put your input and submit, in a form with action to admin.php and you should add a name to input.
second on the admin.php you get the results by using php $_GET and use it to show the result.
This is the whole idea. You can search according to this to make your code work.