Posts by Leonardo Henrique • 127 points
21 posts
-
-1
votes1
answer267
viewsQ: Menu fixed after scroll
Good morning! How can I make the smooth effect of setting the menu by scrolling the page like this: https://overwatchleague.com/pt-br/…
-
-2
votes1
answer11
viewsQ: How to center vertically elements of a menu
Normally I put position: Absolute/relative (depending), tranformY (50%) and top: -50%, however, as I add more elements this trick starts to fail. I would like a result like the image. What other…
-
0
votes0
answers52
viewsQ: Insert with lastInsertId() error
The code below only inserts in the requested table, already in the requested product has_does not insert. What error ? public function criarPedido(){ $consulta = 'INSERT into pedido(data,…
-
0
votes1
answer191
viewsQ: Process of completing PHP purchase
I have the code below and I can "register the purchase" in the order table by entering date, total purchase value and the id of the customer who bought however how do I add the id’s of the products…
-
0
votes1
answer31
viewsQ: Problems in PHP cart
It follows the code of my cart. I wanted it not to repeat the products but add up the amount of them in the cart. I’m having a hard time with this part. <?php include 'conexao.php';…
-
0
votes1
answer103
viewsQ: Take Database info from the array element
I’m making a cart in php. What I want is to get the name of the product (which is in the database) from its id, which is the value of each position of the array. However, since there are multiple…
-
0
votes1
answer55
viewsQ: Searching elements of a PHP array
My function is this and takes a number that the user type and sees if it corresponds to a position of the matrix, if true, would display the information of the internal array, but the information is…
phpasked Leonardo Henrique 127 -
2
votes4
answers686
viewsQ: How to display the elements of an array where they are arrays?
I created an array in which each index stores another array - both global so that the values are not deleted. The problem is in displaying each element, when I try, PHP returns me "Notice: Array to…
phpasked Leonardo Henrique 127 -
0
votes1
answer97
viewsQ: Blank email with PHP
I made a short form to test the mail function, the email is being sent but arrives with the name and message fields blank. I saw other forums and they indicate other libraries but wanted to know…
-
-2
votes2
answers88
viewsQ: Substr() does not work
I cannot understand why the substr is not working. Follow the code: <?php // conexão com bd $host = "localhost"; $user = "root"; $pass = ""; $db = "loja"; $conexao = mysqli_connect($host, $user,…
-
1
votes1
answer76
viewsQ: How to compare arrays?
I’m having trouble asking this question: Make a program that receives ten ages, weights and heights and calculates and shows: The quantity of persons weighing more than 90 kg and less than 1,50 kg;…
phpasked Leonardo Henrique 127 -
0
votes2
answers739
viewsQ: Animated arrow indicating rollover
How can I make the animated arrow from the homepage of this site? http://grouek.com/project/home
-
1
votes0
answers40
viewsQ: Scrolling of custom page
How can I build a scrolling effect similar to this site? http://www.ever.ag/ And how to make the effect of "appearance" (fade in, movement) of objects?…
-
1
votes2
answers400
viewsQ: "Shadow" effect inside the box
Hello! I was trying to make a kind of "inner shadow" on a div of mine, but I can’t. Does anyone know? The style is similar to the news boxes in the initial section of the keyboard…
-
-1
votes1
answer619
viewsQ: PHP code error - SQLSTATE[42000]
I am trying to list the categories and subcategories present in the database but the following error is pointed out: Fatal error: Uncaught Exception 'Pdoexception' with message 'SQLSTATE[42000]:…
phpasked Leonardo Henrique 127 -
1
votes0
answers224
viewsQ: Form does not send to e-mail (PHP)
I have two pages created, index.php and processForm.php. The first one counts with the form and the second one takes charge of taking the data and sending it to my e-mail. But despite putting both…
phpasked Leonardo Henrique 127 -
0
votes1
answer57
viewsQ: Contact form on an intitucional website
What is the best way to insert a functional form with text input, multiple choice selection etc on a static site (I don’t intend to use php). I know how the process of building and shipping works,…
htmlasked Leonardo Henrique 127 -
2
votes1
answer43
viewsQ: How to put dalay scrolling on a background?
I would like the bg of my Section to have a certain delay in the speed of scrolling to differentiate itself from the standard scrolling of the page. Does anyone know how I can do?
-
0
votes2
answers146
viewsQ: How do 'appear' effect on an element according to page scrolling?
I saw this video (link below) and would like to build an element that only appears when the scroll reaches the "point that touches it". I think it should be javascript. If anyone knew would be very…
-
2
votes1
answer77
viewsQ: Explanation about PHP code
Good evening, someone with more affinity in PHP could explain the following code? PS: I am starting the studies so I already apologize if the doubt is frivolous. <?php if (isset($_GET['pagina']))…
phpasked Leonardo Henrique 127 -
-4
votes1
answer2228
viewsQ: Javascript does not work :(
Good morning. I linked the javascript on my site as follows: script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"> and one of the codes is this, inserted just after the…