Questions tagged as 'php'

1
answer

Confirm Dialog when you are closing a browser window

Hello, my question is how can I make a dialogue message when a user wants to close the page to confirm if they want to leave or want to stay on the site, I tried in many ways that I saw by other posts and none It works for me, thank you very muc...
asked by 08.06.2018 / 11:17
1
answer

Php variable that comes from a form of another page not defined

I have a form that has the data of an account and a foreign pk: identification, then I send them to another page to make the insert but the variables do not arrive, isset tells me they are not defined if(isset($_GET['identificacion'])){ $i...
asked by 08.06.2018 / 21:23
3
answers

MySQL storage engine (MyISAM to INNODB)

I have a hosting on GoDaddy, I was testing, perform some tests with (begin, rollback, commit) transactions, which had no effect. I was investigating and I realized that "MyISAM" does not allow transactions, so I assumed that the storage e...
asked by 09.06.2018 / 04:14
1
answer

How can I avoid duplicate data when filling an array from an sql query?

I want to bring several data according to the year to which the data belongs, but when making a foreach I create more arrangements with the same year, and does not unify the data for the same year: See base de datos : $dataa...
asked by 07.06.2018 / 20:54
1
answer

php error Catchable fatal error when making query

I have this doubt, it is probably very simple answer but I have very little doing this because I still do not soak up the logic hehehehe. Good to the question: This part of the code marks me the error: "Catchable fatal error: Object of class...
asked by 06.06.2018 / 19:03
1
answer

How can I add a header that is repeated in all the pages?

As my question says, I use the tcpdf library and here I leave the code: <?php require_once('tcpdf/config/lang/eng.php'); require_once('tcpdf/tcpdf.php'); require_once('../config.php'); $pdf = new TCPDF('P', 'mm', 'legal', tr...
asked by 07.06.2018 / 05:00
1
answer

Copy row from a table with jquery

I'm trying to copy a row of a table with jquery, this is the table: <table id="myTable" class="table table-bordered"> <thead> <tr> <td>Empleado</td> <td>Fecha salida</t...
asked by 06.06.2018 / 21:22
1
answer

I have to enter the username and password twice to enter the system

I have a page index.php for user login and password that validated its fields with jquery.validate and with this information I get access to the system, but I must always type twice the user and password to access and that generates problems wit...
asked by 06.06.2018 / 18:53
2
answers

Hello, I have a problem on a php page with an INSERT query

I have my php page in the first part of the page I have the declaration of the variables and their storage with the "name" that places them on the html page <?php include 'cn.php'; //recir los datos y almacenarlos en las variables $nombre =...
asked by 27.05.2018 / 12:48
1
answer

It helps the unset () function, it does not eliminate the variables of $ _SESSION

hello I hope you can help me I want to delete specific session variables, but it does not, I'm using the unset function, but my code does not delete the session variables I have two buttons by which depending on which one they choose me to a fil...
asked by 27.05.2018 / 10:12