Questions tagged as 'php'

1
answer

Problem with multidimensional array 3x3 delete function item

Good morning colleagues, I have a problem with arrays that is breaking my head, it turns out that I have this dimensional arrangement. array(3) { [1]=> array(1) {["PC150"]=> array(7) { [0]=> string(5) "HABPC" [1]=> string(2) "PC...
asked by 02.04.2018 / 19:33
1
answer

Problems when trying to update with pdo

Trying to edit a 'Course' generates this error, SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens My form: <form action="vista%20normal.php?pagina=administrar_cursos" method="POST" enc...
asked by 12.04.2018 / 10:57
2
answers

Compare input data with records in MySQL

I have an input in HTML with AJAX which enters a 4-digit code with a button to send to a database in MySQL, until now everything is perfectly inserted, and registered in the database. Now I have to compare that data that is entered in the inp...
asked by 02.04.2018 / 18:10
1
answer

Slim - How to return a json in a single array (I create double array)

I have a problem when returning the results I want in JSON. I make a query to the database and when I rescue that answer I keep it in an array and so on up to three times, that is, I want it to return a JSON of three rows. My problem is that I c...
asked by 31.03.2018 / 00:35
2
answers

Error in wordpress site due to expired SSL

I have a site whose SSL expired and both the page and the admin do not let me see the content.    The connection is not private       It is possible that attackers are trying to steal your information from globalwmexico.com (for example, pass...
asked by 29.03.2018 / 04:54
1
answer

protect my routes - print my Json

I am trying to avoid printing my Json format directly (or I do not know if there is any other way) What happens is that when I access my route in this way http://blissre.test/projects/ I upload my projects So far so good, when l...
asked by 31.03.2018 / 02:37
1
answer

Show mysql table in php, javascrip

I have the following database, if it is necessary to use javascrip it does not matter, but it is important to say that I use ajax and json. But I can only show the last record since I'm using ajax and json this is my code in...
asked by 10.08.2018 / 01:47
1
answer

Error in mysqli prepared query in PHP

Good day to the community. I have the following function: function insertar_producto_carrito($id_producto,$cantidad,$conexion){ try{ $sentencia = $conexion->prepare("insert into carrito(id_producto,cantidad)values(?,?)");...
asked by 10.08.2018 / 22:27
2
answers

The page is restarted after uploading the second file

I created a file upload works well when it's the first time I upload a file, when I try again, if you upload the file, what you should not do is reload the page since I use Ajax to send this, I'm new to the subject and I've searched a lot and I...
asked by 06.04.2018 / 06:33
1
answer

Count () in php to get the length

It turns out that I have the following associative arrangements: Array ( [ItemID] => 192 [ItemName] => Ford [IMEI] => 0080WEWE [Status] => A ) When I use the count () method for that array the result is 4, b...
asked by 23.03.2018 / 20:47