User Tools

Site Tools


en:web_development:databases:php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:web_development:databases:php [2021/12/25 14:49]
mag
en:web_development:databases:php [2023/08/16 09:33] (current)
Line 35: Line 35:
   * Copy the following code at the top of the first PHP block.   * Copy the following code at the top of the first PHP block.
 <code>    // Set up database connection <code>    // Set up database connection
-    define ('DBCONNECT', "../../pdo.php"); // database connection+    define ('DBCONNECT', "/home/dh_9m7wr9/pdo.php"); // database connection
     include_once DBCONNECT;     include_once DBCONNECT;
-    $db  = 'webdev';+    $db  = 'techschoolwebdev';
     $dsn = "mysql:host=$db_host;dbname=$db;charset=utf8mb4";     $dsn = "mysql:host=$db_host;dbname=$db;charset=utf8mb4";
     try      try 
en/web_development/databases/php.1640472582.txt.gz · Last modified: 2023/08/16 09:33 (external edit)