- Code: Select all
Page Load Error
The document contains no data.
The network link was interrupted while negotiating a connection. Please try again.
After some debugging I found that this code was apparently causing the error:
- Code: Select all
$dbh->query("SELECT * FROM blog")
So, I tried some example PDO code (3 lines), pulled from PHP.net, which gave the exact same result. I then tried my original code on a Linux live server (hosted), also with PHP 5.2.8 and it did work! Then I went on to download XAMPP 1.6.8 (with PHP 5.2.6). To my surprise (or perhaps not ) the original code worked like a charm, again.
So, in the good spirit of elimination, I'm inclined to believe there's a bug in the Windows version of PHP 5.2.8 / PDO that's bundled with XAMPP 1.7.0.
Can anybody confirm this? Any insights? Thanks!