note 69911 added to function.mysql-field-name

From: Date: Tue, 26 Sep 2006 10:38:27 +0000
Subject: note 69911 added to function.mysql-field-name
Groups: php.notes 
Request: Send a blank email to php-notes+get-117675@lists.php.net to get a copy of this message
IMHO there is another simple way to get field's names. Ex. writing a row with fieldnames: <?php echo " <tr> <td>".implode("</td><td>", array_keys(mysql_fetch_assoc(mysql_query($query))))."</td> </tr>"; // Where $queery is your query. ?> PS. I have not tested it but may work. ---- Server IP: 195.222.164.18 Probable Submitter: 195.182.128.162 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-field-name.php Edit -- https://master.php.net/note/edit/69911 Del: integrated -- https://master.php.net/note/delete/69911/integrated Del: useless -- https://master.php.net/note/delete/69911/useless Del: bad code -- https://master.php.net/note/delete/69911/bad+code Del: spam -- https://master.php.net/note/delete/69911/spam Del: non-english -- https://master.php.net/note/delete/69911/non-english Del: in docs -- https://master.php.net/note/delete/69911/in+docs Del: other reasons-- https://master.php.net/note/delete/69911 Reject -- https://master.php.net/note/reject/69911 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117675) next »