- session_start();
- include "connection.php";
- include "header.php";
- ?>
- class="right_col" role="main">class="">class="page-title">class="title_left">
Plain Page
class="title_right">class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">class="input-group">- "text" class="form-control" placeholder="Search for...">
- class="input-group-btn">
- ="btn btn-default" type="button">Go!
class="clearfix">class="row" style="min-height:500px">class="col-md-12 col-sm-12 col-xs-12">class="x_panel">class="x_title">Add Books Info
class="clearfix">class="x_content">- action="" method="post" class="col-lg-6">
class="table">
"text" placeholder="Books Name" class="form-control" name="booksname" required=""> Books Image"file" name="f1" class="form-control" required=""> "text" placeholder="Books Author Name" name="author" class="form-control" required=""> "text" placeholder="Books Publication Name" name="publication" class="form-control" required=""> "text" placeholder="Books Purchase Date" name="bpurchasedt" class="form-control" required=""> "text" placeholder="Books Price" name="price" class="form-control" required=""> "text" placeholder="Books Quantity" name="bqty" class="form-control" required=""> "text" placeholder="Available Quantity" name="aqty" class="form-control" required=""> "submit" name="submit1" class="btn btn-default submit" value="Insert Books Details" style="font-size: 16px; - font-weight: bold;
- color: black; width:100%;background-color:blue;">
- if(isset($_POST["submit1"]))
- {
- $tm=md5(time());
- $fnm=$_FILES["f1"]["name"];
- $dst=".books_image/.".$tm.$fnm;
- $dst1="books_image/" .$tm.$fnm;
- move_uploaded_file($_FILES["f1"]["tmp_name"],$dst);
- mysqli_query($link, "insert into add_books values ('','$_POST[booksname]','$dst1','$_POST[author]','$_POST[publication]','$_POST[bpurchasedt]','$_POST[price]','$_POST[bqty]','$_POST[aqty]','$_SESSION[librarian]')");
- ?>
- }
- ?>
- include "footer.php";
- ?>
Loading
Replies
Know the answer? Post it — somebody with the same question will find it here.