title: Why is it entering the loop? vb net mysql
body: <p>I m new to vb net</p>
  
  <p>So here is my problem</p>
  
  <p>My database has 1 table=quiz and 3 columns of ID ,name and Flag
  All flags are set to '0'
  Whenever I delete ,instead of deleting ,I update the name field to xxx and Flag to 1</p>
  
  <p>In my database ,ID =3 has name = xxx
  Still y is it entering the loop? and printing the msg"OH no"?</p>
  
  <p>my code :</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim SQL as String
  SQL = "SELECT Name FROM quiz WHERE  Flag='0' AND ID='3'"
              c = 0
  
  
              If SQL &lt;&gt; "xxx"Then
                  ' Try, Catch, Finally
  
  
                  i = i + 1
                  MsgBox("Ohh no")
               END IF
  </code></pre>