Questions tagged as 'php'

4
answers

automatically reload a page by clicking on back in the browser [closed]

Hello, good morning, I want to know if there is a way to make a page automatically reload because I have problems when giving the button back in the browser does not generate new codes, and I must update the page to make it happen     
asked by 11.10.2016 / 15:14
2
answers

Error in web service: Error: SQLSTATE [HY000] [2002] Connection refused

<?php $usu = $_REQUEST['usu']; $pas = $_REQUEST['pas']; try{ // establecemos la conexion con PDO $conexion = new PDO("mysql:host=pagina.000webhostapp.com;port=3306;dbname=id554244_basededatos", "id453244_usuario", "contraseña");...
asked by 17.10.2016 / 07:31
1
answer

verify php variable before doing the submit

I am learning on the fly and half blocked at times with some topic. I have a form with 2 buttons on my page detalle.php: <form action="carrito.php" method="POST" name="compra"> <input...
asked by 20.10.2016 / 05:06
3
answers

Show echo within a variable in php

Hi, I'm doing a web page in php but I'm using a template that includes it to the php and the page I modify it in php only that sometimes I need to resort to html, for that I show the content from the template. I do not know if it is the best way...
asked by 13.09.2016 / 19:56
1
answer

Psr-4 Laravel Namespace

I am working with Laravel 5.1 in an app that is already running, but I am changing from modules to the repository pattern. "psr-4": { "app\": "app/", "Cms\": "app/cms" } The first one is the default namespace and the second is what...
asked by 13.09.2016 / 15:13
1
answer

Edit WooCommerce Cart

I need in Woocommerce shopping cart to modify the structure of the display of the total content (that is, the typical of the cart, where you verify that you have everything you have added or delete if you added something else without wanting to)...
asked by 14.09.2016 / 18:04
1
answer

pass table row to another with jquery

Hi, I'm making a table that shows the contents of my database. I am using this code: Jquery 1.4.2 $(function() { function moveRow(row, targetTable, newLinkText){ $(row) .appendTo(targetTable) .find("a")...
asked by 21.06.2016 / 13:59
1
answer

Problem with array and Twig symfony 2

I have a problem between the controller of an application and a template twig, what I do is to convert a field from one row of the database to UTF8 , and then send an array to the view and that field I get well formatted. Driver and twig code...
asked by 24.09.2016 / 22:45
1
answer

Error in generating php link?

The error is generated by the records in the database. The tags are saved without any space and the link is generated in this way: example.com/tags/html,php id addtags ---- ------------ 1 html,php Now if I manually edit the...
asked by 24.09.2016 / 06:53
1
answer

Is it possible to import a sql script and split the queries?

I'm looking to create a database from a one-button event, the problem is that the way I'm doing it at the moment, is to take each query, add it manually and execute it, all right up there. The problem is that every time there is a change in the...
asked by 22.09.2016 / 16:57