$query ="SELECT * from table where id='1' AND name LIKE '$form_input'";
I want $form_input - to be the whole query. means I need to send actual SQL statement from the form. in my text field I want to be able to type: select * from table where..., submit the form and get result displayed by php. Any chance sth like this would work: $query = $form_input. I also know it's not a secure way to do this but that's the only idea I've got......
User Profile
Collapse
-
bartosz started a topic how to retrieve data from mysql via php form (how to pass whole query in parameter)in PHPhow to retrieve data from mysql via php form (how to pass whole query in parameter)
need my php page to be more like an interface to mysql. how can I use a text box to insert full sql query which is passed into parameter and get me a data I am asking for? I need my input to be whole query from start to the end.
thanks
No activity results to display
Show More
Leave a comment: