Posts by rzani • 563 points
12 posts
-
6
votes6
answers1578
viewsA: Is it good practice to use constructors (or magic methods) in interfaces?
Interfaces should not limit but apply the capacity of the classes. Imagine that you have some geometric shapes to calculate the area. Knowing that each shape has a different way of calculating its…
-
4
votes2
answers1150
viewsA: How to make a tutorial first access to the site?
When using Bootstrap, bootstraptour is the best option like @Guerra propos, but otherwise I recommend the Hopscotch. With it you define the steps with json, it’s very simple: { id: "welcome_tour",…
-
1
votes1
answer727
viewsA: How to create cookies for popup advertisements open 1 time only 24 hours
You can use these functions to help you create, read and delete cookies function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000));…
-
3
votes1
answer94
viewsA: Make tooltip read html tag
I think this script would solve In the jQuery tooltip you can use: $(function() { var el = $("input:file"); var msg = el.attr('title'); el.tooltip({ content : msg }); }); On the Bootstrap you can…
-
11
votes1
answer4488
viewsA: What is the file with the ".css.map" extension for when I compile a Sass script?
Why use this tool: https://developer.chrome.com/devtools/docs/css-preprocessors As CSS files are generated, editing CSS files directly is not as useful. For pre-processors that support CSS source…
-
1
votes2
answers7460
viewsA: How to list table-specific data with PDO?
I think I understand what you mean That’s what you want? $tables = $dbh->prepare("SELECT * FROM `tabela` WHERE `valor1` = ? AND `valor2` = ?"); $tables->execute(array('apple', 'green'));…
-
1
votes1
answer106
viewsA: How to recover data from a page
You don’t necessarily need regex for that, you can go blowing up and getting the data. for example, you can take all the data separated by space: $dados = explode("\n",…
-
1
votes1
answer44
viewsA: Making JSON PHP
Try replacing this snippet of code: foreach ($celulas as $celula) { $cel = array(); $cel->TXT_ENDER_CEPXX = $celula->TXT_ENDER_CEPXX; $cel->SGL_ENDER_ESTAD = $celula->SGL_ENDER_ESTAD;…
-
0
votes2
answers133
viewsA: Sending form without PHP
Guy if you create a form and send to "mailto:" Take the example of W3schools http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail Remembering that there are no guarantees if it will…
-
4
votes1
answer1325
viewsA: Save array to a php variable
Change that code line of yours: while($resultado3 = mysql_fetch_array($sql_lista3)){ $campanha = array($resultado3['em_nomefantasia']); }; For this: while($resultado3 =…
-
4
votes3
answers3680
viewsA: How do I eliminate the top space my DIV leaves?
You can use the following css: * { margin: 0; padding: 0;}
-
2
votes4
answers989
viewsA: Return data from a URL with Query String
Try using file_get_contents() with HTTP Context Options $getdata = http_build_query( [ 'nome' => 'abc', 'cpf' => 'abc' ] ); $opts = array('https' => array( 'method' => 'GET', 'header'…