This joke is so nerdy ;D
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 11, 2010 5:34am
Subscribe [16]#16 / Dec 12, 2010 8:22am
This joke is so nerdy ;D
#17 / Dec 13, 2010 7:31pm
OS Commerce has this kind of thing all over the place:
function tep_db_num_rows($db_query) {
return mysql_num_rows($db_query);
}
function tep_db_data_seek($db_query, $row_number) {
return mysql_data_seek($db_query, $row_number);
}
function tep_db_free_result($db_query) {
return mysql_free_result($db_query);
}
function tep_db_fetch_fields($db_query) {
return mysql_fetch_field($db_query);
}The question is: why do they write their own functions that just call native PHP functions and do nothing else special?
#18 / Dec 13, 2010 7:57pm
So you could replace mysql_some_function() by foobar_some_function(), without having to go through all your code?
#19 / Jul 27, 2012 1:33pm
LOL, what an idiot