About 578,000 results
Open links in new tab
  1. php - HTML button to run SQL command - Stack Overflow

    I'm a bit of a noob at php/sql (well all languages in general), I am trying to get an sql command to run on the click of a html button. The sql command that I am trying to run is UPDATE supplies …

  2. execute sql query by clicking link/button - PHP Freaks

    Jan 27, 2011 · So I am trying to execute an sql query by clicking a button or a link. Ultimately I want users to be able to click the "Fav" button and it then fades into "Added to favorites!" (I am …

  3. PHP - AJAX and MySQL - W3Schools

    $q = intval($_GET['q']); $con = mysqli_connect('localhost','peter','abc123'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } mysqli_select_db($con,"ajax_demo"); $sql="SELECT * …

  4. PHP - Execute Sql Query By Clicking Link/button

    So I am trying to execute an sql query by clicking a button or a link. Ultimately I want users to be able to click the "Fav" button and it then fades into "Added to favorites!" (I am building a …

  5. php - Display SQL Query Via HTML Button - Stack Overflow

    Apr 10, 2017 · I am looking to run SQL queries against a database I have created and display the results on an HTML button click. I have started with a simple scenario where I am just looking …

  6. How to execute an SQL query and fetch results using PHP

    Apr 18, 2022 · In this article, we will discuss how to execute an SQL query and how to fetch its result? We can perform a query against the database using the PHP mysqli_query () method. …

  7. php - Execute sql query on button click | DaniWeb - DaniWeb

    Making sure it's after your submit button and then inside PHP: <?php if(isset($_POST['submitted'])) { // SQL // SQL }

  8. How to execute PHP query statement by clicking a button to …

    Mar 31, 2023 · This article introduces how to query data from the database through PHP and execute the query statement by clicking a button. By studying this article, readers can learn …

  9. PHP MySQL Select Data - W3Schools

    First, we set up an SQL query that selects the id, firstname and lastname columns from the MyGuests table. The next line of code runs the query and puts the resulting data into a …

  10. [SOLVED] Run sql Statement via button? - ASPRunner

    Nov 21, 2006 · I would like to add a button that would execute a sql update statement on my database. Supposing that my sql statement is this. Update tablename SET fieldname =0 …

Refresh