title: Print if MySQL returns no results
body: <p>This is my code so far. I'm attempting to print <code>No results found</code> if no results are returned by MySQL however I can't figure it out. Perhaps I'm using incorrect arguments. Could anyone provide me with an example? Much appreciated! </p>
  
  <pre><code>def movie_function(film):
      connection = mysql connection info
      cursor = connection.cursor()
      sql = "SELECT * FROM film_database WHERE film_name = '"+film+"' ORDER BY actor"
  
      cursor.execute(sql)
      rows = cursor.fetchall()
      for row in rows:
          print row[1]
  </code></pre>