ignace Posted April 1, 2009 Share Posted April 1, 2009 I am using a program to manage my databases and everytime i execute a query it gives me the header name (as it should) and its data type. Now am i wondering how can i do the same thing? Has anyone any experience with this? Quote Link to comment https://forums.phpfreaks.com/topic/152041-solved-retrieving-data-types-from-a-select-query/ Share on other sites More sharing options...
ignace Posted April 1, 2009 Author Share Posted April 1, 2009 Don't bother i've found it Quote Link to comment https://forums.phpfreaks.com/topic/152041-solved-retrieving-data-types-from-a-select-query/#findComment-798476 Share on other sites More sharing options...
fenway Posted April 1, 2009 Share Posted April 1, 2009 Don't bother i've found it Then share with the rest of us. Quote Link to comment https://forums.phpfreaks.com/topic/152041-solved-retrieving-data-types-from-a-select-query/#findComment-798583 Share on other sites More sharing options...
ignace Posted April 1, 2009 Author Share Posted April 1, 2009 Well, I didn't really found an SQL query for it, but instead i used mysql_fetch_field() which provides me with the meta data. Quote Link to comment https://forums.phpfreaks.com/topic/152041-solved-retrieving-data-types-from-a-select-query/#findComment-798892 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.