skip to Main Content

Mysql – Why doesn't my PHP function get called on button click?

Here is my PHP block. The get functions all work fine. <?php function getTitle() { $connection = new PDO('mysql:host=x.x.x.x;dbname=x;charset=utf8', 'x', 'xxxx'); $query = $connection->query("SELECT `value` FROM `services` WHERE `type` = 'title';"); $data = $query->fetchAll(PDO::FETCH_COLUMN); echo '<textarea id="services-title" name="services-title" rows="1">' .…

VIEW QUESTION
Back To Top
Search