diff --git a/main.css b/main.css old mode 100755 new mode 100644 index 9f88848..2c4b822 --- a/main.css +++ b/main.css @@ -1,67 +1,146 @@ -body { - background-color: #1E1E1E; -} - - -/* Styles for titlebar */ - -form.search { - /* border: white solid 1px; */ - height: 150px; - margin-top: -10px !important; - width: 99% !important; - border-bottom: #727272 solid 2px; -} - -.title-text { - float: left; - margin-top: 26px; - padding-right: 20px; - color: #FF3D53; - font-family: "Calibri"; - font-size: 50pt; -} - -.search { - width: 50%; - padding: 10px; - font-size: 20px; - margin-top: 45px; -} - -.submit { - width: 150px; - padding: 10px; - font-size: 20px; -} - -img.upload { - width: 150px; - /* margin-bottom: -17px; */ - margin-top: 45px; - float: right; -} - - -/* Styles for upload.php */ - -form.upload-form { - /* border: white solid 1px; */ - border-left: #727272 solid 2px; - border-right: #727272 solid 2px; - margin: 0 25% 0 25%; -} - -.upload-form input, .upload-form textarea, .upload-form select { - display: block; - margin-left: 20px; - /* margin-bottom: 30px; */ - /* border: white solid 1px; */ -} - -.upload-form h3 { - color: #FF3D53; - /* border: white solid 1px; */ - margin-bottom: 0px; - margin-left: 20px; -} \ No newline at end of file +body { + background-color: #1E1E1E; +} + + +/* Styles for titlebar */ + + +form.search { + /* border: white solid 1px; */ + height: 150px; + margin-top: -10px !important; + width: 99% !important; + border-bottom: #727272 solid 2px; +} + +.title-text { + float: left; + margin-top: 26px; + padding-right: 20px; + color: #FF3D53; + font-family: "Calibri"; + font-size: 50pt; +} + +.search { + width: 50%; + padding: 10px; + font-size: 20px; + margin-top: 45px; +} + +.submit { + width: 150px; + padding: 10px; + font-size: 20px; +} + +img.upload { + width: 150px; + /* margin-bottom: -17px; */ + margin-top: 45px; + float: right; +} + +/* Styles for upload.php */ + +form.upload-form { + /* border: white solid 1px; */ + border-left: #727272 solid 2px; + border-right: #727272 solid 2px; + margin: 0 25% 0 25%; +} + +.upload-form input, .upload-form textarea, .upload-form select { + display: block; + margin-left: 20px; + /* margin-bottom: 30px; */ + /* border: white solid 1px; */ +} + +.upload-form h3 { + color: #FF3D53; + /* border: white solid 1px; */ + margin-bottom: 0px; + margin-left: 20px; +} + +/* Styles for Video element displays */ + +div.video-list-container { + /* border: white solid 1px; */ + margin-left: 15%; + margin-right: 15%; +} + +#video-item { + /* border: white solid 1px; */ + width: 100%; + height: 178.75px; + padding-top: 10px; + border-bottom: #727272 solid 2px; +} + +iframe { + width: 300px; + height: 168.75px; + /* margin-top: 5px; */ + margin-bottom: 10px; + float: left; +} + +.video-list-container a { + color: #FF3D53; + /* border: white solid 1px; */ + padding-left: 10px; + /* margin-top: 1000px !important; */ + font-family: "Calibri"; + /* position: relative; */ +} + +#players-characters { + /* border: white solid 1px; */ + /* display: inline; */ +} + +#players-characters table { + color: #FF3D53; + font-size: 10pt; + font-family: "Calibri"; + padding-left: 10px; + width: 20%; + margin-top: 10px; + /* border-right: #727272 solid 2px; */ +} + +table .data { + font-weight: lighter; +} + +table .header { + font-weight: bolder !important; + padding-bottom: 10px; +} + +#table-border { + border-bottom: #727272 solid 1px; +} + +#game-stage { + color: #FF3D53; + float: right; + font-family: "Calibri"; + /* border: white solid 1px; */ + /* border-right: #727272 solid 2px; */ + margin-top: -83px; + width: 20%; + text-align: left; +} + +#description p { + /* border: white solid 1px; */ + color: #FF3D53; + font-family: "Calibri"; + margin-left: 310px; +} diff --git a/search.php b/search.php new file mode 100755 index 0000000..fa92f65 --- /dev/null +++ b/search.php @@ -0,0 +1,148 @@ + + + echo ""; + FightHub - Home + + + + + + + + + Connection failed:

' . mysql_error()); + } + + echo '

Connect1ed successfully

'; + + // $sql = 'SELECT video_id, video_url, video_name, username, date_upload, date_video, video_length, description, characters, players, game, stage, approved FROM video'; + + //$sql = 'select * from video'; + // mysqli_select_db('fighthubdata'); + //echo 'hello'; + $search = $_GET['query']; + echo $search; + + $retval = mysqli_query( $conn, "select * from video where characters like '%$search%' OR players like '%$search%' OR description like '%$search%' OR game like '%$search%' OR stage like '%$search%' OR video_name like '%$search%'"); + //echo 'test'; + if(!$retval ) { + //echo '

death

' + die('Could not get data: ' . mysqli_error()); + + } + //echo 'not death'; + + + // $i = 9; + + while($row = mysqli_fetch_array($retval, MYSQLI_ASSOC)) { + + // if($i > 9){ + // break; + // } + + //Format for video_url + +
+ +
+ + + + Video Title Here + + + //Format for player and characters +
+ + + + + + + //Player1, character1 data + + + + + + + //Player2, character2 data + + + + + + +
PlayersCharacters
Player1Character1
Player2Character2
+
+ + //Game and stage + // +
+

Game Name

+

Stage Name

+
+ + +
+

The description goes here.......

+
+ + //
+
+ + + echo " VIDEO ID :{$row['video_id']}
". + "VIDEO URL : {$row['video_url']}
". + "VIDEO NAME : {$row['video_name']}
". + "USERNAME : {$row['username']}
". + "DATE UPLOAD : {$row['date_upload']}
". + "DATE VIDEO : {$row['date_video']}
". + "VIDEO LENGTH : {$row['video_length']}
". + "DESCRIPTION : {$row['description']}
". + "CHARACTERS : {$row['characters']}
". + "PLAYERS : {$row['players']}
". + "GAME : {$row['game']}
". + "STAGE : {$row['stage']}
". + "APPROVED : {$row['approved']}
". + "--------------------------------
"; + + + echo "Fetched data successfully\n"; + mysqli_close($conn); + $i++; + } +} + writeEntryforIndex(); + + + // + + + ?> + + +