Posts by Clayton Campos • 107 points
19 posts
-
1
votes1
answer39
viewsQ: Help with misaligned flexbox footer
I’d like some help with mine footer , that is getting totally misaligned, I have tried a clear: both , but without success, I would like a help to correct this error. the original footer code is…
-
0
votes1
answer80
viewsQ: background image on one page
Good morning Guys, I’m creating a site one page , but I’m having difficulty putting the background of the image filling the space 100%,how can I put the fixed background under the menu,filling all…
-
1
votes3
answers340
viewsQ: Responsive alignment on footer
I would like some help to align the footer responsiveness. Put the copyright down further (I’ve tried padding, but it disappears) and align the separators in the section(border-right), the rest is…
-
-2
votes1
answer143
viewsQ: Content of responsive footer
I would like help in my code to make the footer’s "content" columns responsive. Follow the code below: *{ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin:0; padding:…
-
2
votes2
answers2008
viewsQ: How to split an array and write to the PDO database
I have this code: <?php foreach ($_POST as $dados =>$value) { $list = explode('_', $value); echo '<pre>' . print_r( $list, TRUE ) . '</pre>'; ?> It generates the array output:…
-
0
votes1
answer111
viewsQ: <input text> does not work in Firefox inside a php echo
Can you tell me how I can make an input work in firefox? I put it that way inside an echo, but I don’t type anything...? echo '<fieldset>'; echo '<input id="name" type="text"…
phpasked Clayton Campos 107 -
-2
votes1
answer91
viewsQ: input form does not type
but where you type the zip code, you’re not typing anything, how do I rescue the zip typed in a variable with $post ? and in the calculus I wanted to redirect to calculus.php,something similar to…
phpasked Clayton Campos 107 -
0
votes1
answer263
viewsQ: Calculate the total in the bank bill
Maybe with the image I can understand, I have according to the image, 2 products, at the time of generating the billet it only takes the value of the first product, how to redeem the total…
-
0
votes3
answers2318
viewsQ: How do I zoom into a css or javascript page?
I would like to know how I get the site started with 67% zoom in CSS or Javascript?
-
-2
votes1
answer2641
viewsQ: Error "Parse error: syntax error, Unexpected end of file"
I’m having trouble connecting , where it presents the following error: Parse error: syntax error, Unexpected end of file in /var/www/html/showdospes.com.br/web/funcao/conecta.php on line 27 where…
phpasked Clayton Campos 107 -
0
votes1
answer104
viewsQ: My hosting does not connect the bank
When upling the database appears this: SQLSTATE[HY000] [2002] Connection timed out Fatal error: Call to a Member Function prepare() on a non-object in How can I resolve , to connect? because local…
phpasked Clayton Campos 107 -
-1
votes1
answer38
viewsQ: How do I connect to another database using the connection I already have
How do I connect to another database using the connection I already have and works perfectly in another database? When I change only the connection name appears: Notice: Undefined variable: conn2 in…
phpasked Clayton Campos 107 -
0
votes1
answer53
viewsQ: keep quantity after refresh
So I add the product: if (isset($_GET['acao'])) { if ($_GET['acao'] == 'add') { $id = intval($_GET['id']); if (!empty($_SESSION['shop'][$id])) //if (!isset($_SESSION['shop'][$id]))…
phpasked Clayton Campos 107 -
1
votes1
answer117
viewsQ: Calculation of Javascript total
Hello, this is the code that makes the calculation of my shopping cart, works perfectly, but when you update the page in the browser, it goes back to the initial price. That is, if add 2 products it…
javascriptasked Clayton Campos 107 -
-3
votes1
answer299
viewsQ: Add products without refresh
Good morning, when adding a product to your cart every time you update your browser it increases the product by +1. How to prevent this? This is how to add it: //adiciona produto…
phpasked Clayton Campos 107 -
2
votes1
answer330
viewsQ: Total in shopping cart
I’m having trouble with the cart, if I put $preço =$linha['preço']; displays the value correctly, but if I put the number_format below, it Zera the result: $preço = number_format((float)…
phpasked Clayton Campos 107 -
1
votes0
answers314
viewsQ: How to list products in categories?
Hello, I have this code to show the category menu: require_once ('./funcao/conecta.php'); $conn = conecta(); $sql = $conn->prepare("SELECT * FROM `loja`.`categorias` ORDER BY `nome_categoria`…
-
0
votes3
answers23785
viewsA: How to make PHP and Mysql paging?
My site has 180 products , can use my code works perfectly: <?php echo'<table width="88%" height="10" cellspacing="0" cellpadding="0"><tr>'; $conn = new…
-
-1
votes1
answer276
viewsQ: Pagination of products with PDO
I need to create a pagination for my database with 180 products, only the images without pagination appear all 180 side by side, as I can do to limit the images 10 per page side by side? Here is my…