Skip to content

How to insert data in a XML sub tag

let’s suppose that i have this tag with this html form if I want to insert data I do it work nicely without any problem now if we want to insert a data in the sub tag I thought we should do something like let’s suppose that we have “hello” in $_POST[‘something’] variable I …

How to set conditions for search in prepared statements?

I am trying to create a site search in prepared statements, Here is my code : Conditions for search This is how I add it to query : Here is my question. How can I use conditions safe way in prepared statements ? Answer You can build up an array of any bind parameters dynamically and then pass this to

PHP selectfield get value from database, change and POST

I’m a beginner with PHP and have some decent issues ^^ Would like to pick the data from the field “disabled” from the database and update the selectfield with the value. The selectfield has 2 possible options “yes” and “no” (value 0 or 1). Now i would finally like to …