Questions tagged as 'php'

1
answer

Why can not I insert more than 253 records in mysql?

Hello friends I am trying to insert several records at the same time but when generating this script it only allows me to insert a maximum of 253, where I send by means of POST the amount of 500, which I can be doing wrong? if(isset($_POST["id...
asked by 03.06.2016 / 21:47
1
answer

Error sending mail in php

I have tried a thousand different ways but I can not find a solution to this problem. I am trying to send an email with the code that I attached below, which I have in two other websites and they work perfectly. If someone can help me with this...
asked by 10.03.2017 / 00:36
1
answer

Doubts about an update using prepared statements

$username=$_POST["username"]; $email=$_POST["email"]; $sex=$_POST["sex"]; $description=$_POST["description"]; $infoVisivility=$_POST["infoVisivility"]; The thing is that I collect the above data from a form for the user to...
asked by 28.08.2018 / 05:18
0
answers

Login by Api Token Laravel 5.4

I'm making a login by api_token using laravel 5.4 The route is defined as Route::get('/test', 'Auth\authenticatedApiLogin@authenticatedApiLogin')->middleware('auth:api'); And if I do within the method: dd(Auth::guard('api')->user...
asked by 27.04.2017 / 17:25
2
answers

Where to use $ stmt-close () & $ stmt-free_result () - MySQLi PHP?

When there is more than one query in the same file shows errors, I solve everything by $stmt->close(); I have the doubt of what is the correct way to use it, how many close() should be used. The $stmt->free_result()...
asked by 21.10.2017 / 06:35
1
answer

Nginx - Error 403 when accessing /

I am working using the Nginx web server, but it is throwing a 403 error when accessing /, except when accessing /index.php directly or another existing file. Files and non-existent directories throw a 403 error as well. Error 403 = Prohibi...
asked by 07.08.2017 / 22:54
3
answers

codeigniter: change from one view to another

I have a question, I am using codeigniter and I want to do the following, in the model I make a query which I charge in array in the index of my controller, which later I show it in a table through a foreach in the vi...
asked by 20.12.2016 / 02:28
4
answers

Pass HTML select value to PHP with ajax

(ESTO ESTÁ EN UN SCRIPT APARTE EN WORDPRESS, QUE LO RECONOCE PERO GENERA ERROR) (function($){ var d= document.getElementById("lista").value; $.post(document.location.pathname , { variable: d } ); } (jQuery)) <div> <form method="post...
asked by 22.02.2017 / 21:38
3
answers

php date format

I have this date in php: 31082016 And I want to pass it to this format: dd-mm-yyyy I have the following code, but it gives me an error: echo "<br/><hr/>" . $fechaIn . "<hr/><br/>"; echo "<br/><hr/>...
asked by 18.08.2016 / 11:00
0
answers

Simple load ajax works in Firefox peron does not work in Chrome

I'm trying an example in Ajax that apparently only works in Firefox. In Chrome it does not work. Does anyone know why? Thanks index.html <div class="contenedor"> <p>AJAX</p> <button id="carga...
asked by 04.05.2018 / 20:31