About 147,000 results
Open links in new tab
  1. 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 variable called $result.

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

    Jul 23, 2025 · 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.

  3. PHP: mysql_query - Manual

    For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc, mysql_query () returns true on success or false on error. The returned result resource should be passed to mysql_fetch_array (), …

  4. SQL Queries With PHP: Insert, Select, Update & Delete

    May 19, 2025 · Learn how to use SQL Queries with PHP to add, retrieve, update, and delete data. Includes prepared statements and result handling examples.

  5. Mastering MySQL Queries in PHP using mysqli_query - TheLinuxCode

    Dec 27, 2023 · Greetings! This comprehensive tutorial aims to make you an expert at querying MySQL databases in PHP using the versatile mysqli_query function.

  6. How to Write SQL Queries in PHP – Step-by-Step Guide for Stu

    Jun 10, 2025 · Learn how to write SQL queries in PHP with MySQLi and PDO. A beginner-friendly guide covering setup, syntax, forms, debugging, and common student mistakes.

  7. Processing MySQL Queries in PHP: A Detailed Guide - Squash

    Nov 21, 2023 · Learn how MySQL queries are returned in PHP and the steps involved in this process. Understand the syntax, retrieve and access the result set, display the output, and handle query returns.

  8. MySQL PHP queries with examples - informatecdigital.com

    Mar 23, 2025 · Learn how to create MySQL queries in PHP with practical examples. This article will guide you step by step through the process of creating queries.

  9. PHP: mysqli::query - Manual

    For successful queries which produce a result set, such as SELECT, SHOW, DESCRIBE or EXPLAIN, mysqli_query () will return a mysqli_result object. For other successful queries, mysqli_query () will …

  10. How to fetch data from the database in PHP - GeeksforGeeks

    Jul 23, 2025 · Executing Queries: After connecting to the database we need to run queries to fetch data. In Read operations, we will use only select queries to fetch data from the database.