Is there a mysql query validation library for php?
Writing some php that will allow a user to dump out some mysql for an administrator to run.
It would be very nice to be able to validate the mysql statements before dumping them out to be run. Obviously an admin can run the sql against an offline slave db or something -- but for the sake of trying, is there a lib out there to validate sql?
So this would return a value of 0 or ok!
select * from some_table;
And this would return a value of 1 or noway!
sex * from some_table;
Anyone have any good libraries?
|