| Server IP : 192.169.170.185 / Your IP : 216.73.216.97 Web Server : Apache System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64 User : akhilnew ( 1712764) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/akhilnew/www/gastroenterojournal.com/admin/ |
Upload File : |
<?php
$stmt = $mysqli->prepare("SELECT $firstcol, totalvisitors FROM $table ORDER BY $firstcol DESC LIMIT 1") or die($mysqli->error);
$stmt->execute();
$stmt->store_result();
$count_rows = $stmt->num_rows();
$stmt->bind_result($id, $totalvisitors);
$stmt->fetch();
$stmt->close();
if($count_rows == 0):
$totalvisitors = 1;
endif;
echo <<<EOJ
<input type="hidden" name="dataid" value="{$id}" readonly="readonly" />
<div class="head">
<input type="submit" value="submit" class="action b button" onclick="setopt(this, 'edit')" />
<input type="reset" value="reset" class="action" />
</div>
<div class="body">
<div class="row">
<label class="flbl">Total Visitors :<span class="fr">*</span></label>
<input type="text" name="totalvisitors" value="{$totalvisitors}" class="field" />
</div>
</div>
EOJ;
?>