note 94638 added to function.odbc-field-type
| From: | laff at osu1 dot php dot net | Date: | Mon, 16 Nov 2009 12:20:04 +0000 |
| Subject: | note 94638 added to function.odbc-field-type | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162946@lists.php.net to get a copy of this message | ||
Alternative way for sql 2005 and odbc on winxp
function tableinfo($table){
$tmp=odbc_exec($this->connection, "SELECT COLUMN_NAME, DATA_TYPE, NUMERIC_SCALE,
CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_NAME =
'$table');" );
while($row=odbc_fetch_array($tmp))
$info[array_shift($row)]=$row;
return $info;
}
----
Server IP: 78.41.104.8
Probable Submitter: 94.45.190.5
----
Manual Page -- http://www.php.net/manual/en/function.odbc-field-type.php
Edit -- https://master.php.net/note/edit/94638
Del: integrated -- https://master.php.net/note/delete/94638/integrated
Del: useless -- https://master.php.net/note/delete/94638/useless
Del: bad code -- https://master.php.net/note/delete/94638/bad+code
Del: spam -- https://master.php.net/note/delete/94638/spam
Del: non-english -- https://master.php.net/note/delete/94638/non-english
Del: in docs -- https://master.php.net/note/delete/94638/in+docs
Del: other reasons-- https://master.php.net/note/delete/94638
Reject -- https://master.php.net/note/reject/94638
Search -- https://master.php.net/manage/user-notes.php