I need help in php an mysql? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

11th Aug 2017, 8:14 AM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar
1 Answer
+ 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.
11th Aug 2017, 8:57 AM
Farshad
Farshad - avatar