How to use the compressor, with PHP and SQL database?
Thank you for the screenshots.
It looks like there is some issue with connecting to the DB.
Could you please try to open http://localhost/PruebaFlexmonster/comprimir.php in the browser and check whether you see the data response properly.
Also, please check Chrome dev console for the JS errors.
This information may help to investigate the problem.
Hi, i now use MySql but i think the properties that use the compressor are obsolete, what can I do?
Hi, thank you for the answer.
mysql_ methods are deprecated in PHP, so it is better to use a newer MySQLi extension with
compressMySqli method. Also, please verify that MySQLi extension is enabled in PHP (http://php.net/manual/en/mysqli.installation.php).
Hope it helps.
Hi, I decided to try ASP and it works perfect. But now I need to know how to pass the query by parameter.
Could you give me some guidance?
Thank you for writing. We are glad that ASP works fine for you. In such case, we recommend passing additional attributes using params area. For instance, you have the following URL: “http://localhost:17178/api/flexmonster/Get“. In the params area, you can add some additional parameters and then parse them on the server side. It will look the following way: “http://localhost:17178/api/flexmonster/Get?queryId=178“. After that, you can parse
queryId=178 from the request and then do the appropriate actions according to the passed parameter.
Please let us know if the information above was helpful for you.