1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
|
" codeBody "
php
omvat („. /carter.inc“);
$cxn = mysqli_connect ($host, $user, $password, $database)
of matrijs („kon niet met server“ verbinden);
$query = „uitgezochte e-mail van studenten waar e-mail = „$_POST [e-mail]“ „;
$result = mysqli_query ($cxn, $query)
of matrijs („kon geen vraag uitvoeren. “);
$query_count = mysqli_num_rows ($result);
als ($query_count>0) {
kopbal („Plaats: student_duplicate.php“);
uitgang ();
}
$sentry_name = " student_insert_execute.php ";
require_once („sentry_lock.php“);
$page_title = „de Pagina van het Tussenvoegsel van de Student“;
$first_name = mysqli_real_escape_string ($cxn, versiering ($_POST [„first_name“]));
$last_name = mysqli_real_escape_string ($cxn, versiering ($_POST [„last_name“]));
$password = mysqli_real_escape_string ($cxn, versiering ($_POST [„wachtwoord“]));
$email = versiering ($_POST [„e-mail“]);
$cell_phone = versiering ($_POST [„cell_phone“]);
$organization = mysqli_real_escape_string ($cxn, versiering ($_POST [„organisatie“]));
$class = versiering ($_POST [„klasse“]);
$insert = „neem in studenten (first_name, last_name, e-mail, wachtwoord, cell_phone, organisatie, klasse) op
waarden („$first_name“, „$last_name“, „$email“, „$password“, „$cell_phone“, „$organization“, „$class“)“;
$insertexe = mysqli_query ($cxn, $insert);
als (! $insertexe) {
$error = mysqli_errno ($cxn). „: “ .mysqli_error ($cxn);
matrijs ($error);
}
require_once („header.php“);
? >
|