Questions tagged as 'php'

1
answer

Problem copying to clipboard with clipboard.js [duplicated]

I'm trying to copy the contents of a cell in a table using a button with JavaScript and the library clipboard.js Each cell has a different value and that value arrives with PHP at foreach and is displayed with $item->res...
asked by 16.01.2018 / 09:14
2
answers

Obtain registration with two matches in the same relationship table

Dear I need to get a record that has two relationships, I explain: I have the tables:    CONTENT: id - title - description       CATEGORY: id - title       CONTENTS_X_CATEGORIES: idContent - idCategory Whenever you want to get a "con...
asked by 16.01.2018 / 17:22
1
answer

Problem with css

I have the following css code <style> p { text-align: justify; text-justify: inter-word; } </style> But I want it only for this part of the document in html <p style="margin-top: 20px; line-heigh...
asked by 27.10.2017 / 22:33
1
answer

Error expanding PHP / MySQL details

In PHP / SQL, I have to show the details of some employees of a company, which are stored in the MySQL database. Right now, the code that I have developed is the following: employees.php <?php $host = "oraclepr.uco.es"; $username =...
asked by 25.10.2017 / 12:39
1
answer

Try Catch does not work in PHP with PDO

I have the following block of code to execute an insert, the insert is throwing me an error that a field that I do not include in my insert does not have a default value (use the $ stmt-> gtInfoInfo command). The Code is as follows: try {...
asked by 25.10.2017 / 17:38
1
answer

PHP Notice: Undefined index, variable

I have this error: PHP Notice: Undefined index: user in /home/clubbrit/public_html/socios/administrador/header.php on line 6 PHP Notice: Undefined variable: nombre in /home/clubbrit/public_html/socios/administrador/header.php on line 67 PHP...
asked by 25.10.2017 / 18:59
2
answers

Alert is not displayed when I show it before a redirect

I want to show a message with the error generated by a sentence in my BD and then redirect to another page, the code is as follows: echo '<script language="javascript">alert("Error al Grabar Cheque:'.$arr[2].'");</script>'; sleep(5...
asked by 25.10.2017 / 18:48
1
answer

Session Management does not validate

I have the following problem: configuration for the server: ini_set('zlib.output_compression', 1); ini_set('session.use_only_cookies', 1); ini_set('session.cookie_httponly', 1); I'm trying to validate if the sessions are active if(!iss...
asked by 25.10.2017 / 20:40
1
answer

Do I have trouble doing an INSERT with php and mysqli?

I have this mysqli_query($conect,"INSERT INTO Clientes (Nombre,Apellido,Direccion,Provincia,Ciudad,Fono,Email, nombreEnv,apellidoEnv,provinciaEnv,ciudadEnv, direccionEnv,fonoEnv,emailEnv,Emailusua) VALUES ('$nombre','$apellido','$direccion',...
asked by 05.11.2017 / 20:11
1
answer

Sessions in php for a certain user

Good day I'm working on WampServer php and mysql with sessions I have a problem having many users I want when I log in to show the data only of that user, my problem is how to assign an id so that when I start open with data only of that user. I...
asked by 05.11.2017 / 16:17