Posts by forumcodigosnaweb • 193 points
14 posts
-
2
votes2
answers8580
viewsA: How to move files with PHP copy?
The PHP copy function requires the file name, both in source and destination. I don’t know if what you want is to fix the file name in the code. <?php $pastaO = "pasta1/"; // pasta de origem…
phpanswered forumcodigosnaweb 193 -
1
votes1
answer395
viewsA: preg_replace - url and line break
Try the following: <?php function filterEmail($texto) { $texto = preg_replace('/\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', '', $texto); $texto =…
phpanswered forumcodigosnaweb 193 -
2
votes1
answer616
viewsA: Laravel 5 mail format html with css
Take a look at the lavarel documentation https://laravel.com/docs/5.1/mail Says the following: Mailing Plain Text By default, the view Given to the send method is assumed to contain HTML. However,…
-
0
votes1
answer133
viewsA: Change link tooltip class
With jQuery you can <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script> $(function() { $(".evento").addClass("evento color-red"); });…
-
0
votes3
answers236
viewsA: Receive json mysql data
Try it this way $jsonObj = json_decode($nam); foreach ( $jsonObj as $e ) { echo "nome: $e->nome - telefone: $e->telefone1<br />"; }
-
2
votes1
answer379
viewsA: Content loaded in a DIV with automatic scrolling bar
You can do it like this: $("#chat").load("chat.php"); $("#chat").animate({ scrollTop: $("#div").height() }, 1000); Source…
-
2
votes1
answer277
viewsA: Change css of templates
On the "contact" page I saw the class responsible for the light color is this #wrapper #main { font-family: 'PT Sans Narrow', sans-serif; background-color: #f8f7f0; } Just change the #f8f7f0 for the…
-
1
votes2
answers264
viewsA: How to concatenate columns from different tables?
From what I understand you want to take the result of the first query to display on Monday, correct? I will assume that the query to quant_img will return a result. $query = mysql_query("SELECT *…
-
1
votes2
answers513
viewsA: Javascript does not pick up pages added later
You can use $.getScript to load the external js. See this example I tested here locally. What is done is this: $.get is used to pull the test.html file, and $.getScript to pull the js corresponding…
-
0
votes1
answer61
viewsA: take input ID values
If it is only based on PHP you can make a explode to separate my aid_ <?php $v = "minhaid_43231234"; echo explode("minhaid_", $v)[1]; ?>
-
1
votes2
answers664
viewsA: How to get the title of an image by Javascript?
You can also do inline <div id="div"></div> <img src="" id="imagem" onclick="document.getElementById('div').innerHTML=this.title" title="título" /> And if you have many Ivs you can…
javascriptanswered forumcodigosnaweb 193 -
0
votes1
answer1131
viewsA: Pass data through the link - php application
First you should pass the id through the link: echo "<tr> <td><a href='dados.php?id=".$id_usuario."'>$id_usuario</a></td> <td>$name</td>…
-
2
votes1
answer455
viewsA: Remaining time system
Barter: $diff = time() - $time; For $diff = $time - time();
-
0
votes1
answer179
viewsA: How do I add id values from a total array
It’s kind of hard to understand. But from what I understand you want to add $temp + $total. echo ($temp+$total);