<?php

    $mysqli = new mysqli("localhost", "my_user", "my_password", "DBName");

    /* check connection */
    if ( mysqli_connect_errno() )
    {
        printf("Connect failed: %s\n", mysqli_connect_error());
        exit();
    }

    if ( $result = $mysqli->query ("SELECT * FROM Users") )
    {
        foreach ( $result->fetch_row() as $data )
        {
            echo $data;
        }
        
        $result->close();
    }

    $mysqli->close();

?>
Categories: PHP language

259 Comments

bookmarkusers.com · 27/01/2024 at 02:03

Hello, I enjoy reading all of your post. I like to write a little comment to support you.

pop over to this web-site · 27/01/2024 at 04:15

Автор старается представить материал нейтрально, что помогает читателям обрести полное понимание обсуждаемой темы.

ks quik · 12/02/2024 at 23:31

… [Trackback]

[…] Read More here to that Topic: durukanbal.com/2021/03/16/php-mysql-pdo-connect/ […]

buy adderall 30 mg xr · 13/02/2024 at 22:59

… [Trackback]

[…] Information on that Topic: durukanbal.com/2021/03/16/php-mysql-pdo-connect/ […]

สล็อตเว็บตรง · 17/02/2024 at 01:45

… [Trackback]

[…] Here you will find 73047 more Info on that Topic: durukanbal.com/2021/03/16/php-mysql-pdo-connect/ […]

ส่งออก · 20/02/2024 at 09:20

… [Trackback]

[…] Find More Information here on that Topic: durukanbal.com/2021/03/16/php-mysql-pdo-connect/ […]

โซล่าเซลล์ · 22/02/2024 at 23:16

… [Trackback]

[…] Information to that Topic: durukanbal.com/2021/03/16/php-mysql-pdo-connect/ […]

Leave a Reply

Avatar placeholder