there is a class with methods from here :

class Database { public function select($table, $rows = '*', $join = null, $where = null, $order = null, $limit = null){} public function insert($table,$params=array()){} public function delete($table,$where = null){} public function update($table,$params=array(),$where){} } 

How to implement the call of these methods with the parameters entered by the user on the page (using text boxes and buttons)?

  • You make the necessary form and send it to the necessary script for processing, or alternatively by Ajax, if the page is not needed to reload. And what is the actual difficulty? - DaVASrK
  • In a complete misunderstanding of the essence of the buttons and textboxes in HTML. - Garrus_En
  • I made buttons that were sent to 4 different pages and each page called its own method. Therefore, it is also interesting how correctly. - Yura Petrov
  • As an option, create 4 forms. When you click on the button, this form is sent to the desired script, where, accordingly, we need the necessary processing. About misunderstanding, read about the forms and their sending, there is nothing complicated at all. Approximate form for select: <form method="post" action="myScript.php"> Параметр 1<input type="text" name="join"> Параметр 2<input type="text" name="where"> <input type="submit"> </form> When you click on the send button, this form is sent for processing to the script we specified in action. - DaVASrK
  • Next, from $ _POST, we rip out the variables we need and process as we need. If necessary, pass it through Ajax. - DaVASrK

0