This little piece of code gives Notice: Undefined index: placeno1
I know it can be fixed by using if(isset()), but I have no idea how to place this on the correct matter in this $query line.
Tried a lot, but can't get it right.
<?php
$query = mysql_query("SELECT `id` FROM `place` WHERE `placeno` = '".$_SESSION['placeno'.$i]."' LIMIT 1");
while($row = mysql_fetch_object($query)){
?>
Solution is
<?php
if(isset($_SESSION['placeno'.$i])) {
$query = mysql_query("SELECT `id` FROM `place` WHERE `placeno` = '".$_SESSION['placeno'.$i]."' LIMIT 1");
while($row = mysql_fetch_object($query)){
}
}
?>