Posts by Talisson Ferreira • 111 points
5 posts
-
1
votes1
answer74
viewsA: Doubt about alternative to decrease code size and make fewer queries
You can use your if to define what the query will be and finally perform it, you can also use functions of mysql itself to count the value of your query instead of performing a new, ex; <?php…
-
1
votes2
answers457
viewsA: Problem entering data into BD with PDO
Your connection class is a little confused, I think there is no need to extend it to the PDO class because, PDO is a native php class, there is also no need for the Static prepare() function. try to…
-
2
votes3
answers2116
viewsA: How to rewrite a URL?
Nicolas you can use the following rule in your . htaccess <IfModule mod_rewrite.c> RewriteEngine On # informa que será aplicada uma condicao no arquivo solicitado RewriteCond…
htaccessanswered Talisson Ferreira 111 -
1
votes2
answers505
viewsA: Error trying to move file to a folder with PHP and Javascript
ajax alone cannot call its function, it is also necessary to pass the file to its function by declaring the date attribute in the middle of its $.ajax function. <html> <head> <meta…
-
-1
votes1
answer1790
viewsA: How to redirect website to desktop version?
You can check if your GET value exists, if it exists the device check is not done. <?php require_once 'Mobile_Detect.php'; $detect = new Mobile_Detect; ?> <!DOCTYPE html> <html>…