Jump to content

Insert Query help


PRodgers4284

Recommended Posts

Im looking to use an insert query to insert values into a table, i need the query to lookup the username of the person that is logged in and add the values to the table row assigned to that user.

 

$query = "INSERT INTO cv (name, size, type, path ) ".
		 "VALUES ('$fileName', '$fileSize', '$fileType', '$filePath')";

 

I need add the followinf where statement in

 

WHERE username='" . $_SESSION["username"] . "'")); 

 

 

Link to comment
https://forums.phpfreaks.com/topic/91257-insert-query-help/
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.