Posts by Marcos Vinicius • 7,188 points
309 posts
-
1
votes1
answer132
viewsQ: How to return the Timezone timestamp set?
I’m trying to return the timestamp of my city. When I use the instruction ('Y-m-d H:i:s') it returns the right time of my region but I need to return the timestamp of that hour and it seems that…
-
2
votes1
answer7488
viewsQ: How to count down with jQuery?
I’m writing a script for study purposes at that link and would like to implement in this script a clock with countdown as is done on collective purchase websites and would like the help of you to…
-
1
votes1
answer310
viewsQ: How to get thumbnail Wordpress with pure PHP?
I would like to take the URL of thumbnails in the Wordpress database using pure PHP to put in a Magento project in order to show the posts on the home page. Like that relationship Magento ->…
-
1
votes1
answer920
viewsQ: How to return all results from the [PDO] database?
I’m doing a function to return all the results of a database. The function in this exact format returns me only one result but putting echo in each statement returns me all the results. How can I…
-
2
votes2
answers410
viewsQ: How to make an SQL query that returns an object instead of an array?
Not much to talk about. What I need is to know how to make a query that returns me an object instead of an array in the format: $eventos = [ new Evento(1, new \DateTime('2015-01-26'), 'Titulo #1'),…
-
-5
votes1
answer60
viewsQ: Bootstrap creating a new column for the second title of the same month?
This script has an object that returns records from different months. In the first month there are two records and PHP is creating a new column for the second record of the same month. Can someone…
-
1
votes2
answers268
viewsQ: How to mount an SQL to display grouped content per month?
I need to mount an SQL to group information per month within Bootstrap formatted columns. Come on: <div class="container"> <div class="row"> <div class="col-md-3"> <h2…
-
1
votes1
answer398
viewsQ: Is it possible to create a dynamic field within an Advanced Custom Field?
I need to create a field dynamic pulling information from the database that will be relating teachers and their characteristics and putting this field as ACF [Advanced Custom Fields] within a UI CPT…
-
1
votes0
answers182
viewsQ: How to insert the Slider Revolution Magento Extension block into phtml files?
I’m making some unproductive attempts to insert the block created by the extension for Magento inside the files phtml theme and already tried to insert as a block of the Slider Revolution and also…
-
1
votes1
answer451
viewsQ: How to verify the existence of the class in this case of jQuery?
How can I check if the class exists in a variável jQuery? jQuery(function($) { // Captura o atributo para manipulá-lo var atributo =…
jqueryasked Marcos Vinicius 7,188 -
1
votes1
answer324
viewsQ: How to manipulate an element with jQuery when they are at the same hierarchy level?
echo '<div class="servico">'; ?><p class="servico_title opensans fw700 fs16"><?php the_title() ?></p><?php echo '<img src="'.UP.'/2015/08/enfeite_serv.jpg"…
jqueryasked Marcos Vinicius 7,188 -
1
votes3
answers16761
viewsA: Change the contents of the div without refreshing the page
I am learning jQuery and this is not the best and most semantic solution but it solves your problem if the content is static. I added jQuery library to run. $(function(){ $("div").css("display",…
-
0
votes3
answers2160
viewsQ: What is the logic of a shopping cart?
I am learning programming and want to try to make a shopping cart system in PHP that adds the products in the cart and finalizes the order. From what I’ve been seeing, it seems that this type of…
-
3
votes3
answers3409
viewsQ: How to receive a POST without the <form> tags in PHP?
<?php if(isset($_POST['pagando'])) { //faz alugma coisa } ?> <input type="submit" name="pagando" value="PAGAR"> Gave a general blank here personal. How to send pagando to the PHP without…
-
2
votes2
answers3277
viewsQ: How to extract specific data from a php html file?
I wonder how I can extract part of the contents of a file HTML. This file has dozens of emails and names and would like to extract this data. Can anyone help me to do this? <div class="tcell…
-
2
votes2
answers650
viewsQ: How to point all pages of the site to one page?
I am in need of a solution in htaccess that points all pages of the site to a specific page of the type: http://meusite.com.br/pagina1.html -> http://meusite.com.br/index.php…
htaccessasked Marcos Vinicius 7,188 -
4
votes1
answer2336
viewsQ: How to redirect via . htaccess?
I’d like to redirect 15 to 20 urls static from one site to another url, type: http://meusite.com.br/home1.html for http://novosite.com.br http://meusite.com.br/home2.html for http://novosite.com.br…
htaccessasked Marcos Vinicius 7,188 -
9
votes4
answers268
viewsQ: How to improve this jQuery code?
I’m learning jQuery and I don’t always know exactly how to develop the code more cleanly, semantically, I’ll end up learning. How could I improve this code? $("#click_apoio").on('click', function(…
-
0
votes1
answer3405
viewsQ: How to take the href of an element and also assign it as id of it without Sharp (#)?
I’m wearing a shortcode in Wordpress that only gives me the possibility to insert the following attributes: <a href="#anatomia" target="_self" class="dt-sc-button small">Inscreva</a>…
jqueryasked Marcos Vinicius 7,188 -
3
votes3
answers933
viewsQ: How to remove the last character, store the result in a variable and use the variable outside of foreach?
I have a code PHP thus: foreach ($rows as $obj) : $all_ids = $obj->ID . ', '; endforeach; .. whose exit is 125, 148, 157, 169, 185, How to remove the last comma and store the rest of the output…
-
1
votes1
answer3169
viewsQ: How do I connect to the database via [Wordpress] to query?
Well, I have a call jQuery Ajax in the header.php of my theme that is entering a file PHP at the root of my Wordpress and return me the echo test. I need this file to query the banco de dados and…
-
9
votes2
answers16374
viewsQ: What is the difference between Ajax dataTypes in jQuery?
I am learning jQuery and I need to know the difference between Ajax dateTypes. dataType: "xml" dataType: "json" dataType: "script" dataType: "html" How this influences the execution of the script…
-
1
votes1
answer52
viewsQ: Why is there such a "(jQuery)" at the end of Function?
I wonder why there is this instruction (jQuery) at the end of function. jQuery(function($){ // alert('Oi'); $(".widgets-holder-wrap").removeClass('closed'); })(jQuery);…
jqueryasked Marcos Vinicius 7,188 -
1
votes2
answers41
viewsA: How to stipulate details with a SELECT
First you make the consultation: $connection = mysql_connect("localhost", "user", "pass"); $selectbase = mysql_select_db("base", $connection ); $slectdados = mysql_query("SELECT * FROM news ORDER BY…
-
0
votes1
answer187
viewsQ: Modify HTML element via Jquery functions
<div id="post-0" class="col-md-8 single-publicacoes"> <div class="index"> <div class="index-thumbnail">[IMAGE]</div> <div id="index-mascara">[EFEITO]</div>…
-
2
votes2
answers1084
viewsQ: How to loop posts in Wordpress?
Guys I need to create that provision of articles in my Wordpress loop and do not know how I could do. I know it will require some instructions in PHP and some implementations of Bootstrap, I’m using…
-
1
votes1
answer29
viewsQ: How to use reversed function in this case of jquery?
// Aplicando CSS na Página de Eventos $(".descr-eventos").on('mouseover', function(){ $(this).find('.link-evento').addClass('blank'); }, function(){…
jqueryasked Marcos Vinicius 7,188 -
2
votes2
answers810
viewsQ: Which jQuery event to use for database query?
jQuery(function($){ // Chamando as funções $('#busca-cidades').keyup(function(){ ... I am making a query in the database and returning this query formatted with html/css and the query is in…
-
1
votes1
answer77
viewsQ: How to perform a 250px horizontal slider per click?
Good morning guys, I used the instagram API to show my profile photos on the website and could not find any solution Carousel that didn’t conflict with Magento’s jQuery, so I started making the hand…
-
0
votes1
answer390
viewsQ: How to select tables by prefix [MYSQL]?
I have 20 different sets of tables inside the same bank where each of them corresponds to a virtual store. Since my tables are organized by prefix, how can I select all tables of a certain prefix to…
-
0
votes1
answer626
viewsQ: How can I make these images slide from top to bottom and from bottom to top with jQuery?
I would like to develop something in jQuery that makes the images of that page each one inside its "square" slide from top to bottom when the mouse is placed on top of the image and back to top as…
-
2
votes1
answer1503
viewsQ: Iframe with my domain as source does not load. How to resolve this?
I put the iframe <iframe src="http://axitech.com.br"></iframe> in an html file within the domain itself and then put inside another domain. The result is that my url does not click on…
-
1
votes2
answers154
viewsQ: How to recover the option on click and select the item that is in its value?
<div class="escolher_temas"> <form action="iframe.php" method="GET"> <select name="escolhe_tema"> <option value="http://z05.axitech.com.br">Tema 1</option> <option…
-
0
votes1
answer101
viewsQ: How to redirect all urls from a subdomain to a specific url?
How can I do this with .htaccess? All pages of http://axi.axitech.com.br/ should be directed to the page http://axi.axitech.com.br/lojas-virtuais
-
9
votes5
answers3697
viewsQ: How to import a variable within a function of a class?
I’d like to take the $valortotal and take it into a function of a class as can be seen in the example below. Thank you. $valortotal = 15.00; class CreatePaymentRequestLightbox { public static…
-
1
votes2
answers325
viewsQ: How to return all installments in this function in [PHP]?
Good evening, everyone. I’m stuck in an impasse I can’t resolve. I need to return 11 times $tot_formatado which corresponds to exactly once for each parceling rate present within the array. If you…
-
3
votes2
answers328
viewsQ: How to swap a string with jQuery?
I need to capture a string, take a piece of it and exchange this piece for another text. <img src="/kit_150x150-12por-150x150.png"> I need to get the piece 150x150.png of src and trade for…
jqueryasked Marcos Vinicius 7,188 -
1
votes1
answer387
viewsQ: How do I convert these strings to PHP?
I have the following instructions .... echo $parcelamento . "<br>"; echo utf8_encode($parcelamento) . "<br>"; echo utf8_decode($parcelamento) . "<br>"; ... that return respectively…
-
0
votes1
answer316
viewsQ: How can I change with event click the menu of an item?
I’m working on this website and I wish they could help me to show only the sub-menu of the item that was clicked. Explaining a little, I put the image inside the <li> containing the class…
-
0
votes1
answer589
viewsQ: Why is Wordpress Importer so slow to error?
Exactly ... Why the plugin Importer of Wordpress is so slow to import content from xml and because it is not updated to times being a relatively important of the same for content generation? E ...…
-
2
votes2
answers841
viewsQ: How to add a field of a given ID with multiple records?
The story is this: a politician can vote for several zonas, therefore the reason for the same ID candidate contain multiple records within the table. The ID_CANDIDATO being 120000000171, he having 6…
-
5
votes2
answers880
viewsQ: Duplicate value in table. How to remove?
I inserted some TSE tables in my database and have duplicate column values SQ_CANDIDATO representing the image above. How can I do a maintenance with sql who will remove ALL the duplicated values…
-
1
votes0
answers148
viewsQ: HTACCESS crashes correctly on environment change
I have to migrate from a website to a rookie for a dedicated server hosting and my htaccess simply decided to stop responding to the urls by sending the url to the error page. It even mounts the url…
-
1
votes1
answer157
viewsQ: What is the best logic to implement sub-menu with mouse events
I am developing this site and for now I have not put any Javascript code in it to make it dynamic. I have a problem that repeats itself in all projects for lack of knowledge of language and logic,…
-
3
votes2
answers767
viewsQ: How to ignore a duplicate field and proceed with insertion?
I have a file txt that I am extracting information and in it the information is repeated 6 times, which inserts me in the database the same record also 6 times. Setei UNIQUE for a unique number to…
-
-2
votes1
answer157
viewsQ: How to make this insertion dynamically?
How to do this insertion dynamically knowing the total number of columns? mysql_query("INSERT INTO VOT_PART_MUN_ZONA VALUES ( '$dados[0]', '$dados[1]', '$dados[2]', '$dados[4]', '$dados[...]',…
-
-2
votes1
answer60
viewsQ: I want to remove everything after searching with jQuery
Here is the url: .../search?…
jqueryasked Marcos Vinicius 7,188 -
2
votes1
answer110
viewsQ: How to clear the value of the parameter to enter new values?
&fespecial=lanccontrucao&fespecial=novopronto Here is a parameter that persists when executing the code below: // $("#fe1").click(function(){ // $("#fe2").click(function(){…
jqueryasked Marcos Vinicius 7,188 -
2
votes1
answer44
viewsQ: What is the name of these instructions in Wordpress?
How is PHP instructions specific to Wordpress called? Of the type: bloginfo("url"); bloginfo("template_url"); get_bloginfo("description", "display"); I tried to look for Features but that’s not it…
-
0
votes1
answer197
viewsQ: I need to retrieve the information from a page. How can I continue what I started?
<?php header('Content-Type: text/html; charset=utf-8'); $ch = curl_init(); $timeout = 0; curl_setopt($ch, CURLOPT_URL,…