Questions tagged as 'php'

1
answer

Increase session variable expiration time in PHP

I have tried several ways to modify the expiration time of a session session, but none of them has been useful to me. Also try to modify in .ini and stay the same. I have the system hosted in cPanel. I hope you can help me, Thanks.     
asked by 25.09.2018 / 21:53
3
answers

Error traversing a multidimensional array within a php session

how are you? I have a question, I made a session, to contain an array and then use it whenever I want in several parts of my page. the question, is that wanting to bring the data of each array within this session, throws me errors ... with the v...
asked by 23.09.2018 / 18:45
3
answers

Limit content according to user

I have a question about how to limit the options that a user sees in a form in my select / option I want the user id = 1 to only see the clients that I assign (let's say the client1 and clients5) I am free to add fields for this purpose in my...
asked by 06.09.2018 / 17:11
1
answer

whats app web custom field for the phone

I want to add in PHP the href of the whats app link and the phone number to complete it with a custom field. I call it $ tel. I can not get it, I get the following error, can you help me? Is it okay? <?php $tel = get_field('telefono'); var_...
asked by 06.09.2018 / 04:09
1
answer

Any way for a user to modify the $ _SESSION []?

I want to know if my web application runs some risk , since I am making all the "permission" verifications depend on the value of its $_SESSION[]; In my case, I use: $_SESSION['username'] , which contains the username of the p...
asked by 31.10.2018 / 22:38
1
answer

Problems with the accents in the subject of PHPMailer

I am using PHPMailer to send emails for password recovery, welcome ... etc. The fact is that the body of the message is correctly coded by applying $mail->CharSet = 'UTF-8'; but the subject of the message does not recognize the accents...
asked by 10.09.2018 / 12:02
1
answer

Add in a Mysqli a value different from that indicated by the select

guys I have the following conflict: I have the following code line in a form: <div class="form-group"> <label for="monto">Seleccione Monto</label> <select class="custom-select" id="monto_mensualidad" name="monto_mensual...
asked by 10.09.2018 / 20:11
1
answer

Change the data I receive by POST from a modal

I'm with the edition of the orders through modal and AJAX. The problem is that in the order table the "Product" field is a number, but in the modal I get the name of the product, eg: Diode Laser "thanks to a query that you make to get the nam...
asked by 12.09.2018 / 08:11
1
answer

How to save a Json in a variable javascipt

hi chic @ s I have a problem. I'm designing a web in which I use a php script that searches in several directories of my web images that comply with certain characters in its name, and once it has this it returns the link in json format. My p...
asked by 29.08.2018 / 22:46
1
answer

use 'where' with 'like' in an eloquent realation

hello I have two models Movement and Account In the Movement model I have the following relationship. public function cuenta() { return $this->hasOne(Cuenta::class); } What I am looking for is to bring all the Movements with their...
asked by 03.09.2018 / 01:04