2 DEFINE ('DB_ID', 'spamdforum');
3 DEFINE ('DB_PW', 'spamdforum');
4 DEFINE ('DB_HOST', 'p:127.0.0.1');
5 DEFINE ('DB_NAME', 'spamdforum');
7 $msgtable = 'forum_msg';
11 if (!mysqli_real_connect($dbc, DB_HOST, DB_ID, DB_PW, DB_NAME)) {
12 die("Khong the thiet lap ket noi den co so du lieu!");
16 email_exists($email, $dbc)
19 $query = "SELECT user_id FROM $table WHERE email=?";
20 $result = @mysqli_execute_query($dbc, $query, [$email]);
22 if (mysqli_num_rows($result) == 0) {
24 mysqli_free_result($dbc, $result);
27 mysqli_free_result($dbc, $result);
31 function export_data($data) {
32 return htmlspecialchars($data);