Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ruzalo
/
airline-booking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
70661721
authored
May 07, 2020
by
Ryo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated user_flight_search.php and user_login.php
parent
35e77e94
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
437 deletions
user_flight_search.php
user_login.php
user_flight_search.php
View file @
70661721
This diff is collapsed.
Click to expand it.
user_login.php
View file @
70661721
...
...
@@ -70,28 +70,7 @@ if(isset($_SESSION['login_user'])){
</form>
<?php
#echo "Insert new user";
// connect to the database
// Establishing Connection with Server by passing server_name, user_id and password as a parameter
$con
=
mysqli_connect
(
"anysql.itcollege.ee"
,
"WT16"
,
"iLtQlUerkT"
,
"WT16"
);
// Check connection
if
(
mysqli_connect_errno
())
{
echo
"Failed to connect to MySQL: "
.
mysqli_connect_error
();
}
$data
=
mysqli_query
(
$con
,
"INSERT INTO User_register (First_Name, Last_Name, username, Password)
VALUES ('
$First_Name
', '
$Last_Name
', '
$username
', '
$Password
')"
);
//mysql_query($sql1, $con);
mysqli_close
(
$con
);
echo
"Your input:::::::::<br>"
;
echo
""
.
$First_Name
.
"<br>"
;
echo
""
.
$Last_Name
.
"<br>"
;
echo
""
.
$username
.
"<br>"
;
echo
""
.
$Password
.
"<br>"
;
include
(
'php_files/userlogin_database.php'
)
?>
</div>
...
...
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