jatar_k - 9:02 pm on Aug 7, 2013 (gmt 0)
I only looked at the insert code, because that's way too much for me to read through and analyze.
you should test your data to find out why it's not working
what's in $seat? it's first mention is in this line
$namei = $_POST[$seat . 'name'];
which looks like it would end up pulling $_POST['name'], which I am guessing is unset, and putting that into $namei which is then blank