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_options.php

17 lines ASCII Windows (CRLF)
<?php
$sql 
"CREATE TABLE quiz_options (
  option_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  question_id INT,
  quiz_id INT,
  option_nr INT,
  option_txt VARCHAR(255),
  correct VARCHAR(255)
)"
;

include(
'dbconnection.php');

$dbconn->exec($sql);

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

?>