This problem's driving me crazy since yesterday. I have a table consist of 5 columns: kode_barang (item ID), nama_barang (name of item), qty (quantity), harga_beli (price), jumlah (total). User can input 2 items. This is the code of the form: <HTML> <?php include "koneksi.php"; ?> <form action="insert3.php" method="POST"> <table id="theTable" border="1"> <thead> <tr> <th> Kode Barang</th> <th> Nama Barang </th> <th> Qty </th> <th> Harga Beli </th> <th> Jumlah </th> <tr> </thead> <tbody> <tr> <td type="text" name="kode_barang" id="kode_barang1"/readonly> <?php mysql_connect("localhost","root",""); mysql_select_db("skripsi_1"); $result = mysql_query("select * from input_data_barang"); $met = "var kode_barang = new Array();\n"; echo '<select name="kode_barang" onchange="changeValue1(this.value)">'; echo '<option></option>'; …

Member Avatar
Member Avatar
+0 forum 1

**problem** How to get cost per hotel and flight then add it in duration cost table based on flight date automatically . **Details** suppose i write flight date 26/07/2017 alexia 8days 04/08/2017 it must automatically get cost from hotel price table and price from flight then add it in duration cost table so that what query i write to get cost per hotel and flight when write flight date then insert it to duration cost table my database CREATE TABLE program( ProgramID int primary key not null, ProgramName varchar(30) ) GO insert into program values(1,'Alexia'),(2,'Amon'),(3,'Sfinx') GO CREATE TABLE ProgramDuration( DurationNo …

Member Avatar
Member Avatar
+0 forum 1

I want to search a combination of values from any given field that has a list of items. Example: id | nume | denumiri_job 1 | my_list | chair,apple,snake,can How can I search for 2 or more elements from the field list? For example if I input in my search bar the values 'chair snake' I want to get all the rows that contain these 2 items in the denumiri_job column. Right now I can only get the results if I use one search key at a time. So far this is how I managed my code: $query = "SELECT …

Member Avatar
Member Avatar
+0 forum 7

In my registration page i want user to select multiple images and upload it i am saving images name in database for reference. I am successful in uploading single images in database and can also show image in view but now i have problem in uploading multiple images. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ini_set("display_errors",1); class Update_profile extends CI_Controller { var $file_path; //for original image var $file_path_url; //for thumbnails function __construct() { // Call the Model constructor parent::__construct(); $this->load->library('session'); $this->is_login(); $this->load->helper(array('form', 'url')); $this->load->model('Edit_profile'); //return full path of directory //Make sure these directory have read and write …

Member Avatar
Member Avatar
+0 forum 8

i have this code..,. i dont see what's wrong why its only working on the first record of LOOP of X set serveroutput on size 30000; DECLARE VTEMP NUMBER; VPARENT NUMBER; BEGIN FOR X IN ( SELECT TEMPLATE_ID, TYPE_ID, TYPE_KIND, RECORD_ID FROM RT_RECORDS WHERE TEMPLATE_ID = 106 )LOOP DBMS_OUTPUT.PUT_LINE('TYPE_ID X :' || X.TYPE_ID ); FOR Y IN ( SELECT OBJECT_ID, OBJECT_TYPE CHILD_TYPE, LEVEL, PARENT_ID, RPA_N.GETTYPEID(PARENT_ID)PARENT_TYPE FROM NODES N CONNECT BY PRIOR N.OBJECT_ID = N.PARENT_ID START WITH N.OBJECT_ID = 18464078 ) LOOP DBMS_OUTPUT.PUT_LINE('TYPE_ID :' || X.TYPE_ID || ' PARENT_ID: ' || Y.PARENT_TYPE ); IF X.TYPE_ID = Y.PARENT_TYPE THEN -- CHILD SELECT …

Member Avatar
Member Avatar
+0 forum 1

Hello DaniWeb Community, I'm making an online store and am wanting make a way to calculate the shipping the way I've got it at the moment is using [this](https://developers.auspost.com.au/apis/pac/getting-started). However, it isn't good for multiple items. So if one item is $10 and another (smaller) item is $5, so the total is (obviously) $15. Only thing is, you could probably fit both items in a satchel and only have to pay the $10 (or so). So how do I go about doing this? like how do other online stores do it? I would rather not have customers pay for more …

Member Avatar
Member Avatar
+0 forum 3

Need to know steps of generating HTTP request multiple times in python

Member Avatar
Member Avatar
+0 forum 2

I find the inability to make multiple playlists too limiting in this otherwise wonderful program. What is the next best program just for viewing movies in many formats that supports multiple playlists? I am willing to pay a reasonable amount. Thanks.

Member Avatar
Member Avatar
+0 forum 7

HI: I had a archived copy of my email on the local system. Due to some problem my C: drive of the system got corrupted and i had already taken one copy of my archive folder. After reinstalling the OS and Lotus Notes now i have kept the archive copy in the same folder DATA\Archive\batabasename. Now when i try to access the archive it gives message a " DATABASE is corrupted --- cannot allocate space"" I tried to move the archived copy of the DB to server and applied following commands but non of them worked.. Load compact databasename -c …

Member Avatar
Member Avatar
+1 forum 3

hi, The jsp page has multiple check boxes (retrieved from DB),.... [CODE] <input type="checkbox" name="selecttype" value="<%=rs2.getString("description") %>"/> [/CODE] I've read these values in to servlet page using [CODE] String[] selecttype=request.getParameterValues("selecttype"); [/CODE] the 'selecttype' now contains only selected checkbox values. but i want to retrieve values of unchecked checkboxes. Pls help me with this. ThanQ, Beanboy :-)

Member Avatar
Member Avatar
+0 forum 7

hi... im trying to update one of the columns of my table with a multiple data without deleting the previous data.. by the way im using vb.net and mysql... does anyone has an idea? or a codes perhaps. its like, the previous data being inserted will just merge from the new inserted one.

Member Avatar
Member Avatar
+0 forum 2

Hello DaniWeb Users, I need some help how I can change a file name but not the file extension. Doing it one by one is pain. mv file1.gr2 test1.gr2 doing this will need a lot of time. I been searching for an hour find . -name "*.gappedPeak" -exec sh -c 'mv "$1" "${1%.gappedPeak}.bed"' _ {} \; this command change the file extension but not the file name. Please help me how I can change file name. Actually I would just cut some of the file name Example of my file: Test_Sample_d01_2016f00300.gr2 Test_Sample_d01_2016f00600.gr2 Test_Sample_d01_2016f00900.gr2 Test_Sample_d01_2016f01200.gr2 Test_Sample_d01_2016f01500.gr2 .... Test_Sample_d01_2016f30000.gr2 I would like …

Member Avatar
Member Avatar
+0 forum 5

Hi, I am working with Winform Grid .As per my requirement , i need to use two control in single grid cell. please suggest how i can achive it. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

form: <form> <table> <tr> <th>Subject</th> <th>Description</th> <th>Final Grade</th> <th>Remarks</th> </tr> <!-- You can loop this one, depends on the subjects. Subject must not be encoded. Baka lalagyan ng maling subject. I just base it to your design so naging ganito. --> <tr> <td><input type="text" name="grades[][subject]" id="grades[][subject]" value="" /></td> <td><input type="text" name="grades[][description]" id="grades[][description]" value="" /></td> <td><input type="text" name="grades[][grade]" id="grades[][grade]" value="" /></td> <td><input type="text" name="grades[][remark]" id="grades[][remark]" value="" /></td> </tr> <tr> <td><input type="text" name="grades[][subject]" id="grades[][subject]" value="" /></td> <td><input type="text" name="grades[][description]" id="grades[][description]" value="" /></td> <td><input type="text" name="grades[][grade]" id="grades[][grade]" value="" /></td> <td><input type="text" name="grades[][remark]" id="grades[][remark]" value="" /></td> </tr> <tr> <td><input type="text" name="grades[][subject]" id="grades[][subject]" value="" /></td> …

Member Avatar
Member Avatar
+0 forum 6

hi all, pls help... this is my code from where i can select multiple values and post... but it is not displaying the selected values in multiple dropdownlist... how can i solve this???? <?php $loc_con1 = array(1=>'ALL','Andaman and Nicobar Islands','Andhra Pradesh', 'Arunachal Pradesh','Assam', 'Bihar','Chandigarh','Chhattisgarh','Dadra and Nagar Haveli','Daman and Diu','Delhi','Goa','Gujarat','Himachal Pradesh','Jammu and Kashmir','Jharkhand','Karnataka','Kerala','Lakshadweep','Madhya Pradesh', 'Maharashtra','Manipur','Meghalaya','Mizoram','Nagaland','Orissa','Pondicherry','Punjab','Rajasthan','Sikkim','Tamil Nadu','Tripura','Uttaranchal','Uttar Pradesh','West Bengal'); $i=0; ?> <select name="loc_considered[]" multiple="multiple"> <?php for($j=1;$j<=(count($loc_con1)-0);$j++) { if($loc_con1[$j] == $loc_con[$i]) { echo '<option value="'.$loc_con1[$j].'" selected="selected">'.$loc_con1[$j].'</option>\n'; $i++; } else { echo '<option value="'.$loc_con1[$j].'" >'.$loc_con1[$j].'</option>\n'; } } ?> </select>

Member Avatar
Member Avatar
+0 forum 4

Hi I have around 20 python files. Each time I run these files in the terminal this form one after another : python a.py python b.py python c.py python d.py python e.py python f.py python g.py . . . (I have provided general file names here) This process takes lot of time. Is it possible to run these file together one after another through any script..? If possible, then how..? Please provide the code if possible... I came to know through few sites that, using bash script we can do that.. I don't know how to implement it. I am …

Member Avatar
Member Avatar
+0 forum 16

$(document.getElementById("item1"), document.getElementById("item2")).click(function () { $(this).fadeOut(); }); <span id="item1">This is item 1</span><br /> <span id="item2">This is item 2</span> span#item1 { color: red; } span#item2 { color: green; } `span#item1` is affected. `span#item2` not, that means I made mistake in syntax. Is there a way to get it to work. I know exact IDs for items that I want to affect. https://jsfiddle.net/p3uofsru/1/

Member Avatar
Member Avatar
+0 forum 2

Hi I have some python file.i runs these file one by one as below on unix server. python f4761sk3.py python f4761sk2.py python f4761sk1.py python f4761se3.py python f4761se2.py python f4761se1.py python f4761pl3.py python f4761pl2.py python f4761pl1.py python f4761no3.py python f4761no2.py python f4761no1.py python f4761nl3.py python f4761nl2.py python f4761nl1.py python f4761ie3.py python f4761ie2.py python f4761ie1.py python f4761hu3.py python f4761hu2.py python f4761hu1.py python f4761gb3.py python f4761gb2.py python f4761gb1.py python f4761fi3.py This process takes so much time. Is it possible to run these file together through any script so that all file run automatically one after another. Is it possible ?then how? please provide …

Member Avatar
Member Avatar
+0 forum 6

Hi there, I have a class definition like : class Student{ String name; int sub1; int sub2; int sub3; //... } I have list of all students. I want to get count, average, min, max etc using IntSummaryStatistics. Below is the code for sub1: IntSummaryStatistics sub1Summary = students.stream().collect(Collectors.summarizingInt(s -> s.sub1)); I want to have same for all other subjects. Is it posible to have single line expression to do this? Or I will have to create different IntSummaryStatiscs object for each subject?

Member Avatar
Member Avatar
+0 forum 2

I know this sounds like a "Do my homework" question, but I am new to coding and am struggling to come up with a method to combine multiple RFT Files. The files contain around 3000/4000 characters. I want to initially open up a 'master' RFT file and then append multiple RTF files I have selected to this file. I have an array that stores all the filenames of the selected RTF Files. Any help appreciated. Thanks.

Member Avatar
Member Avatar
+0 forum 2

I need a ArrayList of Entertainment objects of some size. Then I need a menu that searches, adds, deletes, prints, and lastly quits this is a loop. I need the user to choose between Movie or TVShow my other classes to pass over to my constructors. Each menu option needs to be its own methods so I can't do a switch. Whatever the user puts in needs to go to a text file. I don't know where to begin anyhelp would be appreciated! My other classes /*Create a TVShow class that also extends Entertainment. Give it some attributes and methods. …

Member Avatar
Member Avatar
+0 forum 1

ive designa a script a bit like abay where multi vendor can sell there product and each will be pay in there specific paypal account on check out. my chanlange is how to allow multiple vendors to sell via your site and in return take a commission on sales on check out whithout holding on to the cash and later settle with seller.

Member Avatar
+0 forum 0

<form action="checkbox.php" method="post"> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="s">S</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="m">M</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="l">L</label> </div> <div class="checkbox"> <label><input type="checkbox" name="size[]" value="xl">Xl</label> </div> </form> here is my html code i want to selelct more then one checkbox, and it will fetch data from databse respectively from the selelct checkbox. please tell me what to do? here i dont want to use <form> tag.

Member Avatar
Member Avatar
+0 forum 2

I have this code that will display whatever that was checked in the checkboxes, but the problem is that this should be an Updating code and not just Adding information, would someone help me with this. Any help will be highly appreciated, thank you very much, it's for my thesis anyway so it's reall important for me. <?php define('DB_NAME', 'purchase'); define('DB_USER', 'root'); define('DB_PASSWORD', 'root'); define('DB_HOST', 'localhost'); $connection = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$connection) { die('Could not connect: ' . mysql_error()); } $result = mysql_select_db(DB_NAME, $connection); if (!$result) { die('Can't use ' . DB_NAME . ': ' . mysql_error()); } $userquery …

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I'm trying to get a python script to run base on the os release and if its physical or virtual machine. If its virtual the script will NOT run, but if its Physical the script will run base on the os release level. I'm a little bit confusing putting the second check for virtual. Can someone help me on this. Thank you. #!/usr/bin/env python import os import platform import sys import os.path os_release = platform.dist()[2] platform = os.system("dmidecode -s system-manufacturer") # RHEL5 if os_release == "Santiago": if platform == "IBM": os.system("cat /etc/redhat-release") else: print platform # RHEL6 elif …

Member Avatar
Member Avatar
+0 forum 3

I am working on a web app in Python (*using the Flask framework*). I have a post and photo table connected via ForeignKey, my problems: 1. **how can i return an empty image if image is empty**, and if not empty 2. **how do i select just one image from the list of images**. Here is the model: class Photos(db.Model): __tablename__ = 'photos' id = db.Column(db.Integer, primary_key = True) postid = db.Column(db.Integer, db.ForeignKey('post.id')) filename = db.Column(db.String) class Posts(db.Model): __tablename__ = 'post' id = db.Column(db.Integer, primary_key = True) title = db.Column(db.String(30)) photos = db.relationship('Photos', backref='user', lazy='dynamic') created_at = db.Column(db.DateTime, default=db.func.now()) status …

Member Avatar
+0 forum 0

i need help. my teacher told me to create a program on java gui that can send everything you input to notepad. then when you input another info in java gui. another notepad file should be made..

Member Avatar
Member Avatar
+0 forum 3

hi im attempting to add a multiple checkbox with a few options see html code <form method="post"> <table width="900"> <tbody> <tr> <td width="900"><input name="interests[]" id="option1" value="option1" type="checkbox">option1</td> <td width="900"><input name="interests[]" id="option2" value="option2" type="checkbox">option2</td> <td width="900"><input name="interests[]" id="option3" value="option3" type="checkbox">option3</td> </tr> <tr> <td><input name="interests[]" id="option4" value="option4" type="checkbox">option4</td> <td><input name="interests[]" id="option5" value="option5" type="checkbox">option5</td> <td><input name="interests[]" id="option6" value="option6" type="checkbox">option6</td> </tr> </table> <input type="submit" value="Show my Items" name="save"/> and heres the php <?php extract($_POST); if(isset($save)) { if(!empty($interests)) { echo "<h3>You have selected these items :</h3>"; echo "<ol type='A'>"; foreach($interests as $val) { echo "<li>"; echo $val; echo "</li>"; } echo "</ol>"; } else { …

Member Avatar
Member Avatar
+0 forum 3

Basically, I want to know that... I've two websites with better **SERP** experience and they are not taking any **duplicate contents**, by the way. Seemingly, They are going to fight among themselves just like they are competitor each other. Then what do you think?

Member Avatar
+0 forum 0

Hello, I have three tables in MySQL database which they are: employee, expenses and details. The details table is composite table between the expenses and employee. In the HTML form there is a table that will enter multiple data into details that will referenced with one expenses id. I could only insert one values from the row and did not insert the second row values. Could anyone help me or suggest a solution for me. $exp_id = mysql_insert_id(); $query2 ="INSERT INTO expenses_claim (claimant_date,total_bd) VALUES (now(), '$total')"; $result = mysql_query ($query2,$connect); $last_insert_exp_id = mysql_insert_id(); $query3 = "Insert INTO details (exp_id, emp_no, …

Member Avatar
Member Avatar
+0 forum 3

The End.