In order for your opentech version of your websites to connect to a database, the database must be accessible from the opentech server. Your local computer is NOT accessible as necessary.
sql
in the root folder. (beside the week or lab folders)sql
folder to the opentech server.In order to execute SQL creation scripts on the opentech server, you will need to connect to opentech through Putty. Tutorial on Putty in Week 1 notes.
cd /var/www/html/inft1206/username/sql
psql -d username_db -f lab7_bond_movies.sql
DROP TABLE
DROP TABLE
CREATE TABLE
ALTER TABLE
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
CREATE TABLE
ALTER TABLE
INSERT 0 1
INSERT 0 1...
week10
in VSCode and save the file in this folder.$conn = pg_connect("host=127.0.0.1 dbname=YOUR_DB_NAME user=YOUR_USER_ID password=YOUR_DB_PASSWORD" );
replacing the relevant parts with your information.
https://opentech.durhamcollege.org/inft1206/username/week10/lab7_bond_info.php