Questions tagged as 'php'

1
answer

Element is not displayed in Safari

Good morning, I have the following problem in one part of the code, which is the following: echo "<section class='hilo_paginacion'>"; echo "<div class='creacion_hilo'>"; if (isset($_SESSION['usuario']) AND count($todas_respuest...
asked by 26.03.2017 / 18:21
1
answer

Limit the time in a html and php form

In a html and php form, which passes to a mysql db, can you prevent the same user from responding several times? And limit the time to a week, for example? I want that after a given time, one month, (in the example the month of February), the us...
asked by 04.04.2017 / 14:34
1
answer

Hover product woocommerce

Good morning, I was investing to make an online store, and I need to know how I can do so that when I hover over a product I show the available sizes. Something similar to what you see on this website: link Is this setting available in t...
asked by 05.04.2017 / 16:27
2
answers

Error sending mail with phpmailer, connect () failed [duplicate]

I have installed PHP v5.6.25 (I use the 64x version) and wampserver v3.0.6, Apache 2.4.23. I have made some port modifications since I have followed several tutorials on YouTube, but I do not remember which lines I have modified on a regula...
asked by 04.04.2017 / 19:51
1
answer

Show PrettyPrint JSON in Slim3

I am creating a restful api with the framework Slim3 the data is returned to me with json, but to debug I like more to show the answer with a nicer format. in% pure co_de I do it using json_encode($datos, JSON_PRETTY_PRINT); I hav...
asked by 05.04.2017 / 10:22
5
answers

Print value out of foreach

I have generated a list that is generated in the following way: foreach ($productos as $p) { echo '<tr>'; echo '<td>' . $p->codigoProducto . '</td>'; echo '<td>' . $p->categoriaNombre . '</td>...
asked by 05.04.2017 / 23:41
3
answers

Error 1064 in create table [closed]

   (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED AUTO_INCREMENT, nomCognoms varchar (60) not NULL unique_key, adreca goes' at line 2 $sql...
asked by 25.03.2017 / 11:26
1
answer

Syntax error, unexpected 'm' (T_STRING) on line 91 [closed]

After making some changes to the file, I have an error "Syntax error, unexpected 'm' (T_STRING) on line 91". I checked the code several times on my own and I can not solve the problem. File create.php : <title>Kevin Andrews / TXT<...
asked by 25.03.2017 / 19:46
2
answers

Make an alert with php after a form

I am a newbie in programming, I recently made an "application" which saves some data in an input to a table in mysql and shows them on the page in the form of a table, by a form <form action="enviar.php" method="post" autocomplete="off">...
asked by 25.03.2017 / 16:51
1
answer

Php smtp error godaddy

I am trying to send a form in PHP to send it through the Godaddy server, but when I send it I get the error <?php $nombre = $_POST['nombre']; $email = $_POST['email']; $compania = $_POST['compania']; $telefono = $_POST['telefono']; $pais =...
asked by 30.05.2017 / 03:14