hello
I explained my concern
So I am doing a record bosss
My bosss by bosss
I show you my script
I fail to understand why it is not working
Thank you in advance to anyone who could help me
I explained my concern
So I am doing a record bosss
My bosss by bosss
I show you my script
I fail to understand why it is not working
PHP Code:
<?php
function mssql_escape_string($data) {
if(!isset($data) or empty($data)) return '';
if(is_numeric($data)) return $data;
$non_displayables = array(
'/%0[0-8bcef]/', // url encoded 00-08, 11, 12, 14, 15
'/%1[0-9a-f]/', // url encoded 16-31
'/[\x00-\x08]/', // 00-08
'/\x0b/', // 11
'/\x0c/', // 12
'/[\x0e-\x1f]/' // 14-31
);
foreach($non_displayables as $regex)
$data = preg_replace($regex,'',$data);
$data = str_replace("'","''",$data);
return $data;
}
$host = '127.0.0.1';
$dbuser = 'Shaiya';
$dbpass = 'Shaiya123';
$database = 'PS_GameLog';
$conn = @odbc_connect("Driver={SQL Server};Server=$host;Database=$database", $dbuser, $dbpass) or die("Database Connection Error!");
$res = odbc_exec($conn, "SELECT TOP 1 [Text1], [Text3], [ActionTime] FROM PS_GameLog.dbo.ActionLog WHERE Value3=3350 AND MapID=18 AND ActionType=173 AND [Text2]='death'order by ActionTime desc");
$detail=odbc_fetch_array($res);
if (odbc_num_rows($res)==0);
else{
echo "
<center>Boss records
<table cellspacing=1 cellpadding=2 border=1 style=\"border-style:hidden;\">
<tr>
<th>Tuer par</th>
<th>Nom Boss</th>
<th>Heure de la mort</th>
</tr>";
while($row = odbc_fetch_array($res))
{
echo "<tr>";
echo "<td>". $row['Text3'] ."</td><td>". $row['Text1'] ."</td><td>". $row['ActionTime'] ."</td>";
echo "</tr>";
}
echo "</table></center>";
}
?>
Thank you in advance to anyone who could help me