Posts

Imp Facts for development in php 1 allways use id, name in form fields 2 when create submit botton allways gave id and name( same) and veluse(show on botton) 3 form action = (page redirect after submit data), method = post and encrypt type (for any file upload ) 4 if(isset($_POST['addnewmovie']) && !empty($_POST['addnewmovie']=='add new movie')) always $_POST['use form botton id'] && addnewmovie ==' use velue of form botton' 5 When we send id for edit operation send fatch id from db
IMP How to do insert edit and delete on same page 6 When we do insert, fetch, edit on same page do insert and fatch as previous in data fetch table provide collom for edit botton <form action="future_movies.php" method="post" enctype="multipart/form-data"> <input type="submit"  id="editm" name="editm" value="Edit" placeholder="Movie Name" required=""> <input type="hidden"   id="idedit" name="idedit" value="<?php echo $data['id'];?>" placeholder="Movie Name" required=""> </form> Then After Fatch data from DB when we click on edit botton in data fatch table. <?php if(isset($_POST['newedit']) && !empty($_POST['newedit'])) { $sql1="select * from screen where id = '".$_POST['newedit']."'"; $row = mysql_query($sql1); whil...
                       How to add slider in website  1 add the java script in head section <head> <script type="text/javascript"> var wall=0; function slider() { images=new Array(); images[0]='image/promo-students.jpg'; images[1]='image/promo-students.jpg'; images[2]='image/promo-students.jpg'; images[3]='image/4.jpg'; images[4]='image/4.jpg'; images[5]='image/4.jpg'; images[6]='image/7.jpg'; images[7]='image/8.jpg'; images[8]='image/9.jpg'; images[9]='image/1.jpg'; document.getElementById('img_sl').src=images[wall]; if(wall<9) wall++; else wall=0; setTimeout(slider,1000); } </script> </head> and then add this code in <body> section <body onLoad="slider()"> and then put the slider id on location where you want to run slider images. <div class="middle">     <im...
How to create payment integration with paypal on your website. 1 First of all create add to cart process according to client requirements(all calculation/amounts and all that related to client business.) 2 all final amount show on your web application/software. 3 last and final step is payment integration (payment transfer to client bank account from software/web application to client bank account) 1 go to paypal website and create script according to client requirements. I am also provide you a direct link of paypal for create script. https://www.paypal.com/in/cgi-bin/webscr?cmd=_flow&SESSION=tSzjyrSKKCsAbeHxp7RAesZ8QiizNLHBlybNSOtmY-s2DoWY46PWHbdtVZS&dispatch=5885d80a13c0db1f8e263663d3faee8d4fe1dd75ca3bd4f11d72275b28239088 4 after create script its time to install this script on your web application/software you just install this script after all operations done on your web application. 5 then customise the script according to your client requirement and the ...
How To Create Shoping Cart in php 1 create a Db and create a table like movie and fields are id, name, description image, price etc and insert data. 2 Create web page for show your products from db. 3 provide a hiper link on your product image or provide botton the code is           <a href="products.php?id=<?php echo $id; ?> and redirect after clicking on products.php page and also send product id with this code                     ?id=<?php echo $id; 4 then we go to products.php page and we get product id in url just like below. http://localhost/movies/products.php?id=1 we create a table for fetch all details from db like name, price and provide a select box in form and form send to addtocart.php page after click on add to cart botton justlike  below. //                              Code o...
How To Send Website Form Data to Email.  //                                                   Code for send form data                                  // <form name="contactform" method="post" action="send_form_email.php"> <table width="450px"> <tr>  <td valign="top">   <label for="first_name">First Name *</label>  </td>  <td valign="top">   <input  type="text" name="first_name" maxlength="50" size="30">  </td> </tr> <tr>  <td valign="top"">   <label for="last_name">Last Name *</label>  </td>  <td valign="top">   <input  type="text" name="la...
How To fetch data from db and apply pagination to fetch table. (http://www.phpeasystep.com/phptu/29.html)   1 Add The code on your php page //                                              code for applying pagination        //         <?php /* Place code to connect to your DB here. */ //include "connection.php"; // include your code to connect to DB. $tbl_name="adsence"; //your table name // How many adjacent pages should be shown on each side? $adjacents = 3; /*    First get total number of rows in data table.    If you have a WHERE clause in your query, make sure you mirror it here. */ $query = "SELECT COUNT(*) as num FROM $tbl_name"; $total_pages = mysql_fetch_array(mysql_query($query)); $total_pages = $total_pages['num']; ...