Fatal error: Call to undefined function mysql_field_type()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcccy005
Forum Contributor
Posts: 123
Joined: Sun May 28, 2006 7:08 pm

Fatal error: Call to undefined function mysql_field_type()

Post by mcccy005 »

OK, so I get the above error in the following code:

Code: Select all

$mysql_data_type = mysql_field_type($result, $j);
I've constantly had problems with using mysql functions but mysqli functions seem to work ok.
However; I can't find an equivalent mysqli function to find the field type of a particular piece result. (I have retrieved the results in the form of an array using fetch_row( ) and want to find out what data type is in each key of the array.)

THanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

mcccy005 wrote:However; I can't find an equivalent mysqli function to find the field type of a particular piece result.
see http://de2.php.net/manual/en/function.m ... -field.php
Post Reply