Posts by Raphael Caldas • 922 points
24 posts
-
0
votes1
answer50
viewsA: Array and Glob Doubts
I got <?php $convertidos = array(); foreach (glob("C:/Users/raphael/Downloads/Videos/Lives Baixadas/Converter/*/*.mp4") as $filee) { $file1 = str_replace('.mp4','',$filee); $file2 = explode("/",…
-
0
votes1
answer50
viewsQ: Array and Glob Doubts
I’m wanting to pick up 2 foreach entries and file one based on another, for example. in one foreach I have the value "stackoverflow" and in the other I also have the same, and then one cancels the…
-
4
votes1
answer982
viewsQ: Float Right is superimposing div and invading div from below
Hey guys, I’m here one more time asking for help, I tried everything, I even used overflow:hidden, but it got much worse, so I need help, I have The code of the div: width: 100%; display: block;…
-
7
votes2
answers455
viewsQ: Font Responsiva
I’m making a theme for wordpress and put the font with the size of 5em what’s around 80px, but when I test on my cell phone with 320px wide, the font gets broken and ugly, I wanted something that…
-
5
votes1
answer430
viewsA: By clicking (entering) on a page move the scroll bar automatically to a specific element without clicking anything
Very simple, here it comes: $(document).ready(function () { //Função para que o script comece quando a página carregar $('html, body').animate({ scrollTop: $('DIV PARA QUAL A PÁGINA…
jqueryanswered Raphael Caldas 922 -
0
votes1
answer556
viewsA: All Apache requests pointing to the same directory
Hi buddy I went to take a look at my own vhost here and caught it to show you, below already adapted: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName wwww.meuprojeto.com…
-
0
votes1
answer98
viewsA: Wordpress how can I create multiple loops in the index?
It is simple, for this Wordpress has the array filter while( have_posts( ) ) I’m going to go through here as the code should be, I commented on it to show you: <?php $args = array('showposts'…
-
2
votes1
answer40
viewsA: Loop Wordpress coming out uneven!
is not disappearing any post, what is happening is that you are using a grid poorly done, any li there is at least 1px larger than the rest, making so the li below keep hitting her, one way to solve…
-
1
votes3
answers2095
viewsA: Extremely slow site loading in Wordpres
Hello, your site is hosted on a weak host, acrédite, I used it, and know how it is, it has a very big response delay, but not only that, it lacks: GZip, Cache, Compactação Js, Compactação de CSS,…
wordpressanswered Raphael Caldas 922 -
6
votes1
answer432
viewsQ: Doubt About Cache
I’m doing my site, and I want to try to reach 100/100 in Pagespeed Insights, I’ve activated my cache by. htacces, but the P.S.I says it’s still inactive, so I went to see the headers, and back that…
-
2
votes1
answer394
viewsQ: Problem in UTF-8 characters
I have an error on my site, in the matter of UTF-8 If I use á it goes to link as %E3%83%E2%A1 and printa in input as %e3%83%e2%a1 in hosting. But on localhost it goes as ã¡ and comes back as…
-
1
votes2
answers109
viewsA: What’s wrong with my array in php?
Buddy I tested here on my website. I’ve come to the conclusion that you should use ['CAMPO']. Then it would be: json_encode($result['email']) Unfortunately I don’t know how to tell you why it should…
-
5
votes1
answer118
viewsA: Mysql event to delete lines with expired date
CREATE EVENT IF NOT EXISTS `dbName`.`eventName` ON SCHEDULE EVERY 1 DAY // or 1 HOUR COMMENT 'Description' DO BEGIN DELETE FROM `dbName`.`TableName` WHERE `DateCol` < NOW(); END Buddy adapt this…
mysqlanswered Raphael Caldas 922 -
1
votes1
answer205
viewsA: Microsoft Edge starts opacity and Transition with bug
Common error when working with Edge, he loaded the . sheep World because he is free and without opacity, and he does not care for the former, the way of tidying up is so: .circCategoria .overlay…
-
2
votes1
answer355
viewsA: Pdostatement::bindParam() mix data
That one bindParam is wrong, the right would be to use the bindValue: $this->bindValue(':campo',$string,PDO::PARAM_STR); Explaining the difference between the bindParam and the bindValue(tip from…
-
0
votes1
answer525
viewsA: Friendly URL Code Igniter does not work
o . htacces should be in the folder where the site is, if you only have 1 site in your hosting use in the public_html or www folder Try to leave it like that: RewriteEngine On RewriteBase /…
-
3
votes1
answer657
viewsA: Create Postgres "Numeric" Field in Laravel 5.1
Already solved in chat, but who comes from outside here is the way: $table->decimal('FIELD', 5, 2);
-
1
votes1
answer488
viewsA: Custom Fields: Not appearing on the site page!
Buddy use this Function, put it in any luga in functions.php function pegar_campo( $field_name, $post_id = false ) { $value = get_post_meta($post_id, $field_name); if( is_array($value) ) { $value =…
wordpressanswered Raphael Caldas 922 -
2
votes1
answer1057
viewsA: Delete Directory Image - Laravel 5.1
// Deletar um arquivo File::delete($filename); // Deletar vários arquivos File::delete($file1, $file2, $file3); // Deletar um array de arquivos $files = array($file1, $file2); File::delete($files);…
-
2
votes2
answers1221
viewsA: Disable mouse scroll
A very easy way to do, without needing many lines and very simple: use: onwheel="return false;" Jsfiddle: https://jsfiddle.net/rapa09/jtxf10qm/1/…
-
5
votes2
answers5894
viewsA: How to display the status on a geochart?
Buddy, here it is, the way you want it, it uses that when it clicks it changes from State to City and puts in Markers. Take a look at what I’ve done here, you’ll get it. I did based on his, Good…
google-chartsanswered Raphael Caldas 922 -
-1
votes3
answers1437
viewsA: Find higher sum value and show id
SELECT num_projeto, (SELECT DISTINCT SUM(HOURS)) AS HORAS_TOTAIS FROM EMPREGADO_PROJETO GROUP BY num_project ORDER BY HORAS_TOTAIS DESC…
-
0
votes1
answer1610
viewsA: Database for E-commerce site
You can make a table with product codes that refer to a specific id and then in the cart you pull these ids and put there, and in the invoice you pull the invoice code only. NOTE: Be careful when…
-
2
votes3
answers965
viewsA: How to put a title in the angular-Chart caption
Use scaleFontSize: false and scaleLabel: "<%= ' ' + value%>" in the $scope.options. Jsfiddle: http://jsfiddle.net/rapa09/fph4jecj/5/…