|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-15 08:49 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 19:00:02 2025 UTC |
Description: ------------ The mysql_fetch_field function isn't returning the default value of a column. Reproduce code: --------------- $res2 = mysql_query("SELECT * FROM `$tablename`"); while ($property = mysql_fetch_field($res2)){ echo "Field name: " . $property->name . "<br />"; echo "Table name: " . $property->table . "<br />"; echo "Default value: " . $property->def . "<br /><br />"; } Expected result: ---------------- Field name: pages Table name: prefix_smallCMS_site Default value: no Actual result: -------------- Field name: pages Table name: prefix_smallCMS_site Default value: