usban
10-02-2002, 07:14 PM
Well i am doing an aplication whith PHP and Access, in the future probably i will have to change the database, so in order to make it an easy step i have tried to build an little file with the functions i use to connect and work with the database, in this file i give a name to all the functions and then i do what i want, in all my site i require this file and then call the functions by the name i have given them, so the idea is that if someday i change the database i only have to change this file.
the problem is that i have tried to do it changing the functions to mysql but i have found that functions that has the same name don't do the same, i mean odbc_fetch_row and mysql_fetch_row don't return the same, the first one returns an integer and the second an array. I'm trying to found the equivalents in mysql for the following funtions:
int odbc_fetch_row(int result_id [, int row_number])
and
string odbc_result ( int result_id, mixed field)
If someone know which are the equivalents or have any idea of how combine some of the mysql functions to get it, it wolul be helpful.
:confused:
the problem is that i have tried to do it changing the functions to mysql but i have found that functions that has the same name don't do the same, i mean odbc_fetch_row and mysql_fetch_row don't return the same, the first one returns an integer and the second an array. I'm trying to found the equivalents in mysql for the following funtions:
int odbc_fetch_row(int result_id [, int row_number])
and
string odbc_result ( int result_id, mixed field)
If someone know which are the equivalents or have any idea of how combine some of the mysql functions to get it, it wolul be helpful.
:confused: