To get started with Project 3 and to understand...
Remember that you must...
Use WinSCP to connect to our remote server.
Details about your specific server, userid and password were emailed to you. Here is the general information:
ftp.sienasellbacks.com
or ftp.breimer.net
userid@sienasellbacks.com
or userid@breimer.net
Be sure to replace userid
with your actual Siena userid; But, do not add @siena.edu
functions.php
in your editor of choicedb_connect()
functionbreimern
and sienasel
echo
statement in the db_connect()
functionconnect.php
in your editor of choice and notice it requires functions.php
project3
folder to the remoter serverhttp://www.breimer.net/userid/projects/project3/
orhttp://www.sienasellbacks.com/userid/projects/project3/
userid
in the URL above.project3
folderconnect.php
functions.php
and comment the echo statement in db_connect
so it will no longer
print the connection successful message.create_courses_table.php
in your editor of choicesql
(which is an SQL query for creating a table), then it runs the query by connecting to the database (using db_connect()
)
and finally it runs the query (i.e., $db->query($sql)
)userid_courses
, where userid
is
your userid .create_courses_table.php
http://www.breimer.net/userid/projects/project3/
orhttp://www.sienasellbacks.com/userid/projects/project3/
userid
in the URL above.create_courses_table.php
project3
folder, create a new file called show_table.php
ebreimer_courses
with your table name, i.e, userid_courses
where userid
is your userid.
show_table.php
show_table.php
show_table.php
so that it ouputs the column names as <th>
's in an HTML table:make_basic_page
functions.page_name
project3
folder, create a new file called insert_course.php
ebreimer_courses
with your table name, i.e, userid_courses
where userid
is your userid.
insert_course.php
http://www.breimer.net/userid/projects/project3/
orhttp://www.sienasellbacks.com/userid/projects/project3/
insert_course.php
insert_course.php
so that the form lets you specify all the fields, except cid
cid
because it is an auto-incremented primary key
that the database maintains.show_table.php
so that you output the column names as <th>
's
as the first row of the table.None. To get credit for lab you must work productively for the 2 hour period.
While it is OK to help other students with concepts and general trouble-shooting, you should not share code. It is expected that each individual project will be unique.