|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-08-06 20:06 UTC] jani@php.net
[2009-08-07 10:28 UTC] adaro2000 at yahoo dot fr
[2009-08-18 06:58 UTC] kalle@php.net
[2009-08-26 01:00 UTC] php-bugs at lists dot php dot net
[2009-10-26 17:25 UTC] adaro2000 at yahoo dot fr
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 13:00:02 2025 UTC |
Description: ------------ I install Xampp xampp-win32-1.7.0-installer. Php version is 5.2.8, Mysql version 5.1.30, Apache version 2.2.11 I'm using PDO to query my database. As i query out a result of more than one column, apache restart, and in log i read : [Thu Aug 06 17:53:23 2009] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring! [Thu Aug 06 17:53:31 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting. [Thu Aug 06 17:53:31 2009] [notice] Digest: generating secret for digest authentication ... [Thu Aug 06 17:53:31 2009] [notice] Digest: done Reproduce code: --------------- This produces an error : <?php $pdo = new PDO('mysql:host=localhost;dbname=data','user','pass'); $result = $pdo->query("SELECT login, pass FROM admin"); $result->setFetchMode(PDO::FETCH_OBJ); foreach ($result AS $line){ echo '<label class="nom">'.$line->login.'</label>'; echo '<label class="rates">'.$line->pass.'</label>'; } ?> Expected result: ---------------- I hope this will print data, but not. I run this without problem : <?php $pdo = new PDO('mysql:host=localhost;dbname=data','user','pass'); $result = $pdo->query("SELECT COUNT(*) as Me FROM admin"); $result->setFetchMode(PDO::FETCH_OBJ); foreach ($result AS $line){ echo '<label class="nom">'.$line->Me.'</label>'; } ?> It prints the exact number. Actual result: -------------- The browser seems to load the page, but i have a prompt Apache HTTP encouter an error and must... and the log is what i show on the top. Can you help me please ?