SQL table: contact\_id | phone.

Every `contact_id` has many phone numbers, so the table would be the following:

```
1  123456
1  567348
2  065879
1  778899
2  002030
...

```

For instance, I need to replace the first contact's phone numbers with 112233, 223344, 334455.

```
    $stmt = $connection->prepare( "UPDATE phones SET phone='$phone1' WHERE contact_id=?;");
    $stmt->execute();

    $stmt = $connection->prepare( "UPDATE phones SET phone='$phone2' WHERE contact_id=?;");
    $stmt->execute();

    $stmt = $connection->prepare( "UPDATE phones SET phone='$phone3' WHERE contact_id=?;");
    $stmt->execute();

```

It seems to have replaced all three rows with the last phone (334455). Actually, I have not tried it yet, but it is obvious. How to replace the phone numbers correctly?

```
 123456 -> 112233
 567348 -> 223344
 778899 -> 334455

```