Posts by Jonathan Matheus • 383 points
9 posts
-
0
votes0
answers23
viewsQ: I cannot change the root password in mysql from the error when using the command
The moment I give the command update user set authentication_string=password('root') where user = 'root'; to exchange the root password the following error appears in mysql: ERROR 1064 (42000): You…
mysqlasked Jonathan Matheus 383 -
5
votes1
answer82
viewsQ: What’s the difference between using and not using keys in string interpolation in PHP?
What’s the difference between? $fruta = 'tomate'; echo "{$fruta} é fruta<br>"; echo "$fruta é fruta<br>"; Why some programmers use the keys ({}) if the result without them is the same?…
phpasked Jonathan Matheus 383 -
10
votes2
answers5589
viewsQ: Why should we use PHP_EOL?
I’ve been informed that PHP_EOL sets the end of the line, ok. But why should I write. echo 'a'.'<br>'.PHP_EOL; echo 'b'; If the echo 'a'.'<br>'; echo 'b'; It has the same effect, what…
-
3
votes2
answers140
viewsQ: What are CSS default values for?
Almost every CSS command has its default value, which is already being used by default, even if you don’t use it, for example. justify-content: flex-start; If you don’t write anything by default the…
cssasked Jonathan Matheus 383 -
6
votes1
answer131
viewsQ: Why can the class be picked up by Javascript while loading the page and the ID not?
I was doing some tests with Javascript and I came across an interesting "phenomenon", but I could not find a good explanation to explain it. Follows the code: <!DOCTYPE html> <html>…
-
0
votes1
answer373
viewsQ: Why does my getElementById() not work!
I am trying to get a specific paragraph of my html document. <!DOCTYPE html> <html> <head> <link href="style.css" rel="stylesheet"> <script…
-
0
votes2
answers432
viewsA: How can I create an array in Javascript
You just forgot to var at first, Example.: var carros = ["Parati", "Ferrari", "BMW"] You can also use Let let carros = ["Parati", "Ferrari", "BMW"]…
-
0
votes2
answers2131
viewsA: Embed Instagram profile
You can do the following. <iframe id="frame" width="320" height="568" src="https://www.instagram.com/p/BxFc58nFwpN/embed" frameborder="0"></iframe> This way you will be creating an…
instagramanswered Jonathan Matheus 383 -
2
votes1
answer2412
viewsQ: How to open instagram using iframe?
I’m trying to open my instagram profile using an iframe, to put my insta on my site, but so far I could not, stop that instagram has a kind of lock. <iframe id="frame"…