Page 1 of 1

reading the col's order from the first and so on

Posted: Thu Dec 11, 2003 8:17 am
by pelegk2
i want ot check which col's i have in mySql
and the name's an type by there oreder- whuch means which it the first col'which is the second col and so on

Posted: Thu Dec 11, 2003 8:24 am
by aquila125
mysql_list_fields is your friend

Posted: Thu Dec 11, 2003 8:37 am
by pelegk2
how do i know the type?

Posted: Thu Dec 11, 2003 9:07 am
by twigletmac
Look in the manual, the answer is there:
http://php.net/manual/en/function.mysql-list-fields.php

Mac