Audrey87 Posted June 7, 2018 Report Share Posted June 7, 2018 i pretty much understand the use of brackets i'm stuck on why a single bracket would be used inside <?php } ?>. code from crud video lesson : <?php if ($id != '') { ?> <input type="hidden" name="id" value="<?php echo $id; ?>" /> <p>ID: <?php echo $id; ?></p> <?php } ?> Quote Link to comment Share on other sites More sharing options...
administrator Posted June 7, 2018 Report Share Posted June 7, 2018 Hi, Your code doesn't look right. PHP code-blocks always start and end like so: <?php echo '<p>Hello World</p>'; ?> So this is incorrect: 1 hour ago, Audrey87 said: <?php } ?> Quote Link to comment Share on other sites More sharing options...
Audrey87 Posted June 8, 2018 Author Report Share Posted June 8, 2018 this is in the records.php for ben falks crud lesson.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.