diff --git a/.index.php.swp b/.index.php.swp new file mode 100644 index 0000000..072e02a Binary files /dev/null and b/.index.php.swp differ diff --git a/index.php b/index.php index 9eb5b0d..4a4462b 100755 --- a/index.php +++ b/index.php @@ -46,14 +46,70 @@ function writeEntryforIndex() { } //echo 'not death'; - $search = $_GET['query']; + //$search = $_GET['query']; $i = 0; - + echo "
"; while($row = mysqli_fetch_array($retval, MYSQLI_ASSOC)) { if($i > 9){ break; } + + //Format for video_url + //Get substring from url after '=' + $split = explode("=", $row['video_url']); + + + + echo "" . + "
" . + "" . + + + "{$row['video_name']}" . + + + + "
" . + "" . + "" . + "" . + "" . + "" . + + + "" . + "" . + "" . + "" . + + + "" . + "" . + "" . + "" . + + + "
PlayersCharacters
{$row['players']}{$row['characters']}
{$row['players']}{$row['characters']}
" . + "
" . + + + + "
" . + "

{$row['game']}

" . + "

{$row['stage']}

" . + "
" . + + + "
" . + "

{$row['description']}

". + "
" . + +"
"; echo " VIDEO ID :{$row['video_id']}
". "VIDEO URL : {$row['video_url']}
". @@ -75,6 +131,7 @@ function writeEntryforIndex() { mysqli_close($conn); $i++; } + echo "
"; } writeEntryforIndex(); diff --git a/search.php b/search.php index fa92f65..5249fe0 100755 --- a/search.php +++ b/search.php @@ -1,6 +1,6 @@ - echo ""; + FightHub - Home @@ -53,7 +53,7 @@ function writeEntryforIndex() { // $i = 9; - + echo "
"; while($row = mysqli_fetch_array($retval, MYSQLI_ASSOC)) { // if($i > 9){ @@ -61,60 +61,64 @@ function writeEntryforIndex() { // } //Format for video_url + //Get substring from url after '=' + $split = explode("=", $row['video_url']); -
- -
- + + + + echo "" . + "
" . + "" . - Video Title Here + "{$row['video_name']}" . - //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.......

-
+ "
" . + "" . + "" . + "" . + "" . + "" . - // - + + "" . + "" . + "" . + "" . + + + + "" . + "" . + "" . + "" . + + + "
PlayersCharacters
{$row['players']}{$row['characters']}
{$row['players']}{$row['characters']}
" . + "
" . + + + + "
" . + "

{$row['game']}

" . + "

{$row['stage']}

" . + "
" . + + + "
" . + "

{$row['description']}

". + "
" . + + + "
"; - + /* echo " VIDEO ID :{$row['video_id']}
". "VIDEO URL : {$row['video_url']}
". "VIDEO NAME : {$row['video_name']}
". @@ -131,11 +135,15 @@ function writeEntryforIndex() { "--------------------------------
"; - echo "Fetched data successfully\n"; + echo "Fetched data successfully\n"; + + */ mysqli_close($conn); $i++; } + echo "
"; } + writeEntryforIndex();