Webbserverprogrammering 1

Källkod

Följande filer och mappar finns under mappen webbserverprogrammering.
Mappar visas till vänster och filer till höger. Klicka på en fil eller mapp för att öppna nedan eller visa dess innehåll.

webbserverprogrammering/projects/quiz-extended/

26 filer

admin.php
confirm_account.php
create_account.php
create_quiz.php
css/
dbconnection.php
highscore.php
index.php
js/
logbook.php
login.php
mysql_create_table_options.php
mysql_create_table_questions.php
mysql_create_table_quizzes.php
mysql_create_table_results.php
mysql_create_table_submits.php
mysql_create_table_users.php
plan.php
planering.txt
profile.php
projektrapport.txt
quizzes.php
resources/
result.php
send_email.php
session_variable_array_check.php

mysql_create_table_submits.php

17 lines ASCII Windows (CRLF)
<?php
$sql 
"CREATE TABLE quizext_submits (
  submit_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  user_id INT,
  quiz_id INT,
  result_id INT,
  question_id INT,
  option_id INT
)"
;

include(
'dbconnection.php');

$dbconn->exec($sql);

echo 
"Created table <strong>quizext_submits</strong>, I think!";

?>