Posts by marcollahc • 86 points
11 posts
-
1
votes2
answers326
viewsA: Start function and run function again by clicking the button
$(document).ready(function() { initMapplic(""); }); function initMapplic (title) { alert(title); var mapplic = $('#mapplic').mapplic({ source: 'assets/plugins/mapplic2/server.php?title='+title, //…
-
0
votes1
answer133
viewsA: Login with Activedirectory
Try using your connection url like this: $ldap_server = "ldap://192.168.2.1/server name"; Or, put the port number after the ip: 192.168.2.1:door Reference:…
-
0
votes2
answers449
viewsA: php cadastre with angular js
public function create($cli_nome, $cli_telefone, $cli_email, $cli_descricao) { /* Restante do código */ } $cli_nome = $_POST["cli_nome"]; $cli_telefone = $_POST["cli_telefone"]; $cli_email =…
-
2
votes2
answers695
viewsA: Validate string in number with php
Try using a native PHP test function <?php $var1 = "0"; if (is_int($var1)) { echo "OK"; } ?>…
phpanswered marcollahc 86 -
0
votes2
answers341
viewsA: Dynamic like button
Do you save this favorite action in the database? If yes, just use Ajax on the page to check if the user has favorited the user id related item with the post id.
-
1
votes1
answer93
viewsA: Slider jquery and variable php
$("#slider").slider({ change: function(event, ui) { $("#result").html(ui.value); $.ajax({ url: "teste.php", type: "POST", data: { valueChoice: ui.value }, success: function(result) {…
-
0
votes1
answer37
viewsA: Error entering data into BD using mysqli
I just found it strange one thing, you use in the first INSERT the variable $n_process, however in the second INSERT you concatenate $n_process with another character, is that this is not what is…
-
1
votes1
answer50
viewsA: How to export a specific table from one html to another html via php?
Do you have this information stored in the database? Wouldn’t it be easier to save it in the database and mount the HTML later? If this is not possible, save this HTML document in some folder and…
-
0
votes1
answer42
viewsA: Traverse elements and perform same function for each of them
Try to do something like this: var owl = $("#galeria1, #galeria2, galeia3"); $("#galeria1 .proximo").click(function(){ owl.trigger('owl.next'); }); $("#galeria1 .anterior").click(function(){…
-
2
votes2
answers77
viewsA: mai() php function not working under conditions
Depending on your hosting server (The Locaweb for example), authentication is required to perform email sending. If authentication is required, use Phpmailer to upload, the configuration is simpler…
-
-1
votes2
answers57
viewsA: Using Innerjoin with Limit
And if you use a LEFT JOIN or RIGHT JOIN? Something like this: SELECT t1.coluna1, t2.coluna1 FROM Tabela1 AS t1 LEFT JOIN table2 AS t2 ON t1.coluna1 = t2.coluna1 LIMIT 50