for ($i = 1, $n = $_POST['sessionNum']; $i <= $n; ++$i)
{
$insert[] = "'" . mysql_real_escape_string($_POST['id']) . ($n == 1 ? '' : $i) . "'";
}
5
solved I dont want ‘1’ to be included next to string
for ($i = 1, $n = $_POST['sessionNum']; $i <= $n; ++$i)
{
$insert[] = "'" . mysql_real_escape_string($_POST['id']) . ($n == 1 ? '' : $i) . "'";
}
5
solved I dont want ‘1’ to be included next to string