Show sourcecode
The following files exists in this folder. Click to view.
webbsrvprg/exercises/ajax/ajax/
ajax.php
ajaxClient.php
ajaxService.php
createtable.php
insert.php
createtable.php
27 lines ASCII Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
try {
/** @var PDO $dbconn */
include "../../../dbconnection.php";
$sql = "CREATE TABLE ajaxtest (
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(30),
points INT(10)
)";
$dbconn->exec($sql);
}
catch (PDOException $e) {
echo $e;
}
?>
</body>
</html>