D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
lampp
/
htdocs
/
admin
/
Filename :
about.php
back
Copy
<!-- Button to trigger modal --> <a class="btn" href="#myModalabout" data-toggle="modal">Change About</a> <br> <br> <br> <!-- Modal --> <div id="myModalabout" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <h3 id="myModalLabel">Change About</h3> </div> <div class="modal-body"> <form method="post" action="aboutSql.php"> <?php require_once('db.php'); $result = $conn->prepare("SELECT * FROM about "); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['id']; ?> <table class="table1"> <tr> <td><label style="color:#3a87ad; font-size:18px;">TagLine</label></td> <td width="30"></td> <td><input type="text" name="about_tagline" placeholder="Tagline" value="<?php echo $row['about_tagline']; ?>" required /></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">About First Paragraph (Max 8 to 10 lines)</label></td> <td width="30"></td> <td><textarea type="text" name="about_desc" placeholder = "Description" rows="8" required> <?php echo $row['about_desc']; ?> </textarea></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">About Second Paragraph (Max 4-5 lines)</label></td> <td width="30"></td> <td><textarea type="text" name="para_sec" placeholder="Description" rows="5" required> <?php echo $row['para_sec']; ?>" </textarea></td> </tr> </table> <?php } ?> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button type="submit" name="Submit" class="btn btn-primary">Update</button> </div> </form> </div>