[PHP-NOTES] note 130590 added to mysqli-result.fetch-assoc

[email protected] ("[email protected]") Fri, 19 Dec 2025 07:34:10 +0000
Newsgroups php.notes
Message-ID <[email protected]>
here's an example of a config file :

<?php
//HOME est app
define('HOME', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR);

define("view", HOME.DIRECTORY_SEPARATOR."view");

const CFG = array(
    "db" => array(
        "host" => HOME . "data" . DIRECTORY_SEPARATOR,
        "port" => null,
        "database" => "madb.db",
        "login" => "",
        "password" => "",
        "options" => array(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION),
        "exec" => "PRAGMA foreign_keys = ON;"
    ),
    "siteURL" => "http://127.0.0.1:8080/workspace/code_demo/04-MVC/app/" //votre url
);

?>
----
Server IP: 206.189.2.9
Probable Submitter: 2001:660:7220:385:193:52:103:33
----
Manual Page -- https://php.net/manual/en/mysqli-result.fetch-assoc.php
Edit        -- https://main.php.net/note/edit/130590
Del: integrated  -- https://main.php.net/note/delete/130590/integrated
Del: useless     -- https://main.php.net/note/delete/130590/useless
Del: bad code    -- https://main.php.net/note/delete/130590/bad+code
Del: spam        -- https://main.php.net/note/delete/130590/spam
Del: non-english -- https://main.php.net/note/delete/130590/non-english
Del: in docs     -- https://main.php.net/note/delete/130590/in+docs
Del: other reasons-- https://main.php.net/note/delete/130590
Reject      -- https://main.php.net/note/reject/130590
Search      -- https://main.php.net/manage/user-notes.php