Posts by Pablo Degani • 17 points
5 posts
-
1
votes1
answer69
viewsQ: Do browsers cache the . htaccess file?
I wrote a regular expression to make the site always redirect to the HTTPS protocol. However, it is not possible to use HTTPS in localhost. To gain access, I turned the lines responsible for the…
-
0
votes0
answers571
viewsQ: Failed connection to database: SQLSTATE[HY000] [2002] No such file or directory
I have this error in Mysql when I try to make the connection. Everything works perfectly when run by localhost, but when running by hosting, it happens: SQLSTATE[HY000] [2002] No such file or…
-
0
votes2
answers259
viewsQ: AJAX request function that returns another function for JSON object manipulation
I have a function that uses AJAX to return data from a database. The data is processed and returned in JSON and, from there, I do the proper manipulations. So: function getData() { $.ajax({ url:…
-
0
votes2
answers208
viewsQ: Quote problem in query syntax in Mysql
I have a class, and within this class, I have a function to update a data in the Mysql database. Follow the function: public function set_detail($id, $detail, $value) { $query = "UPDATE `contacts`…
-
-2
votes1
answer110
viewsQ: How to limit the number of lines in a text with Javascript/jQuery?
I want to limit the amount of characters in a paragraph to up to two lines, and not necessarily in an absolute amount of characters, since the amount in each line can vary as the width of the…