I have the following code:
$stmt = $conn->prepare("INSERT festiwal_zdjecia (uuid, url, rok) VALUES(?, ?, ?) "
."ON DUPLICATE KEY UPDATE rok = ?;");
$stmt->execute(array($uuid,$z,$rok,$rok));
The $z variable is equal to 'xxx|yyy.jpg'. After running the script, in the db I can see: url = 'xxx'.