Posts by diogo Dsa • 652 points
48 posts
-
0
votes0
answers65
viewsQ: Get Json data with file_get_content with pagination
I am capturing Json data from an external url outside of my domain using file_get_content the url structure and this way https://site.com.br/pg=1 I use the code below to extract this data function…
-
0
votes1
answer487
viewsQ: Redirect everything to index.php HTACCESS
I have a website that redirects everything to index.php using htaccess using that code RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$…
-
1
votes2
answers44
viewsQ: Have more than one line in the same query
I cannot return the database data when I try to search for more products related to different categories. I am using the following query; SELECT * FROM `app_product` WHERE app_category = 6 AND…
-
1
votes4
answers109
viewsQ: Using the existing key_exists array
I’m trying to check if any value exists in an array in 1 array I can check if there is more when the array has another array inside I can’t verify if it exists. 1 array $array = array("Volvo" =>…
-
-2
votes1
answer40
viewsQ: I have an echo for each number X of the Foreach Php
I’m trying to find a logic to my problem I have the following foreach foreach ($Read->getResult() as $LastPDT): echo "a"; endforeach; in this example if you have 30 record it will print on the…
-
1
votes1
answer46
viewsQ: Using the Array_map Function
I’m trying to use the function array_map to apply a function to all indices of a array after executing the code it brings this array array (size=13) 0 => array (size=1) 'name' => string 'a'…
-
4
votes3
answers850
viewsQ: Taking value from an input
I have two inputs, and each input has a span. Follow the code below. $('.textInput').on('keyup', function(){ console.log($(this).val()); $(".val").attr("date", $('.textInput').val()); }); <script…
-
2
votes1
answer51
viewsQ: receive what is written from an input
I have the following situation where I have this input <input type='text' class='form-control' value='' id='textInput'> and I have the span <span date-dados='' class='j_details_action…
-
0
votes2
answers115
viewsA: php values exporting to javascript
you should echo the html and with jquery take this value example : <div id="container" id="<?= $teste="20"; ?>"></div> Jquery $(document).ready(function() { var teste =…
-
1
votes1
answer134
viewsA: PHP: Retrieve ID from a Simplified URL
Recommended and you use friendly url you can do as follows redirect all your traffic to index and manage the views according to the url passed example HTACCESS RewriteEngine On Options All -Indexes…
-
1
votes1
answer50
viewsQ: menu with Jquery tabs
I have the following menu it is vertical what I want to do and when I click on the link with the class j_open a ul with the class j_open_ul have a display block using the effect . toggle the problem…
-
1
votes1
answer603
viewsQ: check whether a string exists in an array that is inside another array
I have the following variable with name $array which has the following values array (size=5) 0 => array (size=1) 'name' => string 'a' (length=7) 1 => array (size=1) 'name' => string 'b'…
-
1
votes1
answer43
viewsQ: remove class after 1 with Jquery
I have the following situation where I want to add a class and remove the rest from the 1 <div class="voted rating-box color "> </div> this and the html where div has 3 class when…
-
0
votes2
answers128
viewsQ: Passing parameter in Mysql LIMIT
I am creating a paging system and in mysql I am using this way I take from record 1 and walk up to the 20 SELECT * FROM sistema LIMIT 1 , 20 I pick up from record 2 and walk up to 21 SELECT * FROM…
-
1
votes3
answers148
viewsQ: execute Jquery calculation for each corresponding div
well I’m creating a star rating system but I’m not able to get jquery to apply the correct Width for each span in the example below I have three DIVS and each of the 3 Divs within them has <span…
-
1
votes1
answer79
viewsQ: close tab using JQUERY
I am trying to click on the link Open the tab but when I click Open all would have some way when I click open only the tab corresponding to what I clicked and when I click again close again .…
-
0
votes1
answer327
viewsQ: Form via GET
I am sending data via get by the url the form this way <form action="dashboard.php?link=products/home&so=app_windows" method="GET"> </form> when sending redirects always to…
-
-1
votes1
answer211
viewsQ: file_exists returns False even if the file exists
In the system I’m using the file_exists to see if the image exists in the directory, the problem is that it always returns false even though the image exists in the directory, I’ve done almost all…
-
1
votes1
answer146
viewsQ: print variable Java script within HTML
how to print the variable click inside the Html <script type="text/javascript"> $(".j_requerimento").click(function(){ var click = 1; $(".j_label_requerimento").append("<span>IMPRIMIR…
-
0
votes1
answer319
viewsQ: set LIMIT in result paging
I have a problem I have a database that I use for testing where there is 1000 record and I have a website that pulls this data to be presented. I am using paging in my query this way…
-
1
votes1
answer428
viewsQ: file_exists does not find file
I’m having a problem using the php function that checks if any file exists in a directory using file_exists but always returns false even if the file being in the directory someone would have a…
-
-1
votes3
answers1112
viewsQ: how to create search system using filter
I have a search system where I search users filtering by: name, age and email. If I filter by name and age and email, everything happens well, but if I filter only by age, for example, nothing is…
-
0
votes2
answers614
viewsA: how to pass a php string through a java script parameter
solved it that way function chamarPhpAjax() { var so = $('.icon-dwl').attr('data-so'); var name = $('.icon-dwl').attr('data-name'); $.ajax({ url:'/assets/classes/meuajax.php', type: 'post', data: {…
-
1
votes2
answers614
viewsQ: how to pass a php string through a java script parameter
I’m creating a click counter on the link this way: <a href="#" onclick="return chamarPhpAjax();"></a> That by clicking on the link calls the function: function chamarPhpAjax() { var so =…
-
2
votes1
answer647
viewsQ: Resize images by passing values through the url
On my software download site, there are images of various sizes, for example: for each program there is an image (thumbnail), a large image and screenshots. Only I want to make the images all the…
-
0
votes1
answer210
viewsQ: Fix DIV between the head and footer of the page
Good people I have a div that gets fixed when scrolling the page, but I want it to scroll back with the page before it gets to the footer. The code below makes that when reaching the 300 of the…
-
0
votes2
answers1104
viewsQ: pass the id of an input to another page
I have a form that we inputs has the field id and when sending the form I wanted to recover these values in my code. <form action="edit.php" method="post"]> <label class="" > <span…
-
0
votes1
answer77
viewsQ: how to stop the for loop in a given action?
good people have a problem I have a form that uploads photos and saves the name in the database and moves the file to specified folder the problem this loop always repeats 5 times if I insert 5…
-
0
votes1
answer124
views -
0
votes2
answers101
viewsQ: how to change the class of an element according to the position of values within a foreach?
I have a menu where I list the categories. I use the foreach to list and everything is working right. My code is this: <?php $consulta_sub_cat = $pdo->query("SELECT * FROM ws_categoriasp");…
-
0
votes1
answer945
viewsQ: User-friendly URL with HTACCESS parameters
I am passing the whole old site to url friendly and with it came several problems on the old site the url was that way http://meusite/download/programa.php? title=Avast-free-Antivirus and with the…
-
0
votes0
answers54
viewsQ: Data being duplicated in date attributes within a foreach
I’m creating a star rating system where I list the posts and shows classification. The problem is in posts who receive the same note. You are not picking up each note post and yes of a single post…
-
0
votes2
answers48
viewsQ: How to show only the completed data of a query to the database
In my script, I do the query, but there are some fields that are empty and in foreach empty spaces. How do I only take the data you have filled? <?php $consulta = $pdo->query("SELECT * FROM…
-
0
votes1
answer122
viewsQ: how to work with friendly url
I have a site that does not use URL friendly my URL this so http://site/download/program? id=1&cat=113&dev=1 and it passes the parameters only I want the URL to look like this…
-
0
votes1
answer91
viewsQ: SQL query to return only filled table records
How do I return my query only records that are filled? My table has some blank records that are returned by the association. <?php $consulta = $pdo->query("SELECT * FROM ws_so_wind,…
-
1
votes2
answers29285
viewsQ: How do I resolve the "Notice: Trying to get Property of non-object in" error?
I have an administrative panel and in the page to edit the user I receive the data by the form and do the update in the table so that always returns the message from Notice error: Trying to get…
-
2
votes3
answers362
viewsQ: how best to create a cookie for the user voting system to vote once
this system for rating with stars is all working more I just wanted to create a cookie so that user vote only once every day tried several ways more the cookie is not generated $(function(){ var…
-
0
votes2
answers116
viewsQ: pull site structure through database
I have a doubt I have a relatively large site where a section of the site repeats often to where the structure and equal on all pages what changes is the content that is pulled by the database most…
-
0
votes1
answer17
viewsQ: how to create a slidershow for content
ola personal I have a doubt I see that some sites have adopted a slide show with image and titles where after a certain time passes to the next slide wanted to do the same of the site of the G1…
-
0
votes1
answer1994
viewsQ: How to Get Data from a Mysql Database from id
Good people have this voting system where it saves in the database the votes . Only that it pulls all the data at once using the code below, the file will return ALL registered names. But I want to…
-
1
votes1
answer385
viewsQ: parse HTML as PHP with Htaccess
I have an html site and want HTML pages to be parsed as php; I’m using a . htaccess file for this. On the localhost server, it works correctly. The command is: Addhandler application/x-httpd-php .…
-
2
votes3
answers5460
viewsA: How to hide the file URL? (do not show the whole file up)
Edit the .htaccess and put the code down AddHandler application/x-httpd-php5 .htm AddHandler application/x-httpd-php5 .html AddHandler application/x-httpd-php5 .shtml AddHandler…
-
2
votes1
answer614
viewsQ: Sliding divs for content
Someone could help me how to box with slider content and by clicking on the arrows the Div is Pushed and so showing the other box as in the image below the globe example . I’ve done with java script…
-
11
votes1
answer3143
viewsQ: Detect Adblock and display a message
What I’m trying to do is detect Adblock Plus and display a message.
javascriptasked diogo Dsa 652 -
1
votes1
answer100
viewsA: Automatic image traversal of a gallery with Opacity effect
good since I did not get an answer on how to do the automatic exchange of an image in a gallery I decided to try and write a little bit I made a script that fits very well what I wanted below the…
-
2
votes1
answer100
viewsQ: Automatic image traversal of a gallery with Opacity effect
I have a small gallery of images next to each other it already has opacity 0.1 and when passing the mouse over one of the images the opacity effect becomes clearer 1.0 only I want to be made an…
-
1
votes2
answers791
viewsQ: How to create anchored links and darken all the rest of the page’s content except the intended section?
Here’s what I wanna do: <div id="ponto0"><a href="#ponto1"> Link </a></div> <div id="ponto1"> conteudo </div> By clicking on the link href="#ponto1" the person…
-
2
votes3
answers1636
viewsQ: Download Counter
I wonder if someone could help me do the following: I have a download site where I want to do a download counter for each page and when clicked, update the number of downloads on the page…