I am creating an administration panel with Modals, I need to get the id to change the records in the database, I have chosen to give value to a paragraph from the click on the edit button, however I can not get the value, I get the following error:
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\wamp\www\
The code is the following ...
$id = ".$('.sliderId').html().val().";
$conn = mysqli_connect('localhost','root','','360');
$sql = "SELECT * FROM imagenes_slider WHERE id = '".$id."'";
$result = mysqli_query($conn,$sql);
The slider to change has the id: <p id='sliderId'>1</p>
Any ideas?