Posts by Ricardo Gonçalves • 151 points
23 posts
-
0
votes2
answers240
viewsQ: Distorted frame in CSS for video overhead
How would I create a stylized frame in css? I want to put a youtube video on my site, but in the background I would like to make a stylized frame as I tried to draw in the image below, with some…
-
-1
votes1
answer123
viewsQ: Foreach PHP problems to read Json
I am trying to get the values of the items (code and price) as follows in Json below: { "statusCode": 200, "message": "Ok", "description": "Requisição realizada com sucesso", "data": [ {…
-
3
votes1
answer562
viewsQ: Change json Value with PHP
I have a json file where I am listing the information that interests me with PHP. I’m using Lottie.js to run this. json as a gif/video, my idea is to change the messages in English to Portuguese,…
-
-1
votes2
answers383
viewsQ: Hide div for mobile version with css
I was researching here the solutions, but it did not work in my code, I leave here it: CSS: @media screen and (max-width:768px) { #img{ display: none !important; } } #img{ background-color: none; }…
cssasked Ricardo Gonçalves 151 -
0
votes0
answers150
viewsQ: Monitor a user’s time on the PHP page
How could I register the user’s output in the database? I have this PHP code that picks up the input, I’ve been reading that could be done with JS, but I don’t have as much knowledge. <?php…
-
1
votes1
answer149
viewsQ: Decrease the distance between bootstrap pads
I would like to reduce the distance between the 2 links in the menu, I will leave an image and my code <div class="container-fluid"> <header class="row"> </header> <div…
-
0
votes1
answer61
viewsQ: Monitor user time on site
i can monitor how long a user is logged in on a specific page? Saving in the database the time he has been. The leadership here wants to know if the leaders are using a reporting service provided by…
-
0
votes1
answer296
viewsQ: Foreach inside foreach with PHP
I searched here on the site and did not find something that could help me in my case, I have a foreach where I take the data from the Deezer API and have another that takes the data from the YOUTUBE…
-
0
votes1
answer35
viewsA: STR_REPLACE with Array
I’ll leave the solution here, you can help someone. $i = 0; foreach ($jsonArr['data'] as $row) { $nome[] = $row['artist']['name']; //artista $titulo[] = $row['title'];//nome da música $musica[] =…
phpanswered Ricardo Gonçalves 151 -
0
votes1
answer35
viewsQ: STR_REPLACE with Array
How do I exchange the space for %20 with values that come from an Array? I got this far by following examples, but it keeps going wrong: foreach ($jsonArr['data'] as $row) { $nome[] =…
phpasked Ricardo Gonçalves 151 -
0
votes2
answers1123
viewsQ: Animated Background in CSS
I’ve been researching in CSS how to put an animated background. In codepen what I thought didn’t work, I’d like to do something like this : https://codepen.io/vaibhavarora/pen/xmpxjp or this:…
-
0
votes1
answer83
viewsA: Deezer API - Taking Json and PHP values
I got it, actually, the access is direct. foreach ($jsonArr['data'] as $row) { $album[] = $row['preview'];//['cover_xl']; }
-
1
votes1
answer83
viewsQ: Deezer API - Taking Json and PHP values
I’m trying to get some information from the API, I was able to filter some things, but for example, I’m trying to get to the 'preview' link to play 30 seconds of music and I can’t get to it, I’ve…
-
0
votes2
answers62
viewsA: Input value being displayed in HTML
Have you tried that? $htmlPDF = $html; $html .= " <form action='pdf.php' method='post'> <input style = 'display: none' name='htmlPDF' value='" . $htmlPDF . ".</div>' /> <input…
phpanswered Ricardo Gonçalves 151 -
0
votes1
answer38
viewsA: Error, php does not insert data into database
If you try to do so: // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; //Pegando dados via post $nomePergunta…
databaseanswered Ricardo Gonçalves 151 -
1
votes1
answer296
viewsQ: Error downloading images from a CURL site via PHP
I have a pack of images in a folder that works like this: nome-do-produto-m.jpg, for average size. Now I want to download the big size. I made a code to read images from the local directory, change…
phpasked Ricardo Gonçalves 151 -
0
votes2
answers347
viewsQ: Dynamic redirection with PHP Switch Case
I’m getting beaten up and I don’t know why, because this is the first time I’ve tried to do something like this, I have a menu like this: <div id="collapseUtilities" class="collapse"…
-
1
votes1
answer3205
viewsQ: Fixed side menu on the left with Contents on the right
I’m trying to do the following, a fixed menu on the left side with 100% height, the problem is that when I press F12 to simulate an ipad for example, the content goes under the side bar, how can I…
-
0
votes1
answer133
viewsA: Taking data from a PHP DOM site
I arrived in a result, I will leave here, can help more people. <?php // Create DOM from URL or file include 'simple_html_dom.php'; include 'conexao.php'; echo $mercado = 'Mercado que busquei os…
-
0
votes1
answer129
viewsQ: Google News API - Using Curl with PHP
I’m trying to use the API of Google News, can’t list the news I want from a certain category, I would like to do with PHP so that you can list and store them in the database. I took an example from…
-
1
votes1
answer133
viewsQ: Taking data from a PHP DOM site
Hello, I’m trying to get data from a website to an internal system I’m creating through PHP I’m using the DOM for this. I was able to find all the information in his html, but I’m not able to…
-
0
votes1
answer294
viewsQ: Error inserting BLOB type into Oracle Bank
I’m having a problem inserting a javascript signature into the database. You’re making me wrong again: oci_execute(): ORA-01704: too long string literal I don’t know what it might be, I’ve been…
-
-2
votes1
answer28
viewsQ: How to send email with PHP with IF in the middle of the message?
I have a code that sends e-mail through php In the middle of it I need to make the condition if, but I’m having syntax error, I’ll leave my code below $message .= "<br>"; $message .= "<p…
phpasked Ricardo Gonçalves 151