Andy B <mailto:[EMAIL PROTECTED]> on Tuesday, April 06, 2004 5:18 PM said:
> 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']}'"; ?> hth, chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php