Posts by feresjorge • 445 points
19 posts
-
0
votes1
answer343
viewsA: How to catch an element via jquery in an object created in the bootbox.js plugin?
The problem is because when the Jquery event handler is evaluated the element you reference does not yet exist (since it is created dynamically). Then you need to inform the event handler that it…
jqueryanswered feresjorge 445 -
1
votes2
answers427
viewsA: Using $tempo = date("d/m/Y H:i:s",time()-86400); to delete past schedules
To subtract 30 minutes from your initial PHP time instead of $tempo = date("d/m/Y H:i:s",time()-1800); you can do: $tempoInicial = date("d/m/Y H:i:s",time()); $menosTrintaMinutos = date("Y-m-d…
-
1
votes3
answers833
viewsA: Select works on the localhost but does not work on the server
You must heed the following: Checked if user, password, server and port are correct? The table is exactly the same as the development environment? There are records in the remote bank table? SQL…
-
1
votes4
answers447
viewsA: How to change the link in the mobile version?
Use the Detect Mobile Browsers, it works well and has versions in various languages including pure JS. So just make a if to determine whether the user is using a mobile browser or not.…
-
3
votes2
answers6278
viewsA: How to make a form that accepts photo upload and save to database
Use the type BLOB for the column foto which will receive the contents of input type="file". Your PHP code for insertion into the database would look something like this: <?php include_once…
-
0
votes1
answer1298
viewsA: IIS URL redirection
There are many ways to redirect to another page, regardless of whether they are in the same domain. 1) If your domain points to an HTML page, for example, you can include the meta tag below within…
-
2
votes1
answer586
viewsA: commit/rollback in two tables with PDO
Problem solved! My mistake was trying to do stmt->commit() or stmt->rollBack(), where I was actually supposed to have done this in connection. I assigned the connection to a variable $conn and…
-
1
votes1
answer1301
viewsA: How to center the two inscribed squares into the largest square with CSS?
Just set the property margin in the CSS of the internal squares. Using percentage it is possible to calculate the distance you want to give at each end. In the case of margin: 10% auto;, I’m saying…
-
1
votes1
answer586
viewsQ: commit/rollback in two tables with PDO
First of all, the code below works, there is no error (but possibly can be improved). I have the following method in PHP: <?php public function ajustarUnidadeServidor($ajusteExercicio){ try {…
-
0
votes2
answers82
viewsA: I am unable to call user information
I think the problem is in attributing the values to the SELECT. I usually use the bindValue to set values to the SQL string. Try this: <?php class User { public static $Row = []; public static…
-
1
votes2
answers48
viewsA: How not to let a Domain appear on Google and other search engines
You must configure the command disallow in the archive robots txt. of your website. http://www.seomarketing.com.br/robots.txt.php…
-
0
votes1
answer175
viewsA: How to get Hover in Sectioning?
Check the classes of divs of each content are correct, it seems to me that the last two divs are different from the others. <div class="content-section" id="services"> ... <div…
-
0
votes2
answers253
viewsA: Display different objects with equal groups
Try this <?php include("connect.php"); $consulta = "SELECT * FROM Grupos"; $con = $mysqli->query($consulta) or die($mysqli->error); foreach($con->fetch_array() as $linha) { $grupo[] =…
-
1
votes3
answers3569
viewsA: How to find relationship and cardinality in Mysql?
You can find the cardinality in Mysql using the command SHOW INDEX. Example of use: SHOW INDEX FROM tabela FROM banco; https://dev.mysql.com/doc/refman/5.1/en/show-index.html…
-
3
votes1
answer65
viewsQ: Mark checkbox 'brother' with jQuery
I have two checkbox different in the same table column, but both have different names and values. <td align="center"> <input type="checkbox" id="chkSiapeServidor"…
jqueryasked feresjorge 445 -
0
votes2
answers958
viewsA: Load a page from an html string
You only need to open a web page from a link in your application? If that’s it, try: System.Diagnostics.Process.Start("http://seu_site_aqui"); To open in new tab, you can use the attribute…
-
3
votes2
answers129
viewsA: How to do operations between functions in C?
You have two functions, funcA() and funcB() independent, everything that occurs within them ceases to exist when they are finished running. You can do two things: 1) Make them return something using…
-
3
votes2
answers66
viewsA: Place a value inside the jquery val
Remember that to concatenate strings with js the '+' character is used. Then your original code would be: $("#rastreo").val('BR'+<?php echo date("hYmdi"); ?>+json[0].estado); An alternative…
-
2
votes2
answers276
viewsQ: Prevent form Ubmit, but allow other actions by typing enter in an input
I have a input text within a form, however I do not want the form is keyed ENTER. The code below works, but if I decode the alert the form is submitted even having the two lines below. Can anyone…