title: $sql and $result - Reason for using both?
body: <p>Just trying to improve the efficiency of my code so a simply question:</p>
  
  <p>I see quite often people declare their SQL query using one var ($sql) and then putting the result into another ($result). Is there any reason people do this apart from keeping things slightly tidier? I presume it's slightler better just to put the SQL query straight into mysql_query(). But there may be some other reason people are hiding.</p>