Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Front-End/Sprofile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
session_start();
include("navigationbar.php");
// I Need help selecting the row using the right student id ↓↓↓↓↓↓
$query = "SELECT * FROM Student_table WHERE s_num = ";

$StudentRecs = mysql_query($query);

$Student = mysql_fetch_assoc($StudentRecs);
?>

<body>

<head>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
<div class="row">
<div class="leftcolumn">
<div class="card">
<div class="fakeimg">
Image
</div>
<h2>Name: <?php echo $Student[s_fname]." ".$Student[s_lname]; ?></h2>
<p>Location: <?php echo $Student[s_location] ?></p>
<p>Date Of Birth: <?php echo $Student[s_bdate] ?></p>
<p>Gender: <?php echo $Student[s_sex] ?></p>
</div>
</div>

</div>
</body>

</html>
36 changes: 36 additions & 0 deletions Front-End/Tprofile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
session_start();
include("navigationbar.php");
// I Need help selecting the row using the right tutor id ↓↓↓↓↓↓
$query = "SELECT * FROM Tutor_table WHERE t_num = ";

$TutorRecs = mysql_query($query);

$Tutor = mysql_fetch_assoc($TutorRecs);
?>

<body>

<head>
<link rel="stylesheet" type="text/css" href="design.css">
</head>
<div class="row">
<div class="leftcolumn">
<div class="card">
<div class="fakeimg">
Image
</div>
<h2>Name: <?php echo $Tutor[t_fname]." ".$Tutor[t_lname]; ?></h2>
<p>Address: <?php echo $Tutor[t_address] ?></p>
<p>Date Of Birth: <?php echo $Tutor[t_bdate] ?></p>
<p>Gender: <?php echo $Tutor[t_sex] ?></p>
<p>Email: <?php echo $Tutor[t_email] ?></p>
<p>Password: <?php echo $Tutor[t_password] ?></p>
<p>Fee: <?php echo $Tutor[t_fee] ?></p>
<p>Subject number: <?php echo $Tutor[t_subject_num] ?></p>
</div>

</div>
</body>

</html>
25 changes: 11 additions & 14 deletions Front-End/design.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,6 @@ body {
font-size: 2vw;
}

.descImg {
text-align: center;
}

.aboutHeader {
text-align: center;
Expand All @@ -240,10 +237,11 @@ body {
text-align: center;
}

#roundedImage2 {
border-radius: 10%;
.aboutImg{
border-radius: 8px;
}


/*-----------------Search Form on Home Page-----------------*/

select {
Expand Down Expand Up @@ -434,6 +432,12 @@ span.reg {
cursor: pointer;
}

.link{
font-size: 2vw;
font-weight: bold;
}


/*------------Profile Page-----------------*/

.fakeimg {
Expand All @@ -446,16 +450,9 @@ span.reg {
*{
box-sizing: border-box;
}

.leftcolumn {
float: left;
width: 25%;
}

.rightcolumn {
float: left;
width: 75%;
padding-left: 20px;
margin: auto;
width: 50%;
}

.card {
Expand Down