Skip to content

Commit

Permalink
Geekhaven Info made Dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
pradhuman1 committed Oct 20, 2020
1 parent c9971d8 commit cd0519c
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 745 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Extra(Backup) Files/.DS_Store
Binary file not shown.
16 changes: 16 additions & 0 deletions data_game/ghDataUpdate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php
// include './addmember.php'
require "../database/member_info.php";
session_start();

?>

<?php
if(isset($_POST['submit'])){
$name = $_POST['name'];
$des = $_POST['description'];
$query = "UPDATE geekhavenInfo SET `name`='$name',`description`='$des'";
$query_run = mysqli_query($connection,$query);
header('location:../geekhaven/geekhavenData.php');
}
?>
17 changes: 11 additions & 6 deletions geekhaven/geekhavenData.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,25 @@
<style>

</style>
<?php
$query = 'SELECT * FROM geekhavenInfo';
$query_run = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($query_run)){
$name =$row['name'];
$des =$row['description'];
}
?>

<section class="form" style="margin-top: 200px;;margin-bottom: 50px;">
<div class="container" style="background: #171717;border-radius: 16px;">
<form method='post' style="text-align: center;" enctype="multipart/form-data">
<form method='post' style="text-align: center;" enctype="multipart/form-data" action = '../data_game/ghDataUpdate.php'>
<p class="contactUs" >Geekhaven Data</p>
<div class="form-group col-lg-12">
<input name="name" type="text" required></input>
<input name="name" type="text" value="<?php echo $name?>"required></input>
<span class="floating-label">Name</span>
</div>
<div class="form-group col-lg-12">
<textarea name="description" type="text"><?php echo $des;?></textarea>
<textarea name="description" type="text" ><?php echo $des?></textarea>
<span class="floating-label">Description</span>
</div>

Expand All @@ -73,9 +81,6 @@
</div>
</form>
<?php
if(isset($_POST['submit'])){

}
?>
</div>

Expand Down
Binary file added getData/.DS_Store
Binary file not shown.
47 changes: 0 additions & 47 deletions getData/ann.php

This file was deleted.

31 changes: 0 additions & 31 deletions getData/blog.php

This file was deleted.

36 changes: 0 additions & 36 deletions getData/project.php

This file was deleted.

33 changes: 0 additions & 33 deletions getData/wing.php

This file was deleted.

54 changes: 0 additions & 54 deletions getData/wingMem.php

This file was deleted.

12 changes: 10 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,16 @@
</div>

<!-- <i class="fa fa-sun-o theme" style="color: #13F7D2;padding: 10px;" aria-hidden="true"></i> -->
<h1 class="main-heading">GeekHaven</h1>
<p class="intro-heading"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</p>
<?php
$query = 'SELECT * FROM geekhavenInfo';
$query_run = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($query_run)){
$name =$row['name'];
$des =$row['description'];
}
?>
<h1 class="main-heading"><?php echo $name;?></h1>
<p class="intro-heading"><?php echo $des;?></p>
</div>
</div>

Expand Down
3 changes: 2 additions & 1 deletion onstart.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@
$query_run = mysqli_query($connection,$query);
$query = "INSERT INTO wings VALUES('33333','X','Only for Overall coordinators','','')";
$query_run = mysqli_query($connection,$query);

$query = "INSERT INTO geekhavenInfo VALUES('GeekHaven','Lorem Ipsum simply dummy of the printing typesetting industry.')";
$query_run = mysqli_query($connection,$query);
echo "Database created";

?>
Binary file added wing/.DS_Store
Binary file not shown.
Loading

0 comments on commit cd0519c

Please sign in to comment.