Questions tagged as 'php'

2
answers

Is there an equivalent to lastInsertId () for an UPDATE?

I am using PHP and MySQL with PDO; I would like if there is an equivalent to the lastInsertId () method that returns the last ID of a row that has been inserted, but that returns the last ID of a row that was updated.     
asked by 25.05.2016 / 23:33
2
answers

Contact form, the mail does not arrive

My problem is that I have a form made with HTML, PHP and AJAX that I went up to my page does everything like "should" but my email does not get the message, I leave my code for review: HTML: <h3>Formulario de Contacto</h3>...
asked by 21.05.2016 / 07:05
1
answer

access descendant properties of mySQLi in php

Dear   I have extended the class mysqli in php but when doing print_r the public properties that I have added to the class are not shown: here is an example: <?php // define una nueva clase class miClase extends mysqli{ public...
asked by 21.05.2016 / 11:02
2
answers

PHP does not show errors in the connection even if it is incorrect

I have the following code that makes the connection of php and sql server but although I put the data of the connection wrong it does not show me any error: <?php session_start(); if (isset($_SESSION['usuario'])) { header('location: co...
asked by 06.05.2016 / 17:14
1
answer

Error showing an image with JSON on Android

How about, I'm trying to show images in a ImageView from a database mysql on Android. It shows me the following: org.json.JSONException: Value <html><body><script of type java.lang.String cannot be converted to JSONO...
asked by 10.05.2016 / 19:05
1
answer

ajax response variable returns undefined in symfony

In a login page I want to click on the submit button to validate the entered data against an LDAP server and if everything is ok then proceed to the standard submit form. In the button click event I have the following code in php ) I have th...
asked by 11.05.2016 / 15:18
1
answer

Problem with Ajax and Html

Very good, I'm starting with all these technologies, HTML AJAX PHP JQUERY etc Forgive if you see a lot of "garbage" barely took 2 weeks with all this. These are my two pages, logeo.php which is responsible for checking that there is a user...
asked by 05.05.2016 / 23:49
1
answer

Warning: mysqli_stmt :: bind_param (): Number of variables does not match number of parameters

Hello everyone I am using mysqli and I have the following error:    Warning: mysqli_stmt :: bind_param (): Number of variables does not match   number of parameters in prepared statement on line 8 Please, if you can help me solve it, than...
asked by 21.04.2016 / 19:41
2
answers

Why is my browser updated when uploading a file with ajax, jquery and php?

I send the data by ajax and valid with jquery, then I receive the data in the php, to upload the archivo uso copy() or move_uploaded_file() and when the file is uploaded the browser is updated and what I need is for it to remain a...
asked by 27.04.2016 / 16:49
2
answers

How to update a MySQL database using php and Javascript?

I have a page like the one above. It is assumed that if I give new, in the upper part to the left, let me create a new user with your name, phone, email, etc. If I give the zafacon I should delete the entire line of my page and my database...
asked by 29.04.2016 / 04:37