queria saver si me podrian dar una mano e visto todos los tutoriales de la web y varios mas pero el error sigue saliendo esplico mi idea (aclaro que los demas datos los toma sin problemas) queria poner q despues de partida dijera replays para poder bajar el archivo que se supone tiene que subir a la bd pero simplemente no lo sube los archivos no llegan a 500kb ni se acercan si alguien me podria dar un script abiso q esta echo con tablas en este orden:

Pienso que esta bien es la que dice replays la q no la toma.
Se supone q ahi tengo subir los datos desde el programa el programa tiene una ruta para guardar los datos que quiero subir ahi pero en la pc no mas pero quiero hacer q los suba ahi ya probe de 20 formas diferentes y no me toma el programa se conecta con mi mysql todo el tiempo por el puerto 3306 como ya dije son archivos sin comprimir los que sube y si no se puede en todo caso me gustaria subirlos a una carpeta de la pagina lo que mas me molesta es q no puedo hacer que se vean en la pagina les muestro una foto de como me gustaria que se vieran y como se ve:
aqui como se ve:

aqui como se veria si funcionara bien la tabla:

Este es el codigo de la web q uso para montar eso desde la mysql osea para crear la tabla!!: es mucho
Código PHP :
require_once("functions.php");
require_once("config.php");
if($dbType == 'sqlite')
{
$sortcat=sqlite_escape_string($_GET["s"]);
$order=sqlite_escape_string($_GET["o"]);
$offset=sqlite_escape_string($_GET["n"]);
}
else
{
$sortcat=mysql_real_escape_string($_GET["s"]);
$order=mysql_real_escape_string($_GET["o"]);
$offset=mysql_real_escape_string($_GET["n"]);
}
$sql = "SELECT COUNT( DISTINCT id ) as totgames, MAX(duration), MIN(duration), AVG(duration), SUM(duration) from games where map LIKE '%dota%'";
if($dbType == 'sqlite')
{
foreach ($dbHandle->query($sql, PDO::FETCH_ASSOC) as $row)
{
$count=$row["totgames"];
$maxDuration=secondsToTime($row["MAX(duration)"]);
$minDuration=secondsToTime($row["MIN(duration)"]);
$avgDuration=secondsToTime($row["AVG(duration)"]);
$totalDuration=secondsToTime($row["SUM(duration)"]);
}
}
else
{
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$count=$row["totgames"];
$maxDuration=secondsToTime($row["MAX(duration)"]);
$minDuration=secondsToTime($row["MIN(duration)"]);
$avgDuration=secondsToTime($row["AVG(duration)"]);
$totalDuration=secondsToTime($row["SUM(duration)"]);
}
mysql_free_result($result);
}
$pages = ceil($count/$gameResultSize);
?>
<div class="header" id="header">
<table width=1016px>
<tr>
<td width=25%>
<table class="rowuh" width = 235px style="float:left">
<h4>
<tr>
<td>
<?php
if($offset == 'all')
{
print $phrase81;
}
else
{
print "<a href=\"?p=games&s=".$sortcat."&o=".$order."&n=all\">".$phrase82."</a>";
}
?>
</td>
</tr>
</h4>
</table>
</td>
<td width=50%>
<h2><?php print $phrase83;?>:</h2>
</td>
<td width=25% class="rowuh">
<table class="rowuh" width = 235px style="float:right">
<h4>
<tr>
<td colspan=7>
<?php
if($offset == 'all')
{
print $phrase164.":";
}
else
{
$min = $offset*$gameResultSize+1;
$max = $offset*$gameResultSize+$gameResultSize;
if($max > $count)
{
$max = $count;
}
print $phrase84.": ".$min." - ".$max;
}
?>
</td>
</tr>
<tr>
<?php
if($offset == 'all')
{
print "<td width=35px><span class=\"ddd\"><</span></td>";
for($counter = 1; $counter < 6; $counter++)
{
if($counter <= $pages)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
print "<td width=35px><span class=\"ddd\">></span></td>";
}
else
{
if($offset > 0)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($offset-1)."\"><</a>";
}
else
{
print "<td width=35px><span class=\"ddd\"><</span></td>";
}
if($offset < 2) //Close to start
{
if($offset == 0)
{
print "<td width=35px><span class=\"ddd\">1</span></td>";
for($counter = 2; $counter < 6; $counter++)
{
if($counter-1 < $pages)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
}
if($offset == 1)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=0\">1</a></td>";
print "<td width=35px><span class=\"ddd\">2</span></td>";
for($counter = 3; $counter < 6; $counter++)
{
if($counter-1 < $pages)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
}
}
else if ($pages-$offset < 3) //Close to end
{
if($offset == $pages-1)
{
for($counter = $offset-3; $counter < $offset+1; $counter++)
{
if($counter >= 1)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
print "<td width=35px><span class=\"ddd\">".$counter."</span></td>";
}
else
{
for($counter = $offset-2; $counter < $offset+1; $counter++)
{
if($counter >= 1)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
print "<td width=35px><span class=\"ddd\">".($offset+1)."</span>";
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($offset+1)."\">".($offset+2)."</a></td>";
}
}
else
{
for($counter = ($offset-1); $counter < ($offset+4); $counter++)
{
if($counter == ($offset+1))
{
print "<td width=35px><span class=\"ddd\">".$counter."</span></td>";
}
else
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($counter-1)."\">".$counter."</a></td>";
}
}
}
if(($offset+1)*$gameResultSize < $count)
{
print "<td width=35px><a href=\"?p=games&s=".$sortcat."&o=".$order."&n=".($offset+1)."\">></a></td>";
}
else
{
print "<td width=35px><span class=\"ddd\">></span></td>";
}
}
?>
</tr>
</h4>
</table>
</td>
</tr>
</table>
</div>
<div class="pageholder" id="pageholder">
<div id="theader">
<table class="tableheader" id="tableheader">
<tr>
<?php
if($offset == 'all')
{
$sortoffset = $offset;
}
else
{
$sortoffset = 0;
}
//Time
if($sortcat == "datetime")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=datetime&o=desc&n=".$sortoffset."\">".$phrase85."</a></td>");
}
else
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=datetime&o=asc&n=".$sortoffset."\">".$phrase85."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=datetime&o=desc&n=".$sortoffset."\">".$phrase85."</a></td>");
}
//Map
if($sortcat == "map")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=200px><a href=\"?p=games&s=map&o=desc&n=".$sortoffset."\">".$phrase86."</a></td>");
}
else
{
print("<td class=\"headercell\" width=200px><a href=\"?p=games&s=map&o=asc&n=".$sortoffset."\">".$phrase86."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=200px><a href=\"?p=games&s=map&o=asc&n=".$sortoffset."\">".$phrase86."</a></td>");
}
//Game Type
if($sortcat == "type")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=50px><a href=\"?p=games&s=type&o=desc&n=".$sortoffset."\">".$phrase39."</a></td>");
}
else
{
print("<td class=\"headercell\" width=50px><a href=\"?p=games&s=type&o=asc&n=".$sortoffset."\">".$phrase39."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=50px><a href=\"?p=games&s=type&o=desc&n=".$sortoffset."\">".$phrase39."</a></td>");
}
//Game
if($sortcat == "gamename")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=375px><a href=\"?p=games&s=gamename&o=desc&n=".$sortoffset."\">".$phrase2."</a></td>");
}
else
{
print("<td class=\"headercell\" width=375px><a href=\"?p=games&s=gamename&o=asc&n=".$sortoffset."\">".$phrase2."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=375px><a href=\"?p=games&s=gamename&o=asc&n=".$sortoffset."\">".$phrase2."</a></td>");
}
//Duration
if($sortcat == "duration")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=75px><a href=\"?p=games&s=duration&o=desc&n=".$sortoffset."\">".$phrase5."</a></td>");
}
else
{
print("<td class=\"headercell\" width=75px><a href=\"?p=games&s=duration&o=asc&n=".$sortoffset."\">".$phrase5."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=75px><a href=\"?p=games&s=duration&o=desc&n=".$sortoffset."\">".$phrase5."</a></td>");
}
//Creator
if($sortcat == "creatorname")
{
if($order == "asc")
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=creatorname&o=desc&n=".$sortoffset."\">".$phrase4."</a></td>");
}
else
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=creatorname&o=asc&n=".$sortoffset."\">".$phrase4."</a></td>");
}
}
else
{
print("<td class=\"headercell\" width=150px><a href=\"?p=games&s=creatorname&o=asc&n=".$sortoffset."\">".$phrase4."</a></td>");
}
?>
<td class="headercell" width=16px></td>
</tr>
</table>
</div>
<div id="datawrapper">
<table class="table" id="data">
<?php
$sql = "SELECT g.id, map, datetime, gamename, ownername, duration, creatorname, dg.winner, CASE when(gamestate = '17') then 'PRIV' else 'PUB' end as type FROM games as g LEFT JOIN dotagames as dg ON g.id = dg.gameid where map LIKE '%dota%' ORDER BY $sortcat $order, datetime desc";
if($offset!='all')
{
$sql = $sql." LIMIT ".$gameResultSize*$offset.", $gameResultSize";
}
if($dbType == 'sqlite')
{
foreach ($dbHandle->query($sql, PDO::FETCH_ASSOC) as $row)
{
$gameid=$row["id"];
$map=substr($row["map"], strripos($row["map"], 0));
$type=$row["type"];
$gametime=$row["datetime"];
$gamename=$row["gamename"];
$ownername=$row["ownername"];
$duration=$row["duration"];
$creator=$row["creatorname"];
$winner=$row["winner"];
?>
<tr class="row">
<td width=150px align=center><?php print $gametime;?></td>
<td width=200px align=center><?php print $map;?></td>
<td width=50px align=center><?php print $type;?></td>
<td width=375px align=center><a href="?p=gameinfo&gid=<?php print $gameid; ?>" target="_self" <?php if($winner==1){print 'class="sentinel"';}elseif($winner==2){print 'class="scourge"';}?>><?php print $gamename;?></a></td>
<td width=75px align=center><?php print secondsToTime($duration);?></td>
<td width=150px align=center><a href="?p=user&u=<?php print $creator; ?>&s=datetime&o=desc&n=<?php if($displayStyle=='all'){ print 'all'; } else { print '0'; } ?>" target="_self"><?php print $creator;?></a></td>
</tr>
<?php
}
}
else
{
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$gameid=$row["id"];
$map=substr($row["map"], strripos($row["map"], '\\')+1);
$type=$row["type"];
$gametime=$row["datetime"];
$gamename=$row["gamename"];
$ownername=$row["ownername"];
$duration=$row["duration"];
$creator=$row["creatorname"];
$winner=$row["winner"];
?>
<tr class="row">
<td width=150px align=center><?php print $gametime;?></td>
<td width=200px align=center><?php print $map;?></td>
<td width=50px align=center><?php print $type;?></td>
<td width=375px align=center><a href="?p=gameinfo&gid=<?php print $gameid; ?>" target="_self" <?php if($winner==1){print 'class="sentinel"';}elseif($winner==2){print 'class="scourge"';}?>><?php print $gamename;?></a></td>
<td width=75px align=center><?php print secondsToTime($duration);?></td>
<td width=150px align=center><a href="?p=user&u=<?php print $creator; ?>&s=datetime&o=desc&n=<?php if($displayStyle=='all'){ print 'all'; } else { print '0'; } ?>" target="_self"><?php print $creator;?></a></td>
</tr>
<?php
}
mysql_free_result($result);
}
?>
</table>
</div>
</div>
<div id="footer" class="footer">
<h5><?php print $phrase87.": ".$count; ?>
~~~~~~ <?php print $phrase5;?>(hh:mm:ss):
<?php print $phrase88;?>: <?php print $avgDuration;?> | <?php print $phrase89;?>: <?php print $totalDuration;?></h5>
</div>
Pido de favor si me pueden dar una mano para agregar los replays si no se puede de la mysql q tengo la cual esta configurada bien y funciona de 10 les pido si me ayudan y si no es mucha molestia una explicación de como hacer para q la ruta del programa c:/wamp/www/allstats/replays q es donde se guarda la web cambiar la ruta para la mysql osea q se guarde ahi y que si no se puede en lapagina montada en el servidor 000webhost.com en una carpeta llamada Replays.
Tengo acceso a la emcriptacion del programa si es necesario modificar parametros del programa puedo hacerlo les suplico su ayuda hace 2 semanas que estoy viendo tutoriales para encontrar mi error abiso q los datos de la web q paso estan sin agregar el replays osea como esta original ya q no importa como lo modifique no me toma la nueva tabla!!
