I have a query that will update a row in the database, which works fine providing there is a row there to begin with.
How could I say; update if exists insert if doesn't?
    require_once('../scripts/includePDO.php');
    $who = $_SESSION['who'];
    $formText = $_POST['protext'];
$sql = "UPDATE tbl_profiles SET proText = :formText WHERE user_id = :who";
    $q   =  $conn->prepare($sql);
    $q->bindValue(':who',$who,PDO::PARAM_INT);
    $q->bindValue(':formText',$formText,PDO::PARAM_STR);
    $q->execute();
header("Location: ../settings/?status=Done");
 
     
     
    