1
I want to insert the variable phone with the 351 before the variable, I’m trying this way:
$query = 'INSERT INTO raddb.Utente (telefone) VALUES ( ?)';
$stmt = $conn->prepare( $query );
$stmt->bind_param("s", 351$telefone);
$stmt->execute();
But this way does not insert. I also tried so:
$query = 'INSERT INTO raddb.Utente (telefone) VALUES ( 351?)';
$stmt = $conn->prepare( $query );
$stmt->bind_param("s", $telefone);
$stmt->execute();
But also without success
Why not concatenate the variable? eg:
'351'.$telefone
– Gleidson Henrique