Posts by Diego Souza • 1,030 points
17 posts
-
2
votes2
answers115
viewsQ: Error activating WP_DEBUG
I’m having a problem on my site in Wordpress. When I define in the wp-config.php, my site gets normal: define('WP_DEBUG', false); But when I define define('WP_DEBUG', true); The site gives page…
-
5
votes3
answers1009
viewsQ: Encryption security in php
I know there are other things that help keep a system secure, but I would like to know specifically about one: information encryption. For example, the password is information that in my projects I…
-
1
votes2
answers66
viewsQ: Right way to get a certain div
I’m trying to figure out a way to access a div via jquery to manipulate it. Follow the code: <div> <!-- Essa é a div que quero acessar --> <div> <div> <div…
jqueryasked Diego Souza 1,030 -
3
votes1
answer285
viewsQ: How to detect which js file is being used by the class of an element?
I am trying to check which files can be used by the class of a particular element. Example: <script src="arquivo1.js"></script> <script src="arquivo2.js"></script> <script…
-
3
votes3
answers294
viewsQ: How to relate category instance to a product instance in PHP
I have 2 classes in PHP, Product and Category. Following each other’s code. Product.php class Produto { public $nome; public $categoria; } Category.php class Categoria { public $nome; } In that…
-
4
votes2
answers1431
viewsQ: URL in netbeans does not work
I am trying to run a project in php in netbeans and it runs the following url: http://localhost/portfolio/index.php Only my project does not open. It only opens at the following url:…
-
2
votes2
answers318
viewsQ: How do I leave an element with page height all the time?
I have the following problem: I need to let a div have the screen height the time. <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="topo">...</div>…
-
3
votes1
answer4614
viewsQ: Use bootstrap style to generate pdf file with php
Is there any way to use bootstrap to style an html page that will later become a pdf? I’m using the mpdf60 plugin in php, and I only need the style boostrap offers to use it in exporting a pdf file.…
-
0
votes0
answers124
viewsQ: Debug php in visual studio
Someone knows how I can debug and find errors in php using visual studio. I searched a few places but found nothing satisfactory. When my page has an error in code, using visual studio it shows only…
-
1
votes2
answers1497
viewsQ: Delete file in php at specified frequency
I have been trying to do a function that could delete files from within a given directory according to an informed date. In this example below I have not yet created the function because I am still…
phpasked Diego Souza 1,030 -
1
votes0
answers64
viewsQ: Require() and include() in php
I’m starting some projects and have a little doubt about the use of include() and require(). In case I have a header and footer ready in php files, to call them, should I use include() or require()?…
phpasked Diego Souza 1,030 -
2
votes1
answer515
viewsQ: PHP Mailer sends email 2 times
I’ve been looking for this problem here on the forum, but I haven’t found it. If there is a link and someone can send me I’m grateful. The problem is this: This form of mine sends 2 emails to the…
phpasked Diego Souza 1,030 -
3
votes2
answers1787
viewsQ: Take multiple values from a multi select
I need to get values from a multiselect <select id="opcoes" name="opcoes[]" class="select" multiple="multiple" size="5" data-required required="required"> <option value="opcao1">Opção…
phpasked Diego Souza 1,030 -
0
votes0
answers67
viewsQ: How to make select mandatory using multiselect?
How can I make a select using the multiselect plugin become mandatory? I’m trying this way, but I still can’t find a solution $(".multiselect").multiselect({ required: "required"; }) If possible I…
jquery-ui-multiselectasked Diego Souza 1,030 -
58
votes7
answers115219
viewsQ: Mask for CPF and CNPJ in the same field
Hello, I looked for this doubt in the questions, but I could not find it. Well, I would like to make a field have the Cpf and cnpj masks depending on the number of characters typed. Here it doesn’t…
-
2
votes2
answers166
viewsA: Double insertion with mssql_query
I figured out what was going on, I was using a function to upload the files, the move_uploaded_file(). It was she who was causing the record to be entered twice. I just put her inside an if and it…
-
1
votes2
answers166
viewsQ: Double insertion with mssql_query
I am having a small problem and would like help to solve it. I have a code that makes the insertion into a SQL SERVER database through php. Everything is fine, except that two "INSERT" in the bank…