Questions tagged as 'php'

1
answer

Selecionador Default option of a database

I have a table "put" this table contains the following fields id puesto 1 empleado 2 director 3 programador already having the ID correcpondiente to the user and the data contained by a submith in $id = $_GET['id']; I want my se...
asked by 09.08.2018 / 18:44
2
answers

I DO NOT GET ANY MYSQL REGISTER IN PHP

I've been working with php for some time and trying to make the MYSQL code work inside PHP, I'm working with PDO but at the moment I want to get the records from my database and put the print_r ($ variable); shows me an empty array. <?php...
asked by 09.08.2018 / 20:07
2
answers

Error sending mail with PHPMailer

Good morning everyone. I am presented with the following error:    Uncaught Error: Call to a member function isSMTP () When I try to send an automatic email. I have reviewed in many forums and I have not been able to find the problem,...
asked by 09.08.2018 / 17:26
2
answers

Encode image in base64

Good morning. I have an image in a server folder that I want to encode in base64 to be able to insert it in a pdf with the jsPdf plugin. I have tried to insert the image in a canvas but when I code it is encoded correctly but clearly, it e...
asked by 07.02.2018 / 07:06
1
answer

How to change the orientation of the page with the mPDF library?

I have a problem with a pdf generated with the mPDF library, I need to change the orientation of the page from vertical to horizontal ... can someone help me?     
asked by 02.02.2018 / 20:23
1
answer

Error Notice: Undefined offset: 0 when getting PHP PDO data

By using the following function I get that error, the function is used to verify whether or not there is a string in DB , if it does not remove that error, but if it does not exist I get the error    "Notice: Undefined offset: 0" I...
asked by 01.03.2018 / 21:56
1
answer

Open a view from another

In my login.blade.php view I have: <div class="container" id="forgot"> <a href="" id="text-forgot">RECUPERA TU CONTRASEÑA</a> </div> How do I make that from that href open my other view mail.blade.php...
asked by 26.02.2018 / 00:35
1
answer

how can I sort 2 columns per schedule as if it were one

I have 2 columns, the first is arrival_time, the second is pick_up, the question is the following, I need to sort the results depending on what type of service it is, if it is for example arrival (arrival) you have to select the schedule of the...
asked by 05.03.2018 / 02:09
1
answer

Receive different values of a PHP variable in HTML text

I want to store this: <?php foreach($query3 as $row3) { $calificacionaldrete0->$row3->totalm0; $calificacionaldrete15->$row3->totalm15; $calificacionaldrete30->$row3->totalm30; $calificacionaldrete45->$r...
asked by 01.03.2018 / 19:32
1
answer

debugging of SQL queries in PHP (var_dump and debugDumpParams)

When we are writing our SQL queries, we may need to check how the dynamic data we are sending is behaving, to validate that the result is expected. EXAMPLE I have the following script to bring all the posts of a certain user working 2 ta...
asked by 03.10.2018 / 03:40