> > um...im not doing selects im doing inserts with variable names... i > > understand the idea with select but thats not the deal....its an > > insert... > > i was hoping that wouldn't cause any confusion, but i guess > it did. the > thing to remember is that a query is a query. you know, parts > is parts. > > here is your first query, written better. > > <?php > $sql = " > INSERT INTO $EventsTable > VALUES > ( NULL > , '{$_SESSION['add']['type']}' > , '{$_SESSION['add']['start_date']}' > , '{$_SESSION['add']['end_date']}' > , '{$_SESSION['add']['name']}' > , '{$_SESSION['add']['county']}' > , '{$_SESSION['add']['discription']}' > , '{$_SESSION['add']['StartingDay']}' > , '{$_SESSION['add']['StartingMonth']}' > , '{$_SESSION['add']['StartingYear']}' > , '{$_SESSION['add']['EndingDay']}' > , '{$_SESSION['add']['EndingMonth']}' > , '{$_SESSION['add']['EndingYear']}'"; > > ?>
Also noting that there's no closing parenthesis... But maybe it's being added in a following line. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php