Posts

Showing posts from March, 2016

How to display images from database to Web page.

These are the step to which display the webpage image from the database Step 1. Create table in Database. CREATE TABLE IF NOT EXISTS `images` (   `id` int(11) NOT NULL AUTO_INCREMENT,   `name` varchar(50) NOT NULL,   `image` longblob NOT NULL,   PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; Step 2 PHP code <?php   //Database connection  set by config file include_once('include/config.php'); ?> <html>     <body>         <form method="post" enctype="multipart/form-data">         <br/>             <input type="file" name="image" />             <br/><br/>             <input type="submit" name="sumit" value="Upload" />         </form>         <?php ...

post multiple forms with a single button press with html

<div class="col-sm-12"> <h3>Information</h3> <div class="text text2"> <ul> <li><a href=".cash" data-toggle="tab">total </a></li> <li><a href=".cheque" data-toggle="tab">Bank</a></li> <li><a href=".neft" data-toggle="tab">Net Banking</a></li> <!--li><a href="#banking" data-toggle="tab">Net Banking</a></li> <li><a href="#debit" data-toggle="tab">Debit Card</a></li> <li><a href="#card"data-toggle="tab" >Credit Card</a></li> <li><a href="#atm" data-toggle="tab" >ATM</a></li> <li><a href="#imps"data-toggle="tab" >IMPS</a></li--> </ul> </div> </div>  <div class...