Re: jquery update database
The mysql API is deprecated. Use mysqli.
To see the actual query ...
$qry = "SELECT * FROM house WHERE id = $id";
echo $qry;
.. and paste what displays into the mysql client to debug.
> $id = trim($_REQUEST['name']);
Always run such input through mysqli_real_escape_string.
You always need to poll for errors in any function call that can fail, ie
$conn = mysqli_connect(...) or exit( mysqli_connect_error() );
...mysqli_query(...) or exit( mysqli_error($conn) );
Subject
Written By
Posted
Re: jquery update database
March 23, 2015 01:22PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.