- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
11 Posted Topics
**form.php** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: "dd/mm/yy" }); $("#datepicker2").datepicker({ dateFormat: "dd/mm/yy" }); }); </script> </head> <body> <form method="post" action="conn.php"> Name <input type="textbox1" name="Name[]" value=""><br> Start date <input type="textbox6" name="Startdate[]" id="datepicker"><br> End date <input type="textbox7" name="Enddate[]" id="datepicker2"><br> Item <input type="textbox8" … | |
**i want little help.how can i insert the multiple data to database?** <?php require_once('Connections/iventori.php'); ?> <?php $id = $_GET['idpinjaman']; $colname_Recordset1 = "-1"; if (isset($_GET['idpinjaman'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['idpinjaman'] : addslashes($_GET['idpinjaman']); } mysql_select_db($database_pinjaman, $pinjaman); $query_set1 =sprintf("SELECT * FROM pemohon a,pinjaman b WHERE a.id_pemohon=b.id_pemohon AND b.id_pinjaman='%s'", $colname_Recordset1); $set1 = mysql_query($query_set1, … | |
**reg.php** <?php require_once('Connections/iventori.php'); ?> <?php $currentPage = $_SERVER["PHP_SELF"]; //$tarikh=gmdate("j F y",time()+(28800)); $maxRows_Recordset2 = 10; $pageNum_Recordset2 = 0; if (isset($_GET['pageNum_Recordset2'])) { $pageNum_Recordset2 = $_GET['pageNum_Recordset2']; } $startRow_Recordset2 = $pageNum_Recordset2 * $maxRows_Recordset2; mysql_select_db($database_pinjaman, $pinjaman); $query_Recordset2 = "SELECT no_inventori,model FROM inventori WHERE peralatan='laptop'"; $query_limit_Recordset2 = sprintf("%s LIMIT %d, %d", $query_Recordset2, $startRow_Recordset2, $maxRows_Recordset2); $Recordset2 = … | |
**here is my coding. i want user unable to select data in select box once it is selected in the first select box(hide/remove).i add the javascript. but its not working. any solution?** **peralatan.php** <?php require_once('Connections/iventori.php'); ?> <?php $id = $_GET['idpinjaman']; $colname_Recordset1 = "-1"; if (isset($_GET['idpinjaman'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? … | |
i have a problem to create a booking page. i currently develop a lend/borrow hardware system. my friend want me to include a list of items that still available and not been borrowed yet based on date chosen before user want to continue booking( ex: hotel reservation 'check availability'). i … | |
**I want to fetch data from database and show in multiple check box value e.g id_number of laptop in 5 checkboxes with different values but really dont get how to do this..hope anyone can show me easy code in php** ![]() | |
i have a problem to display available hardware for my system.. any example of coding or suggestion for me to settle this? | |
<?php // Make a MySQL Connection mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("borrow") or die(mysql_error()); $TextBox1 = implode(', ', $_POST['Name']); $TextBox6 = implode(', ', $_POST['Startdate']); $TextBox7 = implode(', ', $_POST['Enddate']); $TextBox8 = implode(', ', $_POST['Item1']); $TextBox8 = implode(', ', $_POST['Item1']); $TextBox8 = implode(', ', $_POST['Item1']); $TextBox9 = implode(', ', $_POST['Item2']); $TextBox9 … ![]() | |
Re: **3.php** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker({ dateFormat: "dd/mm/yy" }); $("#datepicker2").datepicker({ dateFormat: "dd/mm/yy" }); }); </script> <?php function peralatan() { $conn = mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("borrow") or die(mysql_error()); $query = "SELECT item FROM inventori ORDER BY item"; $result = … | |
db name: orange table: Name, Position, Department, Telephone, Purpose, Startdate, Enddate, Item1, Item2 **input.php** <html> <body> <form method="post" action="conn.php"> <table width="500" border="1"> <tr> <td>Name</td> <td><input type="textbox1" name="Name[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Position</td> <td><input type="textbox2" name="Position[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Department</td> <td><input type="textbox3" name="Department[]" value=""></td> <td> </td> <td> </td> </tr> <tr> … | |
**currently arrival date and departure date format is m/d/y..can i change the date format to d/m/y??** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker(); $("#datepicker2").datepicker(); }); </script> </head> <body> <form method="post" action="4.php"> arrival date <input type="textbox6" name="arrivaldate[]" id="datepicker"><br> departure date <input type="textbox7" name="departuredate[]" … |
The End.