' . $_SESSION['tid'] . '
';
$stid = array();
foreach ($_POST['editstitle'] as $tredit) {
$stid[] = (int)$tredit;
}
$stid = implode(',', $stid);
echo 'the value of stid is now: ' . $stid . '
';
$sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE titlenameid = ? AND stnameid IN (?)");
$sredit->bind_param("is", $tid, $stid);
$sredit->execute();
$sredit->store_result();
$sredit->bind_result($gwtid, $gwstid);
while ($sredit->fetch()) {
echo 'farts
';
}
$sredit->free_result();
$sredit->close();
// keep this section
/* if (isset($_POST['editstitle'])) {
$sredit = $con->prepare("SELECT * FROM gwsubtitles WHERE stnameid = ? AND titlenameid = ?");
foreach ($_POST['editstitle'] as $tredit) {
$sredit->bind_param("ii", $tid, $tredit);
$sredit->execute();
$sredit->store_result();
$sredit->bindresult(
echo 'the value is: ' . $tredit . '
';
}
} else {
echo 'nothing is set??
';
}
*/
echo '
code to mod title ranks via an include goes here
';
echo 'Return to title manager';
?>