MySQL Forums
Forum List  »  PHP

modify source code: query that php send to mysql ( function mysql_query() )
Posted by: Elvis Ciotti
Date: September 13, 2005 11:00AM

Hi all !!

I use php 5.0.5 (apache 1.3.33) and mysql 4.0.25 in os linux.

In mysql 4.0.25, where are the source code of libraries that php 5.0.5 use in order to send the query to mysql ?
How I recompile mysql ?

I would like to modify the query that php send to mysql with the php function mysql_query($query, $conn).

Example:
if the php code is
<? [...] mysql_query("select * from table"); [...] ?>
i want that mysql receive the modified query
(ex: "select * from table_new" if the modified source code (code of mysql libraries) append "_new" to variabile that contain the query to send).

if you modify libmysql/libmysql.c i had some problems.

Best regards !!

E.Ciotti

Options: ReplyQuote


Subject
Written By
Posted
modify source code: query that php send to mysql ( function mysql_query() )
September 13, 2005 11:00AM


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.