Jump to content

Noob Update query problem


genista

Recommended Posts

Hi,

Nice and simple one but still causing me issues!

I want to change this query:

[code=php:0]
$query = "INSERT INTO
supplierimages (image1, supplierid)
VALUES ('$image1','$supplierid')";
[/code]

to UPDATE instead. The reason for this is I keep getting duplicate entry errors for the supplierid if it already exists in the database.

I won't embaress myself by posting my attempts to update, please help!


Thanks,


G
Link to comment
https://forums.phpfreaks.com/topic/27785-noob-update-query-problem/
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.