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

15 lines ASCII Windows (CRLF)
<?php
$sql 
"CREATE TABLE quiz_quizzes (
  quiz_id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  creator_user_id INT,
  quiz_name VARCHAR(255),
  nr_of_questions INT
)"
;

include(
'dbconnection.php');

$dbconn->exec($sql);

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

?>