Hai,
i am using ajax to get looping value but it will get first value only …
$sql = 'SELECT * from booking_master
INNER JOIN *****
WHERE booking_master.user_id=:id';
$query = $conn->prepare($sql);
$query->bindParam(':id', $id);
$query->execute();
if($query->rowCount())
{
while($row11 = $query->fetch(PDO::FETCH_ASSOC))
{ ?>
<tr>
<td> <?php echo $row11['user_name']; ?> </td>
<input type="hidden" name="userid" id="userid" value="<?php echo $row11['user_id']; ?>">
<input type="text" value="<?php echo $row11['plot_id']; ?>" name="plotid" id="plotid">
<td> <a href="#" onclick="functscheme()" > Select Plot</a>
</tr>
<?php
}
}
is there any suggestion please…?