Posts by Gabriella Selbach • 436 points
21 posts
-
1
votes0
answers323
viewsQ: Create Chrome Extension with PHP script
Hey guys I made an extension for Chrome only with a basic html and it worked super good. The problem is when I changed the main file from . html to . php in order to put my logic that I need php.…
-
0
votes0
answers167
viewsQ: Navbar Bootstrap opening wrong link on points of the site
On my site I have a menu that I add with header.php in certain parts of the site, home and its symbolic links. the problem is when you go from the horizontal menu to that button that opens…
-
0
votes2
answers976
viewsQ: How to get javascript/jquery ajax array values
I am making an ajax request and returning the data by php with json_encode server side: $id=1; if(isset($_POST['id'])){ $id = $_POST['id']; }else{ http_response_code(400); } $produto =…
-
0
votes1
answer43
viewsQ: Different layout in anonymous window and other browsers
I am developing a simple site with html,css, in case it is necessary I put the code later. but the point would be I’m using grids with Row and col of bootstrap, when I open from normal Chrome the…
-
0
votes0
answers42
viewsQ: Phpmailer, read email in php
Good afternoon ! I did a search on the internet and I didn’t think much about, I don’t know if with phpmailer or any other tool that is better, I would have some way of monitoring the emails I…
-
0
votes2
answers77
viewsA: How to pass a value from a button (dynamically created within a td) to an ajax function and query the database with that value?
If that is the input you want, it may be another just adapatar, the question is to take the moment it is clicked <td><button id="vendidoV" type="button" class="btn" style="background-color:…
-
7
votes4
answers4763
viewsQ: Delete multiple rows from a database
I’d like to delete several figures. For example this would be to delete a line delete from paginasimagens where idPaginasImagens=121; my values are sequentially so a method that is between elements…
-
1
votes1
answer168
viewsA: How to take the events of a drag and move to php variables
In a project I do exactly what you want I’ll show: $(".draggable").each( function(elem) { $(this).draggable({ appendTo:'body', scroll:true, containment: 'window', revert: "invalid", helper: "clone",…
-
2
votes1
answer93
viewsA: Uncheck Checkbox
Below that line $('.tbtransfer tbody').append($(this).parents('tr')); place this.checked = false; /* Adiciona linhas */ $(document).ready(function() { $('.mudar-linha').click(function() { $('table…
-
0
votes1
answer106
viewsA: Bring data in Select with PHP
you would have already taken the patient’s data, you would have the doctor’s code that treats that pagient, then just see to go through: first selects all doctors and makes an if that is the doctor…
-
4
votes1
answer63
viewsA: Content that loads other pages without updating the masterpage
With ajax you do just that, you can fire a function with jquery by clicking on a given menu element, you can read about ajax in: http://api.jquery.com/jquery.ajax/ but let us illustrate: your menu…
-
1
votes1
answer31
viewsA: I can’t enter data into the database
$sql = "INSERT INTO login.dados (nome, sobrenome, bday, gender) VALUES ('$nome', '$sobrenome', '$nascimento', '$genero')";
-
0
votes3
answers69
viewsA: Mysql - Query using Between to know if item is reserved on date/time
SELECT * FROM intranet_reuniao WHERE resId = 5 AND '2019-02-26 14:30:00' > reuDataInicio AND reuDataTermino > '2019-02-26 14:30:00'; I didn’t get to test if the value before the > would…
mysqlanswered Gabriella Selbach 436 -
0
votes1
answer269
viewsA: Flash Data. $_SESSION in PHP
to monitor the next request itself I don’t know for sure, but let’s say that you created your session and at some point that can control in the code, for example something goes by get you can do it:…
-
0
votes3
answers748
viewsA: URI 1021 gives 5% error
Often only a space can cause error and not be accepted, I believe you are with extra space. This is my C problem code: #include <stdio.h> #include <math.h> int main() { double Valor; int…
-
0
votes2
answers79
viewsA: Array php not displaying key with same value
The problem is in this part: if( $value == $chooseNumber ) { $newHours[$value] = $number; } because the moment you make the newHours array and put it in $value, if you have two with the same value…
-
1
votes3
answers337
viewsA: Error calling function that returns string in C
In the function you say that the return is a char, but it should be a char pointer as it returns a string As it should be. char * retornaNome(char nome[], char sobrenome[]){ }…
-
2
votes2
answers836
viewsA: Return data from a Json where there is a specific key in a PHP variable
if you have this data before the json, or using json Code it will come an array, this way you can make a foreach, and compare with the content until you find the code you want. the moment you find…
-
1
votes1
answer611
viewsA: PHP Notice: Trying to get Property of non-object in
Hello, try to do separate that line $title = $tnl->firstChild->textContent; $title = $tln->firstChild and check that this is not null is always a good option if($title!=NULL){ $title =…
phpanswered Gabriella Selbach 436 -
1
votes1
answer33
viewsA: Is there a script that sends email with automatic attachments?
is from the Addattachment function that you attach things to the email in phpmaile. da uma olhada https://github.com/PHPMailer/PHPMailer/wiki/Tutorial…
phpanswered Gabriella Selbach 436 -
1
votes1
answer139
viewsA: Identify/Authenticate client on websocket
I have to venture into sockets with php, only worked with java. But I believe that the moment the socket is accessed you can create a thread for each client, you can even have an array with all…