Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<?php 
      
if(isset($_SESSION["email"]) && !empty($_SESSION['email'])){
if (isset($_SESSION["booked"]))  
?>
<form method="POST">
<div class="row">
  <div class="col-sm-6">
    <?php
	  $booked=$row["booked"];

    if ($booked=='No'){ ?>
      <input type="hidden" name="property_id" value="<?php echo $rows['property_id']; ?>">
    <input type="submit" class="btn btn-lg btn-primary" name="book_property" style="width: 100%" value="Book Property">
    <?php } else    {  ?>
    <input type="submit" class="btn btn-lg btn-primary" style="width: 100%" value="Property Booked" disabled>
 <?php } ?>


What I have tried:

$booked=$row["booked"];
i have error in this part i tried to debug but it is showing same error
Posted
Updated 30-Apr-21 2:18am
v2
Comments
Richard MacCutchan 30-Apr-21 9:14am    
There is no element in $row with the index value "booked".
W Balboos, GHB 30-Apr-21 14:07pm    
This is a re-post - DO NOT POST THE SAME QUESTION MORE THAN ONCE!
If you need to, fix the original.

Also, you php/HTML mixture is an extraordinary mess and likely will not work the way you think it will.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900