Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"add records php"
Bootstrap 3.3.0 Snippet by
Deepashika
3.3.0
Preview
HTML
View Full Screen
Fork
Fork this
2.3K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>phptaab.blogspot.in</title> </head> <body> <form method="post"> <table> <tr> <td>Title:</td> <td><input type="text" name="title" class="form-control"/></td> </tr> <tr> <td>Author</td> <td><input type="text" name="author" class="form-control"/></td> </tr> <tr> <td>Publisher Name</td> <td><input type="text" name="name" class="form-control"/></td> </tr> <tr> <td>Copyright Year</td> <td><input type="text" name="copy" class="form-control"/></td> </tr> <tr> <td> </td> <td><input type="submit" name="submit" value="add" class="btn btn-success btn-lg"/></td> </tr> </table> <?php if (isset($_POST['submit'])) { include 'db.php'; $title=$_POST['title'] ; $author= $_POST['author'] ; $name=$_POST['name'] ; $copy=$_POST['copy'] ; mysql_query("INSERT INTO `example`(Title,Author,PublisherName,CopyrightYear) VALUES ('$title','$author','$name','$copy')"); } ?> </form> <table border="1"> <?php include("db.php"); $result=mysql_query("SELECT * FROM example"); while($test = mysql_fetch_array($result)) { $id = $test['BookID']; echo "<tr align='center'>"; echo"<td><font color='black'>" .$test['BookID']."</font></td>"; echo"<td><font color='black'>" .$test['Title']."</font></td>"; echo"<td><font color='black'>". $test['Author']. "</font></td>"; echo"<td><font color='black'>". $test['PublisherName']. "</font></td>"; echo"<td><font color='black'>". $test['CopyrightYear']. "</font></td>"; echo"<td> <a href ='view.php?BookID=$id'>Edit</a>"; echo"<td> <a href ='del.php?BookID=$id'><center>Delete</center></a>"; echo "</tr>"; } mysql_close($conn); ?> </table> <script src="bootstrap/js/bootstrap.js"></script> <script src="bootstrap/js/bootstrap.min.js"></script> </body> </html>
Related:
See More
Free Template
Bootstrap Wizard
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76