Questions tagged as 'php'

1
answer

Error in sql query

I have the following table and I want to make a record of certain values from php but when I try to enter it tells me that there is an error when inserting the data and I have the following code to enter that data to the base <?php if...
asked by 17.07.2018 / 12:54
3
answers

Show checkbox already marked with jquey according to a MySQL database record

I have a fullcalendar and clicking on some day will show me a form, the user enters the normal data and must select some people assigned to that event with a checkbox. ( There everything is fine ). Calendar image with events already created...
asked by 29.08.2018 / 14:54
1
answer

Myslqi query of two tables with sum of records

Good to have if I can explain everything; I have two tables in the BD: productos +----+----------+--------+ | id | producto | estado | +----+----------+--------+ | | | | | | | | +----+----------+...
asked by 20.08.2018 / 09:08
2
answers

illegal string offset PHP

If you know how I could resolve this, I would appreciate it very much: PROBLEM:    illegal string offset 'index (can be "id" or another cualqiera)' This is coming to me when I try to get information from the database that stores my i...
asked by 18.08.2018 / 19:33
1
answer

Problems with AJAX and PHP

I'm in trouble because I'm passing a couple of parameters from AJAX to PHP but PHP does not collect this data. function ImprimirFichaUsuario(){ var id = $('#idusuarionuevo').val(); var name = $('#nombrenuevo').val(); //Estos aler...
asked by 20.08.2018 / 12:56
1
answer

pdo :: __ construct (): php_network_getaddresses: getaddrinfo failed: name or service not known in

I am uploading my website to the server and when logging in I vote this error. I have a connection page in which I detail all the configuration define('URL', 'https://www.aynii.pe/'); define('APLICATION', 'aplication/'); define('DB_TYPE', 'mys...
asked by 18.08.2018 / 01:36
1
answer

Obtain html content with inputs and their written values

I have an inconvenience. I am trying to dynamically generate a cell with a button with Inputs with a button. My drawback is that after filling the first row and generate one more I put the one that had already filled but the new emp...
asked by 13.08.2018 / 17:14
2
answers

Duda laravel eloquent sql

I'm new to laravel and I have a couple of problems about eloquent . I have the following code. $usuario = DB::table('user') ->select('user.id','user.name', 'user.email') ->join('user_dep', 'user_dep.user_id', '=', 'user....
asked by 25.06.2018 / 08:21
1
answer

How to recover variables sent by Angular in PHP?

I'm trying to send a data by getting from an Angular 5 service to an API in PHP. The way I send it is like this: public getMembers$(id): Observable<any> { return this.http.get(this.URL + 'read_records.php?id=1'); } The variable t...
asked by 23.06.2018 / 14:12
1
answer

Error in jQuery, when sending FORM: Maximum call stack size exceeded

Uncaught RangeError: Maximum call stack size exceeded at xb (jquerymin.js:4) at xb (jquerymin.js:4) Hello, I try to send the following form, and I receive this error by console: <form id="form_comentarios" action="POST"> &l...
asked by 07.09.2018 / 17:22