Jump to content

insert into already existing id


dachshund

Recommended Posts

hi

 

i have the following

 


$sql = "INSERT INTO `content` (`title`, `wordsby`, `indeximage`, `maincontent`, `information`, `section`, `type`, `date`, `tag_one`, `tag_two`, `tag_three`, `link`) VALUES ('$title', '$words_by', '$indeximageaddress', '$article', '$information', '$section', '$type', '$date', '$tag_one', '$tag_two', '$tag_three', '$link')";

 

but i want it to be inserted inter into `content` WHERE id LIKE '$id'

 

but it won't me do that.

 

i have the get id as well

 

$id=mysql_real_escape_string($_GET['id']);

Link to comment
https://forums.phpfreaks.com/topic/191888-insert-into-already-existing-id/
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.