Parse a mySQL query to type,table,fields and values
From: Gabriël vd Kruijk (gabriel[asdfasdf)
Date: 03/29/04
- Next message: Michael J. Astrauskas: "Re: how to catch invalid email in form"
- Previous message: dev: "Re: regular expressions in a string?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 17:34:46 +0200
I've been searching for a while to discover a way to be able to check a
query.
I would like to be able to indentify the TYPE (insert,update,delete,select),
fields available in the query with the values going to be inserted in the
field...
I believe it's possible to create this, but maybe some has solved be problem
before, there's a function or code snippet...
Anyone any solutions?
(The reason for this is: I've got a class for mySQL connections. This class
contains a method "query", I would like that method to parse the query and
add the following fields: updatedby and updated (containing the ID of the
current user and the current date and time). So maybe I'm looking this from
the wrong site, but I've no clue how to solve this)
Thanks in advance,
Gabriël
- Next message: Michael J. Astrauskas: "Re: how to catch invalid email in form"
- Previous message: dev: "Re: regular expressions in a string?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|