prepare("SELECT titlename FROM gwtitles WHERE titlenameid = ?");
$stmtname->bind_param("i", $_POST['tid']);
$stmtname->execute();
$stmtname->store_result();
$stmtname->bind_result($gwtn);
while ($stmtname->fetch()) {
echo 'Adding rank to title ' . $gwtn . '
';
}
$stmtname->free_result();
$stmtname->close();
echo '
';
echo 'Here are the currently associated title ranks, starting with rank 1:
';
echo '| stnameid | titlenameid | stname | stpoints | strank |
';
$stmtview = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? ORDER BY strank ASC");
$stmtview->bind_param("i", $_POST['tid']);
$stmtview->execute();
$result = $stmtview->get_result();
while ($row = $result->fetch_assoc()) {
$stnid = $row['stnameid'];
$tnid = $row['titlenameid'];
$stname = $row['stname'];
$stpoints = $row['stpoints'];
$strank = $row['strank'];
echo '| ' . $stnid . ' | ' . $tnid . ' | ' . $stname . ' | ' . number_format($stpoints) . ' | ' . $strank . ' |
';
}
$stmtview->close();
echo '
If anything looks off, please fix it!
';
echo 'Return to title manager'; //this line needs to go away soon. Maybe?
?>