title: Is "mysqli_query() or die(mysqli_error())" a good practice?
body: <p>So I usually use this structure to execute my queries on php, but the other day I was pointed out that it could be a bad practice.</p>
  
  <p>Could anybody tell me why this is wrong and give me some tips on what should I do instead?
  I'm really looking to learn and improve my code.</p>
  
  <p>Thanks in advance.</p>