MySQL Forums
Forum List  »  PHP

Re: modify source code: query that php send to mysql ( function mysql_query() )
Posted by: Chis Florinel
Date: September 14, 2005 01:49AM

Here is a solution:

define a user function:

function myMysqlQuery($sqlQuery)
{
//process query string here
return mysql_query($sqlQuery);
}

Then, find & replace in all files mysql_query with myMysqlQuery (There are editors that support multiple file replacement) so it won't take long.


Or you can use a db abstraction layer, and modify appropriate mysql_query() function.

Options: ReplyQuote


Subject
Written By
Posted
Re: modify source code: query that php send to mysql ( function mysql_query() )
September 14, 2005 01:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.