problem creating printable page
Posted: 2019-09-24 18:36
Hello to all,
I am desperate!
I'm trying to follow the example that Ahmed published during udemy "creating a printable invoice".
I have a table called "Partecipazione_evento_pubblico" with a primary key called "pri_key". I have created a "stampa attestato" (=print certificate) button in the dv of the table "partecipazione_evento_pubblico". The button links to the "attestato_evento_pubblico.php" file.
My goal is to create a custom page where some fields of the table "Partecipazione_evento_pubblico" are shown with a particular layout.
Following the tutorial in the udemy course I was hoping to be able to view, in the page https://sullabuonastrada.org/governance ... pri_key=66 (where 66 is the primary key of the record on which I clicked) the fields of the table "partecipazione_evento_pubo "with data of the recors with pri_key 66.
Unfortunately instead I get an error in the query and I just can't understand where I'm wrong!
In fact when I click on the button the page https://sullabuonastrada.org/governance ... pri_key=66 opens but the fields of the form with primary key 66 do not appear on the page and this error appears:
"Column 'pri_key' in where clause is ambiguous".
at link http://circolovega.org/files.rar you can download:
1) error message.docx (full description of error message with the whole query text)
2) the file attestato_evento_pubblico.php (the file that opens by clicking on "stampa attestato" (= print certificate) but showing the error.
3) the file partecipazione_evento_pubblico.php (which is located in the hooks folder and contains the customization of the table "partecipazione_evento_pubblicot").
I really hope someone can help me understand where I'm wrong! THANK YOU ALL!
Fabiano
I am desperate!
I'm trying to follow the example that Ahmed published during udemy "creating a printable invoice".
I have a table called "Partecipazione_evento_pubblico" with a primary key called "pri_key". I have created a "stampa attestato" (=print certificate) button in the dv of the table "partecipazione_evento_pubblico". The button links to the "attestato_evento_pubblico.php" file.
My goal is to create a custom page where some fields of the table "Partecipazione_evento_pubblico" are shown with a particular layout.
Following the tutorial in the udemy course I was hoping to be able to view, in the page https://sullabuonastrada.org/governance ... pri_key=66 (where 66 is the primary key of the record on which I clicked) the fields of the table "partecipazione_evento_pubo "with data of the recors with pri_key 66.
Unfortunately instead I get an error in the query and I just can't understand where I'm wrong!
In fact when I click on the button the page https://sullabuonastrada.org/governance ... pri_key=66 opens but the fields of the form with primary key 66 do not appear on the page and this error appears:
"Column 'pri_key' in where clause is ambiguous".
at link http://circolovega.org/files.rar you can download:
1) error message.docx (full description of error message with the whole query text)
2) the file attestato_evento_pubblico.php (the file that opens by clicking on "stampa attestato" (= print certificate) but showing the error.
3) the file partecipazione_evento_pubblico.php (which is located in the hooks folder and contains the customization of the table "partecipazione_evento_pubblicot").
I really hope someone can help me understand where I'm wrong! THANK YOU ALL!
Fabiano