My wordpress insert to database allways inserts new rows ... i try to use the replace but still no joy, im using:
global $wpdb;
$wpdb->replace(bruno_wallet, array( 'nome' => $nome[0],
'valorhora' => $valor_horas ,
'data' => $data ,
'evento' => $evento ,
'horarios' => $horarios,
'obs' => $obs,
'foto' => $ii,
'totalparcial' => $total_parcial,
'id_do_mes' => $id_postt,
'horas' => $numeros_horas ));
to insert on wordpress to database, but i want to only insert if it dosent exists...but now it allways adds new entrys