Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pedro Branco
TravelBuddy
Commits
8a39efc5
Commit
8a39efc5
authored
Feb 02, 2017
by
Tanmim
Browse files
register php file is now working
parent
65008125
Changes
1
Hide whitespace changes
Inline
Side-by-side
PHP/Register.php
View file @
8a39efc5
...
...
@@ -4,12 +4,12 @@
$name
=
$_POST
[
"name"
];
$age
=
$_POST
[
"age"
];
$user
=
$_POST
[
"user"
];
$username
=
$_POST
[
"username"
];
$password
=
$_POST
[
"password"
];
$username
=
$_POST
[
"username"
];
$statement
=
mysqli_prepare
(
$con
,
"INSERT INTO user (name,
user,
age, password, username) VALUES (?, ?, ?, ?)"
);
mysqli_stmt_bind_param
(
$statement
,
"siss"
,
$name
,
$user
,
$age
,
$password
,
$username
);
$statement
=
mysqli_prepare
(
$con
,
"INSERT INTO user (name, age, password, username) VALUES (?, ?, ?, ?)"
);
mysqli_stmt_bind_param
(
$statement
,
"siss"
,
$name
,
$age
,
$password
,
$username
);
mysqli_stmt_execute
(
$statement
);
$response
=
array
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment