Why did my PHP stop working?
<p>I have some complex code. Complex, but it <em>was</em> working.</p>

<p>The I wanted to add some new code, realized that something needed to become a function and then went on a refactoring rampage. Now my code no longer works.</p>

<p>So I did a bit of file compare, some code reading and debugging, and convinced myself that my changes hadn't broken anything.</p>

<p>To test this theory, I put together an exceedingly simple test program:  </p>

<pre><code>&lt;?php 
$connection = odbc_connect("Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=mysql;Option=3;", "root", "");
var_dump($connection);
echo '&lt;br&gt;';
  $result = @odbc_exec($connection, 'show version()');
  var_dump($result);
?&gt;
</code></pre>

<p>which resulted in  </p>

<pre><code>resource(2) of type (odbc link) 
bool(false)
</code></pre>

<p>The strange thing is that the odbc_connect() succeeds, but the simplest MySql command I can think of fails.</p>

<p>Btw, I have tested at the command line &amp; the MySql server is up &amp; running (Xampp) and reports v 5.1.41.</p>

<p>Obviously I am overlooking something very basic, but what?</p>
