Dumb question but..

Can something like this be done?
[php]$sql = “INSERT INTO user WHERE user = ‘$username’(image01) VALUES ( '”.mysql_real_escape_string($images[1])."’) LIMIT 1";[/php]

Thanks

Yes. It’s called an UPDATE statement

UPDATE user SET image01='".mysql_real_escape_string($images[1])."' WHERE user='".mysql_real_escape_string($username)."' LIMIT 1"

UPDATE is the U part of CRUD - its task is to modify already-existing records.

Sponsor our Newsletter | Privacy Policy | Terms of Service