Marcos01 Posted October 23, 2008 Share Posted October 23, 2008 Hello, I want to insert data into an existing row. It already has the sessionid stored. When I insert now it creates a new row. How do I add data to the existing row? $sessionid = session_id(); $location = $_POST['location']; $query ="INSERT INTO formusers (sessionid, location) values('{$sessionid}','{$locatie}')"; Link to comment https://forums.phpfreaks.com/topic/129781-insert-data-from-session/ Share on other sites More sharing options...
GKWelding Posted October 23, 2008 Share Posted October 23, 2008 use the UPDATE function instead of INSERT. Link to comment https://forums.phpfreaks.com/topic/129781-insert-data-from-session/#findComment-672817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.