diff --git a/.index.php.swp b/.index.php.swp
index 072e02a..f1cdd63 100644
Binary files a/.index.php.swp and b/.index.php.swp differ
diff --git a/index.php b/index.php
index 4a4462b..c02ebc3 100755
--- a/index.php
+++ b/index.php
@@ -30,7 +30,7 @@ function writeEntryforIndex() {
die('
Connection failed:
' . mysql_error());
}
- echo 'Connect1ed successfully
';
+ //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';
@@ -57,13 +57,14 @@ function writeEntryforIndex() {
//Format for video_url
//Get substring from url after '='
- $split = explode("=", $row['video_url']);
+ $splitUrl = explode("=", $row['video_url']);
-
+ $splitChar = explode(",", $row['characters']);
+ $splitPlay = explode(",", $row['players']);
echo "" .
"
" .
- "
" .
" ";
-
+ /*
echo " VIDEO ID :{$row['video_id']}
".
"VIDEO URL : {$row['video_url']}
".
"VIDEO NAME : {$row['video_name']}
".
@@ -128,6 +129,7 @@ function writeEntryforIndex() {
echo "Fetched data successfully\n";
+ */
mysqli_close($conn);
$i++;
}
diff --git a/search.php b/search.php
index 5249fe0..08950f0 100755
--- a/search.php
+++ b/search.php
@@ -32,7 +32,7 @@ function writeEntryforIndex() {
die('Connection failed:
' . mysql_error());
}
- echo 'Connect1ed successfully
';
+ //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';
@@ -40,7 +40,7 @@ function writeEntryforIndex() {
// mysqli_select_db('fighthubdata');
//echo 'hello';
$search = $_GET['query'];
- echo $search;
+ //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';
@@ -63,7 +63,8 @@ function writeEntryforIndex() {
//Format for video_url
//Get substring from url after '='
$split = explode("=", $row['video_url']);
-
+ $splitChar = explode(",", $row['characters']);
+ $splitPlay = explode(",", $row['players']);
@@ -88,15 +89,15 @@ function writeEntryforIndex() {
"
" .
- "| {$row['players']} | " .
- "{$row['characters']} | " .
+ "$splitPlay[0] | " .
+ "$splitChar[0] | " .
"
" .
"" .
- "| {$row['players']} | " .
- "{$row['characters']} | " .
+ "$splitPlay[1] | " .
+ "$splitChar[1] | " .
"
" .