List Info

Thread: note 78074 added to function.mysql-field-name




note 78074 added to function.mysql-field-name
user name
2007-09-26 20:00:14
just simplifying things..

$result = mysql_query(select * from tbl_name);

$i=0;
$max = mysql_num_fields($result);
 
counting up 
while(  $i<$max )
	$data['columns'][$i] = mysql_field_name($result, $i++);

and counting down

$i= mysql_num_fields($result);
while( --$i )
	$data['columns'][$i] = mysql_field_name($result, $i);
----
Server IP: 83.137.20.107
Probable Submitter: 85.147.156.203
----
Manual Page -- http://www.php.net/manual/en/function.mysql-field-name
.php
Edit        -- https://master
.php.net/note/edit/78074
Del: integrated  -- h
ttps://master.php.net/note/delete/78074/integrated
Del: useless     -- http
s://master.php.net/note/delete/78074/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78074/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78074/spam
Del: non-english -- 
https://master.php.net/note/delete/78074/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78074/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78074
Reject      -- https://mast
er.php.net/note/reject/78074
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


note 78074 deleted from function.mysql-field-name by bjori
user name
2007-09-27 07:29:46
Note Submitter: m dot hartman at succesnet dot nl
Reason: bad code

----

just simplifying things..

$result = mysql_query(select * from tbl_name);

$i=0;
$max = mysql_num_fields($result);
 
counting up 
while(  $i<$max )
	$data['columns'][$i] = mysql_field_name($result, $i++);

and counting down

$i= mysql_num_fields($result);
while( --$i )
	$data['columns'][$i] = mysql_field_name($result, $i);

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )