Questions tagged as 'php'

1
answer

Removing WP tag with PHP

Colleagues. We are creating a new system and removing the WP, but the news we still get from WP, like old news. But when we bring the column post_content, it brings me the tag that appears next to the image:    [caption id="attachment_9472...
asked by 07.05.2016 / 21:09
2
answers

Move from one function to another

I have two functions in a class, how do I get the value of a variable that is inside a function and take advantage of that same variable in another function of the same class. I want to make the variable $ userFullname Global to be used in every...
asked by 20.05.2016 / 15:34
0
answers

Create custom freight module with settings table [closed]

I'm creating a module to add a new delivery method to the store. I followed that tutorial (I will not transcribe it, it's great and is not necessary for the question). The new method takes into account the buyer's country, product weight or...
asked by 17.11.2015 / 13:10
2
answers

Count values with specific data in MYSQL

I have a huge list of values that I need to count, the example is, I have 4000 barcodes and in those 4000, 2000 are marked in the without stock column with a yes . Better explanations In the total bar code count I use this code...
asked by 02.05.2016 / 18:05
2
answers

How to return a specific variable from within a function?

In this code I gave return $array and I'm using the data inside foreach , so far so good. I'd also like to use the $url_controle variable inside the file that I called the function. Question: How can I print this vari...
asked by 21.11.2015 / 12:34
2
answers

How to make mega menu stylized in Wordpress?

I need to make a mega menu similar to the product menu of this site: link I use Wordpress on the site I'm working on right now, I do not know if there is a plugin for this, but what most disturbs me in the creation of this menu is becaus...
asked by 19.11.2015 / 18:41
1
answer

Why is this PHP giving error in writing an XML?

I'm trying to make a simple XML that takes the data registered in a page in PHP but is giving error, can someone tell me what it is and how it can work? Error that appears when you press the button:    Fatal error: Uncaught exception 'DOMEx...
asked by 22.11.2015 / 23:33
2
answers

Select Inner Join from what is not on the other table

I have two tables, Anuidades and Pagamentos . From these annuities it is necessary to select data from Anuidades that have not yet been paid. Table Anuidades TablePagamentos Toreturntheannuitydatathathadbeenp...
asked by 19.11.2018 / 05:18
3
answers

Field input type="text" does not fill in data with more than one word

When loading a data into an input, only the first word is loaded. Example: '</form> <input type="text" value='.$result->name.' >'; $result->name contains the value "Hello World". Since the input only shows "Hello"....
asked by 31.08.2015 / 19:28
4
answers

Retry all values in Array stdClass Object

I would like help. I have an Array that returns the following values: Array ( [0] => stdClass Object ( [seccionalid] => 1 [seccionaldescricao] => DELSECPOL DE SJRIO PRETO ) [1] => stdClass Objec...
asked by 31.08.2015 / 19:07