Need a special offer?Find out if your project fits.
+

How to use the compressor, with PHP and SQL database?

Answered
Sebastian Báez asked on March 22, 2018

I'm using the compressor with latest version, but stays loading anddoes not passI followed the step by step but still does not workIhope your help.
Thanks.

Attachments:
img1.jpg
img2.jpg
img3.jpg

5 answers

Public
Ian Sadovy Ian Sadovy Flexmonster March 23, 2018

Hello Sebastian,
 
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.
 
Regards,
Ian
 

Public
Sebastian Báez March 23, 2018

Hi, i now use MySql but i think the properties that use the compressor are obsolete, what can I do?

Attachments:
img1.jpg
img2.jpg

Public
Ian Sadovy Ian Sadovy Flexmonster March 23, 2018

Hi, thank you for the answer.
Actually, 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.

Public
Sebastian Báez March 23, 2018

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?

Attachments:
img1.jpg
img2.jpg

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster March 27, 2018

Hello Sebastian,
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.
Regards,
Dmytro

Please login or Register to Submit Answer