Commit 70661721 by Ryo

Updated user_flight_search.php and user_login.php

parent 35e77e94
Showing with 3 additions and 437 deletions
...@@ -70,28 +70,7 @@ if(isset($_SESSION['login_user'])){ ...@@ -70,28 +70,7 @@ if(isset($_SESSION['login_user'])){
</form> </form>
<?php <?php
#echo "Insert new user"; include('php_files/userlogin_database.php')
// 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>";
?> ?>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment