Questions tagged as 'php'

1
answer

use PHP to know if sent email has been opened

I am very curious to know how I know if the email I sent was opened by the recipient. Is there any way to tell using PHP or some other language?     
asked by 03.04.2015 / 01:10
2
answers

How to use PDO bindParam in the IN () of the query? [duplicate]

I have a query similar to this: $modelos = "1,2,3,4"; $sql = "Select codigo_modelo, nome From modelos Where codigo_modelo in (:codigo_modelo)" $sql->bindParam(":codigo_modelo",$modelos,PDO::PARAM_INT); //TAMBEM JA TENTEI C...
asked by 13.04.2015 / 15:44
1
answer

Special characters (ï »¿) appear in front of the XML tag [duplicate]

I'm reading two XML files however created on different computers. This one was created on my computer: <?xml version="1.0" encoding="UTF-8"?> ... This below with the same content appears a sequence of special characters ( ...
asked by 03.07.2017 / 21:54
3
answers

foreach - Moving CSV file

I need to go through a CSV file to capture a value and print it on the screen. Example: Column "N" line "2", in this case, it is cell N2 which is written: 2.98 How to print this N2 cell on the screen? How to get there? <?php$h=fo...
asked by 15.08.2017 / 14:51
2
answers

Variables are not receiving input value in PHP [closed]

I have this form to send messages to the email: <form action="contato.php" name="sentMessage" id="contactForm" novalidate> <div class="row"> <div class="col-md-6 wow fadeInLeft" data-...
asked by 18.08.2017 / 18:37
2
answers

Use 'today' as default value in PHP method

Is it possible to do something matching this with PHP (use today's date as the default in the parameter)? class fiscalOBCharts { private $exercise; public function exercise(string $exercise = date('d/m/Y')){ $this->exercise...
asked by 30.08.2017 / 19:37
3
answers

Routes accessible only to users logged in to Laravel?

Can anyone give me a hint on how to create routes that can be accessed only by users who are authenticated using Laravel ? For example , routes that relate to sharing, editing, deleting, and viewing publications are accessible only to...
asked by 24.08.2017 / 23:41
2
answers

Search only form fields with a value other than 0 and put in PHP variable

I have a budget form with 70 products in which the user chooses the quantity of products he wants from each one. All are named with id p1, p2 ... p70 and are type inputs. <form method="post"> <input type="number" value="0" name="p1...
asked by 28.08.2017 / 20:50
2
answers

Custom border for certain table columns

So, I have a page with a table that compares a quantity of predicted items with a quantity of items made month by month. That's how it is today: Ihavebeenaskedtoputalineaftereachcolumnofthesemadetobemoreseparate,butIhavenoideaifitispossib...
asked by 06.07.2018 / 14:16
1
answer

Compare variable more than once, without repeating it

Example: I have a variable , which can be between 1 and 10 . I make the comparisons / conditions to print the result. $var = 5; if ($var == 1) echo 'A'; else if ($var == 2 || $var == 6) echo 'B'; else if ($var == 3 || $var == 5) ech...
asked by 02.08.2018 / 20:40