Posts by Murilo Cabral • 431 points
71 posts
-
-1
votes1
answer252
viewsQ: You can use Ajax request in <meta http-equiv='refresh' content='0;'>
Friends can use a request on <meta http-equiv='refresh' content='0;'>. I have this code below working, if($buscasegura->execute() == ''); echo "<meta http-equiv='refresh' content='0;…
-
0
votes0
answers140
viewsQ: Conflict with <meta name="viewport"
Hi, I’m having trouble with the <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">, because I have this code below: <div…
-
0
votes0
answers22
viewsQ: How to make icons _dt responsive
I have this code below working in almost all functions. The only thing missing to be 100%, is to make it responsive. Or at least reduce the size of each icon according to the size of the devices. I…
phpasked Murilo Cabral 431 -
-2
votes3
answers440
viewsQ: How to change the colors of Notes using javascript according to the result
I have a database where I insert my students' grades. But I would like these notes to be shown in the virtual bulletin as follows: Banknotes from 0 to 25 = Red Banknotes from 26 to 50 = Yellow…
-
1
votes1
answer170
viewsQ: Can I use $_GET with $_SESSION?
I have this PHP code working, <?php include "../conexao.php"; $codigo = $_POST['codigo']; $nome_marca = $_POST['nome_marca']; $query = mysql_query("SELECT * FROM marca order by nome_marca")or…
phpasked Murilo Cabral 431 -
0
votes2
answers121
viewsA: Redeeming values from a SESSION
With the help of @Bacco, who noticed that the point between concatenate and include php was missing. Put the code working below. <?php include ''.$prod_04.'.php'; ?> Thank you again @Bacco.…
phpanswered Murilo Cabral 431 -
0
votes2
answers121
viewsQ: Redeeming values from a SESSION
I’m trying to bring through the <?php include ''.$prod_04.'php'; ?> but I’m not getting back the content registered in $_SESSION['hab_prod_04']. Already check using <?php echo $prod_04…
phpasked Murilo Cabral 431 -
0
votes0
answers95
viewsQ: Can Upload a Favicon in Format . ICO
Hi, I’m trying to upload a BD file. ICO, I thought if I only included the extension. ICO in the UPLOAD file would suffice, but pure mistake mine. So I ask the question: Is there any way to Upload a…
phpasked Murilo Cabral 431 -
0
votes1
answer4809
viewsA: How to adapt Javascript href to access a php page?
With the help of our friend @Givanildo R. de Oliveira, we were able to solve the problem and bring only the products related to the selected category. Down with the working code: <?php include…
-
0
votes2
answers1944
viewsA: How to create an event for href="javascript:void(0);" onclick="?() ;">
With the help of our friend @Givanildo R. de Oliveira, we were able to solve the problem and bring only the products related to the selected category. Down with the working code: <?php include…
-
0
votes2
answers142
viewsA: Help to create an AJAX event
With the help of our friend @Givanildo R. de Oliveira, we were able to solve the problem and bring only the products related to the selected category. Down with the working code: <?php include…
javascriptanswered Murilo Cabral 431 -
1
votes1
answer231
viewsA: Help with PHP Code and Javascript
With the help of our friend @Givanildo R. de Oliveira, we were able to solve the problem and bring only the products related to the selected category. Down with the working code: <?php include…
-
0
votes1
answer231
viewsQ: Help with PHP Code and Javascript
I need to bring only the products referring to the selected category, when I click on: <a class="cat-link" href="javascript:;" title="<?php echo $res['nome_cat']; ?>"> <img…
-
0
votes0
answers34
viewsQ: Help to configure href
I have this code below, <?php include "conexao.php"; ?> <div id="produtos-content"> <!-- Listando os Categorias --> <?php $nome_cat = $_POST['nome_cat']; $img_cat =…
-
0
votes2
answers142
viewsQ: Help to create an AJAX event
I’m with that HREF down below, and by clicking on it, I have the return of all products registered in the table "PRODUCTS", using the script: I need this href to bring me only the products referring…
javascriptasked Murilo Cabral 431 -
0
votes2
answers1944
viewsQ: How to create an event for href="javascript:void(0);" onclick="?() ;">
Accessing the address http://www.lccinformatica.com.br/, can verify that I can bring and view the two categories registered in the table "CATEGORY" in the BD (Image below), but I would like that…
-
-3
votes1
answer192
viewsQ: How to make a Loop work within another Loop in the same code
I’m trying to list two categories registered in the comic in the table "CATEGORY", as shown below: Table Category But whenever I enable the page "pag_presentation.php" where I list the products, the…
-
0
votes2
answers62
viewsA: Loop is not listing images as expected
I am posting the code below, working as desired. I thank my friend @Bruno Bermann who with his tip helped to make the result positive. <?php include "conexao.php"; $fundo_show_room_img =…
-
-1
votes2
answers62
viewsQ: Loop is not listing images as expected
I’m adventuring and trying to create an image gallery, and for that I took a gallery already created, and I’m trying to adapt it to work with PHP LOOP. I have 08 images (Numbers from 1 to 8) already…
-
0
votes1
answer71
viewsQ: Can I create a new session with the tag form?
Hello, I’m trying to create a simulation in the assembly of Site, and for that I already got the simulation of image exchange through $_SESSION. I created this $_SESSION below to load the first…
phpasked Murilo Cabral 431 -
0
votes2
answers151
viewsA: Help to create an image loop with $_SESSION
I managed to make it work by making some changes to the code of friend Miguel. Below working code: <div align="center" u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px;…
phpanswered Murilo Cabral 431 -
0
votes2
answers151
viewsQ: Help to create an image loop with $_SESSION
I’m using this code below working perfect with an image loop coming from the BD. <div align="center" u="slides" style="cursor: move; position: absolute; left: 0px; top: 0px; width: 600px; height:…
phpasked Murilo Cabral 431 -
-1
votes1
answer162
viewsQ: How to Loop $_SESSION
painted yet another doubt... I can loop in $_SESSION, like: I have this code below, looping all the images registered inside the banner table and taking all the images registered in the image field.…
phpasked Murilo Cabral 431 -
0
votes1
answer44
viewsA: Help with tag radio to record in $_SESSION
Problem solved with the help of friend Miguel, as POST Below working code: <?php if(isset($_POST['status_prod'])) { if(isset($_POST['status_prod']) && ($_POST['status_prod']) == 0) { //…
phpanswered Murilo Cabral 431 -
0
votes3
answers1930
viewsA: Help to change SESSION variables
Problem solved with the help of friend Miguel, as POST Below working code: <?php if(isset($_POST['status_prod'])) { if(isset($_POST['status_prod']) && ($_POST['status_prod']) == 0) { //…
phpanswered Murilo Cabral 431 -
1
votes2
answers281
viewsA: Function Empty returns true (truth) when value is 0
With the help of my friend Miguel who gave me a light so that I could reach my goal, which is to be able to record the Status of the button and enable it according to the YES or NO selection. Access…
phpanswered Murilo Cabral 431 -
2
votes2
answers281
viewsQ: Function Empty returns true (truth) when value is 0
Hello, I am using the code below to save the status ($status_prod) of the button (Enabled? Yes or No), and also save the target address ($link_prod) of the button when enabled. But it’s only…
phpasked Murilo Cabral 431 -
0
votes1
answer44
viewsQ: Help with tag radio to record in $_SESSION
Hello, using the code below (EDITED) to save the status ($status_prod) of the button (Enabled? Yes or No), and also save the target address ($link_prod) of the button. But he’s only recording the…
phpasked Murilo Cabral 431 -
0
votes0
answers67
viewsQ: Help to record two values in $_SESSION using a single radio form
I have this code below working perfect for recording in BD: <?php include '../conexao.php'; $codigo = $_POST['codigo']; $servico = $_POST['servico']; $servico_status = $_POST['servico_status'];…
phpasked Murilo Cabral 431 -
0
votes1
answer30
viewsA: Help to record SESSION using radio tag
I’m answering my own question with the code working. <?php @session_start(); // Inicia a session. if(!isset($_SESSION['rede_sociais'])){ // Se a Session não existir eu crio... $face_status =…
phpanswered Murilo Cabral 431 -
0
votes1
answer30
viewsQ: Help to record SESSION using radio tag
Hello I’m using this code below, to record in $_SESSION, but I’m not getting it. Friends can help me understand why, or even show me where I’m going wrong. <?php @session_start(); // Inicia a…
phpasked Murilo Cabral 431 -
0
votes3
answers1930
viewsA: Help to change SESSION variables
I’m editing and answering my own question with the code working. <?php @session_start(); // Inicia a session. if(!isset($_SESSION['rede_sociais'])){ // Se a Session não existir eu crio...…
phpanswered Murilo Cabral 431 -
-5
votes3
answers1930
viewsQ: Help to change SESSION variables
I need to change the values of SESSION’s name, login and password, but I’m not getting. I think the problem is in this part of the code, if(!isset($_SESSION['usuario'])){ // Se a Session não for…
phpasked Murilo Cabral 431 -
0
votes3
answers65
viewsQ: Help with IF and ELSE at session_start()
I ask for the help of friends, because I’m having difficulty creating an IF/ELSE to determine which content of the variable $logo will enter first. Here’s what I need when accessing the main page…
phpasked Murilo Cabral 431 -
0
votes1
answer468
viewsQ: Help with image uploading and viewing with $_SESSION or $_COOKIE
I need to make, that the user changes the image without changing the source file of the Database, that is, when he closes the BROWSER after having made the exchange, he or any other user entering…
-
0
votes1
answer70
viewsQ: Using $_SESSION for temporary image exchange
I’m trying to create a simulator where the user can change the image, but when he closes the Browser, returns the source image, which is recorded in the BD. I have been researching and I saw that…
-
0
votes1
answer4809
viewsQ: How to adapt Javascript href to access a php page?
Hello, I’m trying to get Javascript href to bring the content of another php page into your source page... Well I don’t know if I could explain myself to the point where my friends understand what I…
-
2
votes1
answer577
viewsA: How to create Prev and Next buttons
Fellas, I got it. And the code went like this: <div id="fotos" class="sections full-width-wrapper bg_5"> <div class="centered-wrapper"> <div class="section-header"> <?php…
-
2
votes1
answer577
viewsQ: How to create Prev and Next buttons
Hello, I’m trying to create a photo gallery with the Fancybox that I downloaded and I would like to insert the buttons Next and Back but to pass 04 images with a single click. I’m attaching this…
-
2
votes2
answers398
viewsQ: How to write data from two columns of a table using select?
Hello, I am using a Select to take data from the Marks table, and save the code and brand name when registering the product, but I am not able to save the data of both simultaneously, I can only…
-
1
votes2
answers264
viewsQ: How to concatenate columns from different tables?
Hello I’m with this code and I’m trying to make an adaptation to use it, but I’m having trouble bringing the contents of the column edit quant_img table, but I’m not sure how. Friends could shed…
-
0
votes2
answers87
viewsA: Doubt how to loop Javascript
I managed to solve the problem!!! The solution was to start the loop before the Script, insert the code of each product registered in the products table in the line of the script referring to it, in…
-
1
votes2
answers154
viewsA: Help with Javascript loop
I managed to solve the problem!!! The solution was to start the loop before the Script, insert the code of each product registered in the products table in the line of the script referring to it, in…
-
1
votes2
answers154
viewsQ: Help with Javascript loop
Hello, I have this code below: <div class="" style="background:<?php echo $res['fundosite_cor']; ?>; width:588px; float:left;"> <script> jssor_slider20_starter = function…
-
0
votes2
answers87
viewsQ: Doubt how to loop Javascript
Hello, I have this code below: <div class="center_content" style="background:<?php echo $res['fundosite_cor']; ?>; width:588px; float:left;"> <?php include "conexao.php"; $codigo =…
-
0
votes0
answers54
viewsQ: Problem with Javascript loop
Hello I’m trying to create a list of products giving a loop, but I’m having trouble giving the loop in the Javascript file. I am posting the files and access addresses so that they can check the…
-
-5
votes2
answers75
viewsQ: Use Inner Join with <ul> and <li>
Hello, I’m trying to list the Sub-Categories within their respective Categories with Inner Join, but I’m not getting it, see what’s happening with the Categories menu. Below I relate the code…
-
3
votes3
answers973
viewsQ: Subcategories within their respective Category in the menu
Hi, I created a menu that searches the information in the database. I have a table with the categories and another one with the subcategories, up to there beauty, my difficulty is to make each…
-
2
votes1
answer62
viewsQ: Help with INNER JOINS
I’m having a problem with INNER JOIN. When I do a search for a certain sale it brings me all sales related to the customer code, because it is the field "codcliente" that associates the 03 tables…
-
0
votes2
answers74
viewsA: Help with JOINS in 3 tables
Settled, I was forgetting that: if(isset($_POST['busca'])){ at the beginning of PHP, and the tables I was putting them in uppercase, and in BD they are in minuscules. The code working was like this:…