Jump to content

Insert data from session


Marcos01

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.