| Server IP : 172.67.201.108 / Your IP : 216.73.216.114 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/mitzvahm/wwwdev/wp-content/stats/ |
Upload File : |
<?php ob_start();
$host = "209.16.108.254"; // name of the host
$user = "p164h336_market"; // name of the database user
$password = "market123"; // password
$database = "p164h336_mitzvah"; // name of the database
$connection = mysql_connect($host,$user,$password);
if (!$connection)
{
echo "Cannot connect to database";
die( mysql_error() );
}
else
{
$select = mysql_select_db($database,$connection);
if (!$select)
{
echo "cannot select the database";
die(mysql_error());
}
}
?>
<div class="wrap">
<?php
$res = mysql_query("select * from link_track")or die(mysql_error());
$row = mysql_fetch_array($res);
?>
<table width="500">
<tr>
<td colspan="2" align="center"><strong>Facebook And Twitter Clicks Stats</strong></td><br />
</tr>
<tr height="10"><td colspan="2"> </td></tr>
<tr>
<td width="50%" align="left"><strong>Facebook Total Clicks</strong></td>
<td width="50%" align="left"><?php echo 'Facebook Link clicked '.$row['facebook'].' times';?></td>
</tr>
<tr>
<td width="50%" align="left"><strong>Twitter Total Clicks</strong></td>
<td width="50%" align="left"><?php echo 'Twitter Link clicked '.$row['twitter'].' times'; ?></td>
</tr>
</table>
</div>