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/

22 filer

admin.php
create_account.php
create_quiz.php
css/
dbconnection.php
hacktest.php
highscore.php
index.php
js/
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
planering.txt
profile.php
quizzes.php
resources/
result.php
session_variable_array_check.php

mysql_create_table_results.php

16 lines ASCII Windows (CRLF)
<?php
$sql 
"CREATE TABLE quiz_results (
  result_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  user_id INT,
  quiz_id INT,
  user_points INT,
  max_points INT
)"
;

include(
'dbconnection.php');

$dbconn->exec($sql);

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

?>