Posts by adventistapr • 5,498 points
287 posts
-
0
votes1
answer704
viewsQ: Perform calculation Quantity x Value between inputs in shopping cart
I’m trying to make a calculation in my shopping cart, for example: quantity x price playing the result in another input, I was able to do for the first product, but the others are not working. The…
-
3
votes1
answer79
viewsQ: Variable type verification problem INT
I’m having a problem that I can’t understand, I’m going through two variáveisto the page produtos, the values are int, on this page I am receiving the variables and testing if they are really int…
phpasked adventistapr 5,498 -
2
votes1
answer98
viewsQ: Data referring to images being repeated when reading XML
I’m trying to get image data from a xml but I’m having a hard time doing it, the record I’m reading is being overwritten. I made a first foreach and I can find the date I need, but now I need to…
-
1
votes0
answers34
viewsQ: How to read icon information from an XML
I’m trying to extract some information from a xml and I’m not getting, what I can get is the date that’s on the node weather, but icon and text I can’t seem to get them in sequence. The previous…
-
0
votes1
answer190
viewsQ: Read multiple url s at the same time by saving information to Database
I’m getting, from a few url´s provided by a api of Climatempo, weather forecast information on these url´s should inform the cities I wish to consult, ie their id´s and they return to me a xml with…
phpasked adventistapr 5,498 -
1
votes1
answer3960
viewsQ: How to resolve Illegal offset type message
I’m getting this error message: PHP Warning: Illegal offset type in E: home topdeia Web n-chipi atualizar-dados.php on line 9 The code I have is this: session_start(); $acao = $_POST['acao']; if (…
phpasked adventistapr 5,498 -
1
votes1
answer110
viewsQ: How to resolve error message generated by Getsqlvaluestring function
I’m using the function GetSQLValueStringof dreamweaverto validate some variables and everything works well, but doing a test with the program Acunetix Web Vulnerability Scanner 9.5 I came across an…
phpasked adventistapr 5,498 -
5
votes4
answers1270
viewsQ: How to fix Cross site scripting or XSS
I’m studying about some vulnerabilities I found on a site I did and I came across the possibility of the attacker sending malicious code, so I read and so my question here, I just need to fix my…
-
0
votes1
answer212
viewsQ: Format xml in php to write to Mysql?
I need to format a xml in php to record on MySQL, but I’m having a hard time understanding it and even doing it. Today I have this xml: <?xml version='1.0' encoding='UTF-8'?> <api>…
-
3
votes1
answer496
viewsQ: How to include generated php file in mpdf
I’m using the library mpdfto try to display in pdf a file created in php But I’m having a hard time making the same thing work, and I think the way I’m trying to be is not the right way. The archive…
-
5
votes2
answers17620
viewsQ: How to remove semicolon character with excel
I am trying to use an excel formula to remove the semicolon, but even with the correct formula line I am not able to solve. What I got now is this: =SUBSTITUIR(SUBSTITUIR(K2;".";"");",00";"") I’m…
excelasked adventistapr 5,498 -
0
votes1
answer41
viewsQ: Cut out a whole number, any way to do it?
I need to cut an integer value to be able to use in my application, previously the field was a string in my database and now is as integer, is there any way to do this? I was doing so until then,…
phpasked adventistapr 5,498 -
1
votes1
answer259
viewsQ: How to create a product relationship with php and Mysql
Some time ago I made an attempt to relate products, but it did not become functional and I believe it was also not the most correct form, I confess, the same is bad, what I did was basically this: I…
-
1
votes1
answer110
viewsQ: Error using Sanitize function
I have a problem using this function Sanitize, I have already done the checks and I could not find where the error is, I am passing these values to the function: $data1 =…
phpasked adventistapr 5,498 -
0
votes1
answer59
viewsA: I can’t show html in the middle of php
I managed to resolve this situation, by carelessness I had not realized that there was another form on my page, thus causing conflict and not allowing the correct rendering of the page. Problem…
-
-2
votes1
answer59
viewsQ: I can’t show html in the middle of php
I’m trying to insert a cart that’s in html on a page php, the code inserted outside the php shows the cart normally. The library with the css is correctly invoked because it mounts the cart when…
-
2
votes1
answer1034
viewsQ: How to pass parameter to modal, query Mysql and return in html
I’m trying to pass a variable to a modal, perform a query to give a feedback on html, because the data will be formatted in a table. I tried some suggestions as alternatives, but I’m having…
-
6
votes2
answers1510
viewsQ: How to view the last 30 days of a query
I’m trying some alternatives to show only the records of the last 30 days, but I couldn’t make it work, the query I have is like this: SELECT comunidade.descricao AS nomeunidade ,comcargo.descricao…
-
10
votes4
answers1951
viewsQ: Upload with Ajax and formData does not send data
I have a problem and I can not solve, I’m trying to upload via ajax and php, I already got some tips here by SO, But I’m still in trouble, and I know the big chance that I’m doing something stupid…
-
3
votes1
answer99
viewsQ: How to add input dynamically after second table header
I have a problem, I would like to insert inputs dynamically in a table with more than one header, in my script by clicking on the image of + lines are being added after the first header but not in…
-
0
votes3
answers2853
viewsQ: Pass variable value inside text with echo
I’m trying to add a value to a variable within a text with echo and I’m not getting it, the value is available because I can access it. What I have is this, I couldn’t insert the code properly, so…
-
0
votes1
answer4167
viewsQ: Call function by Onclick passing parameters
I am trying to call a function by clicking on a link, where a parameter is passed that will be used in an Ajax request. This request will return results that will be added to a div. The link code…
jqueryasked adventistapr 5,498 -
4
votes1
answer259
viewsQ: How to upload with Ajax
I’m trying to adapt an upload I’ve been using Ajax, but I’m not getting it, so I read I need to use the formData, I tried some alternatives, but all of them didn’t solve, my form has several fields…
-
3
votes2
answers3430
viewsQ: Check if input file is filled
I am having a difficulty that I am not able to solve, even if it is a simple situation. I am trying to validate a field input file, the field needs to be filled in, which I have: Form: <form…
phpasked adventistapr 5,498 -
0
votes0
answers134
viewsQ: Update with generic CRUD
I’m using a generic CRUD developed by William F. Milk and suits me very well, but I’m having a hard time making a change, I’ve tried some possibilities but without success, what I have is this: //…
-
1
votes1
answer227
viewsQ: Leave input wrapped with dashes when using Jquery Validate
I am using the plugin Jquey Validation and I am trying to leave the error mark in the input as in the image I am passing attached, I tried some alternatives and the result was not as expected, what…
-
2
votes1
answer3488
viewsQ: When closing modal, clear search result done in the bank
I need to close and limparthe content of a modal. When opening it I have a search field where I perform a search in my bd, and by clicking the button enviar I close it by passing some parameters.…
-
0
votes1
answer691
viewsA: When closing modal return to the source form passing parameters
The solution to my problem was this: I passed the parameters obtained in the search for the call of a function, it was like this: <button type="button" class="btn btn-primary btn-mini"…
-
0
votes1
answer691
viewsQ: When closing modal return to the source form passing parameters
I’m making a query in my comic in a janela modal, now after the query made, need by clicking a send button the selected parameters to the calling page and play these parameters in some inputs, had…
-
1
votes2
answers2704
viewsQ: Bootstrap 3 - Input spacing
I’m building a form that in some moments will have 3 columns and more than 4 lines but I am not able to do that when starting the new line the spacing between inputs is respected, see in the block…
-
1
votes1
answer56
viewsQ: Position search response on inputs
I’m doing a search on my BD and trying to position the results in some inputs, I can perform the search and get the data I need, but by positioning the result in my inputs they are getting tripled…
-
1
votes1
answer291
viewsQ: Solve Toogles bootstrap and Checkbox conflict
I have a problem I couldn’t solve, I have a toggle done in bootstrapthat is in conflict with a checkbox on my page, I have a checkbox that by clicking to mark/uncheck the toggle is triggered. The…
jqueryasked adventistapr 5,498 -
4
votes1
answer89
viewsQ: How can I get the BD date already formatted using the Max and Date_format functions together
I’m trying to get the biggest date registered in my BD, I am trying to use the functions MAX and DATE_FORMAT together and the search result is not what expected, I have these dates registered:…
-
1
votes1
answer779
viewsQ: Use bootstrap Alert 3
I’m trying to use bootstrap Alert in a project, but I’m having trouble doing it, what I have at the moment is this: if (sNome == "" || sTel == "" || sCEP == "" ){ $("p.erro").html("Todos os campos…
-
1
votes1
answer58
viewsQ: How to limit display of records according to parameters
I have a problem and the solution I am trying to apply does not seem to me to be the most suitable, I need to show some results of certain products limiting this display, I have the following sql…
-
2
votes1
answer97
viewsQ: Problem with function when trying to perform deletion
I’m having a problem making the deletion attempt and I get an error message on the console, my script is like this: <form action="" id="frmDeleta" class="smart-form"> <button type="submit"…
-
0
votes1
answer111
viewsQ: How to create Array with BD content
I’m trying to create an array with the contents of a tabela of my banco but somehow, I tried to do this: // ATRIBUI UMA CONEXÃO PDO $pdo = Conexao::getInstance(); // ATRIBUI UMA INSTÂNCIA DA CLASSE…
-
1
votes1
answer2115
viewsQ: List duplicate names in Mysql for change
I need to list all the duplicate names in a certain table and I’m not getting it, what I have so far is this: SELECT nome, foto, ativo, count(nome) FROM comColaborador GROUP BY nome HAVING count(…
mysqlasked adventistapr 5,498 -
1
votes1
answer186
viewsQ: Clear form fields when unchecking check
I have a form with a check that the marked shows a div with an input with the name of BancoFinanc, the user can fill in this input normally, but would like when unchecking the input, if filled in by…
jqueryasked adventistapr 5,498 -
1
votes1
answer75
viewsQ: How to check form fields correctly
I own a formand in it I have two checks, they are defined by these names: $checkFin and $checkDep, if any of these checks are checked, the fields corresponding to them must be filled in. I did the…
phpasked adventistapr 5,498 -
0
votes1
answer378
viewsQ: How can I assign a php variable value to an input with Jquery
I’m trying to play a value redeemed by php and play in a input with JQuery and then perform a Ubmit on a certain form, what I tried to do is this here: if (!empty($_POST['Termo'])) { $Termo =…
-
1
votes3
answers5484
viewsQ: Redirect page by passing "Answer" from ajax to a div
I know this is a strange question, and it may seem pointless, but I need an answer, even if it’s for impossível. I do a search in my indexand need to pass the result in the same to another page…
-
4
votes3
answers881
viewsQ: Receive variable in php and call Ajax function by passing this variable
I will explain this my post better, I think I have not been clear on the issue. Today, I have a page where I search for a certain term and the result is presented to me then a search AJAX Live…
-
3
votes0
answers28
viewsQ: Anti SQL Injection on dates
I have a problem and do not know how to solve, I use this function to validate the receipt of some variables: if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue,…
phpasked adventistapr 5,498 -
5
votes5
answers12368
viewsQ: Centralizing menu options in bootstrap 3
I’m trying to leave options a centralized menu created in bootstrap 3, I’ve tried some alternatives, but none solved my problem, I have this snippet of code: <div class="navbar navbar-default…
-
1
votes0
answers30
viewsQ: Reload failing in a few moments
I made a script to set an image as cover, the script works perfectly and I programmed the same to perform a Reload on the return, but strangely this Reload fails in a few moments, for no apparent…
queryasked adventistapr 5,498 -
0
votes2
answers608
viewsQ: Align images and text within div
I need to align some elements on a page and I’m not getting, I’ve done some tests how to use the text-align:center in class pull-right as well as in the header-features according to examples I read,…
-
1
votes1
answer148
viewsQ: How to scroll position div by an image
I’m using a script that when triggered positions me in a div specific, is working, but the code I have does it from a link text and I am trying to adapt it to an image and that it is positioned…
-
6
votes3
answers1172
viewsQ: How to make change in order sequence with SQL statement
I have a form where I display to the user some phases that a particular contract needs to respect, follows image of the said form: I’ve already done the update that makes the order change and is…
-
1
votes1
answer2857
viewsA: How to add column in Mysql using SUM leaving column available for display
For some reason I don’t know and because it’s a legacy code, the table afericaoAgricola has the fields deterValMedia, resultadoDestilacao and diferenca defined as DataType VARCHAR(45), I hadn’t…
mysqlanswered adventistapr 5,498