Hi Friends, I have some dynamic text box in my screen, i have entered only one text field of the screen, after submitting the form all the values of the dynamic text box field is getting added in the database as 0 except the value i entered. i have used array method to add. But i want to add only the value i entered in the respective text box in my database [B]Note:-[/B] I have enclosed the screen for your reference Please help me to solve the issue [B]At present my output is[/B] 1. xxxx xxxx 1 60.00 2. xxxx …

Member Avatar
Member Avatar
+0 forum 6

Hi, I am newbie.I have seen projects where there are menus or links below it which are accessible as per the profile set for the logged in users.If there are A,B,C,D menus in project then some group of user will have only A and B Menu when logged in..while other group of users might have A,D or any other elements as per the website elements checked in their assigned profile.Profile might have entire set of fields in projects.Is there any framework or approach or some way through which we can achieve this functionlaity.Thanks in advance. :)

Member Avatar
Member Avatar
+0 forum 2

I'm trying to show a user JOptionPane where they enter x and y coordinates each in their own textfield, but I don't know how to store user input as ints. So I need to do something like: int xCorFromUser = xCor; int yCorFromUser = yCor; I have this code so far: JTextField xCor = new JTextField(); JTextField yCor = new JTextField(); Object[] fields = {"Enter X Coordinate:", xCor, "Enter Y Coordinate:", yCor}; JOptionPane.showConfirmDialog(null, fields, "Move Shape", JOptionPane.WARNING_MESSAGE);

Member Avatar
Member Avatar
+0 forum 7

I'm sure this is simple, but I'm having a time trying to figure out how to add two fields from two different tables together. <?php include_once('conn/db.php'); $query = "SELECT SUM(`sold`) AS total FROM veggies"; $stmt = $con->prepare( $query ); $stmt->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ extract($row); echo "<small><u>Plants Sold</u>: {$total}</small>"; } ?> The above code is just the total for one table field called sold. I'm trying to add "sold" from the "veggie" table to another table with the same field name "sold", except it's from the "flower" table. Essentially I'm shooting for sum(sold) from veggies + sum(sold) from flowers. If …

Member Avatar
Member Avatar
+0 forum 5

Hi, so i have an input text `<input type="text" name="numguest" id="number-of-guests">` and a button `Okay`. When a number say, 4 is entered into that text box and clicked okay, 4 of this text box `<input type="text" name="guest-name[]" placeholder="Guest Name" id="text-gname">` will appear. i tried: $("#okay").on("click", function(){ var num_of_guests = $("#number-of-guests").val(); alert(num_of_guests); var input_text = $("#text-gname").clone(); var target = $(".guests-tbody"); for(var i = 0; i < num_of_guests; i++) { var clone = input_text.clone(); clone.attr('id','style', ''); target.append(clone); Hide(); } }); but nothing seems to be happening except fot the alert and Hide function. TIA

Member Avatar
Member Avatar
+0 forum 3

This is a bit complex. I have two tables *bus_status* and *routes* routes has a foriegn key look up from bus_status called UnitAssigned in routes table and it is pulled from the BusNumber field in the bus_status table. Right now when I send an email and include the field in the message data it only provide the Bus number like this: Bus Number: 0114 This is actually the record ID number of this bus number and not the real bus number which is AAOH_221 I need it to show the actual. When I am creating reports I do this with …

Member Avatar
Member Avatar
+0 forum 3

hey guys. I have a contact form as so <form method="post" action="contact_data.php" class="add-contact-form"> <fieldset> <legend>Add Contact</legend> <p>Salutation : <select name="salutations"> <option value="" disabled selected>Choose</option> <option value="Datin">Datin</option> <option value="Datin Paduka">Datin Paduka</option> <option value="Dato Paduka">Dato Paduka</option> <option value="Dato'">Dato'</option> <option value="Dato' Seri">Dato' Seri</option> <option value="Datuk">Datuk</option> <option value="Datuk Seri">Datuk Seri</option> <option value="Dr.">Dr.</option> <option value="Haji">Haji</option> <option value="Hajjah">Hajjah</option> <option value="HM">HM</option> <option value="HRH">HRH</option> <option value="Miss">Miss</option> <option value="Mrs.">Mrs.</option> <option value="Mr.">Mr.</option> <option value="Pehin">Pehin</option> <option value="Professor">Professor</option> <option value="Raja">Raja</option> <option value="Tan Sri">Tan Sri</option> <option value="Tengku">Tengku</option> <option value="Tuanku">Tuanku</option> <option value="Tun">Tun</option> <option value="Tunku">Tunku</option> <option value="Ungku">Ungku</option> </select></br> <label class="salute-label">*If a person has many salutations, choose the highest form of salutation*</label> </p> <div style="height:0"><label>First Name …

Member Avatar
Member Avatar
+0 forum 2

How can I explain this. I have a list of postcodes in text files in an external url and I have a formfield. When people enter data into the form field, using javascript validation, I want the form to check if the entered data exists in any of the external postcode files. Is there anyway this can be possible ? if so can you please explain. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 4

Howdy, I'm a relatively experienced PHP developer looking to start building websites in Wordpress. I have previously built my own simple theme consisting of an index page that contains a bunch of posts and a template that is used for single posts with comments etc. I wouldn't say I'm very experienced with Wordpress but I wouldn't say I'm completely new to it. Anyway my question is better explained with an example. Say I was to build a website for a garage that does repairs, MOTs (An annual vehicle inspection for a vehicle to be declared road safe in the UK), …

Member Avatar
Member Avatar
+0 forum 4

hey hai eveybody help me in sql..i have three fields namely passengerGender1,passengerGender2,passengerGender3 in single table..now i want to take count for female and male separately from the three fields..it is posssible friends?can anyone help me???thanks in advance...!!

Member Avatar
Member Avatar
+0 forum 2

Hello. Can I add any data directly from table into data base using dreamviewer 8 by php? i mean in design view, i add table. then when i enter a data in the cell, so can i add this cell text to a field in DB table? Also how can i add extra row when someone clicks the link "Cleick here to add another row". The code is; <h1 align="center">PATIENT RECORD </h1> <p align="center">Enter New Patient Record. </p> <form action="" method="get"> <table width="559" border="1" align="center"> <tr> <td><label>Patient ID : <input type="text" name="pid" /> </label></td> <td><label>Patient Name : <input type="text" name="pname" …

Member Avatar
Member Avatar
+0 forum 2

i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT NULL, emailAddress VARCHAR( 60 ) ) ; and this is the php script. <?php /** * @author FreeUser * @copyright 2013 */ function is_digits($element) { return !preg_match ("/[^0-9]/", $element); } if ( isset( $_POST['submitted'] ) ) { $errors = array(); if ( is_digits( $_POST['txtPhoneNumber'] ) ) { $errors[] = $_POST['txtPhoneNumber']; …

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, I need some help, I would like to merge two cells together within a row only (e.g) in a CSV file using python. So far, I have 4 columns in the file, but now I would like to merge two cells in one, but I don't have any clue how to do it. Can someone help me please? Thank you I used the code below to write in the file. print "write in file" fobj = open(rawPathOutput, "w") outputLine = "%s;%s;%s;%s " % ( "Section", "Points", "Lines", "Polygon" ) fobj.write(outputLine + "\n") for row in range(iRows): for col …

Member Avatar
Member Avatar
+0 forum 4

For reason I won't bore you with, I need to update an archive database periodically with typically blocks of 100-300 records. Each record has 6 visible fields in the database. Frequently 4 of the 6 fields have the same information in them for the whole block of data. For a good reason I do this by creating the required number of empty records in the database for the required block of data then manually editing each record. My intension was to complete the first record of the block, and then create a program that would read that record and then …

Member Avatar
Member Avatar
+0 forum 8

Hello, I want to display the fields that were updated. When a user edits their information, example; "FIRST NAME:John LAST NAME: Stih Update to:UPDATE users SET firstname = '$firstname', lastname = '$lastname' FIRST NAME: John LAST NAME: Smith I would want it to print "You updated your Last name"

Member Avatar
Member Avatar
+0 forum 3

So i have this table: numb_1 | numb_2 | numb_3 ------------------------ 5 | 5 | 5 1 | 5 | 5 2 | 2 | 3 5 | 3 | 6 5 | 4 | 7 how do i find the most common value in the 3 fields? so for the example above it would give me 5

Member Avatar
Member Avatar
+0 forum 3

Hi,i´m having a terrible time to discover how can i create masks to some field. Like for example,i would like that when someone fills a phone field,would appear (00)xxxx-xxxx, and such. I already tried to make a javascript function,but it seems that it doesnt work with EXT,because the field is a <ext:numberfield> and somehow the function doesn´t get the id from the field.I tried also some coolite plugin and didn´t work also, and also a tag called <rich> that seemed easy but somehow it´s not supported. Any ideas? thanks!

Member Avatar
+0 forum 0

ok what i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code i am using doesnt seem to be doing anything could anyone spot it and tell me why it is not working for me my code is [CODE] con.Open() cmd.Connection = con cmd.CommandText = " Val(TQTY.Text) * Val(TUP.Text)" cmd.ExecuteNonQuery() cmd.Dispose()[/CODE]

Member Avatar
Member Avatar
+0 forum 2

I am a web developer who has just had PHP thrust upon me. I have created a login-protected site and have put a timeout script on each page which redirects the user back to the login page if they have left the site idle for a certain period of time. In Opera and Safari it works great but in Firefox the login page still has the login credentials in the text fields, so anyone could just press "login" and log right back into the site, which sort of defeats the purpose. Exhaustive Google searches have turned up nothing. Any advice …

Member Avatar
Member Avatar
+0 forum 2

Anyone can help me how to get data from one page to other page? here code : [CODE] <form action="" method="post"> <input type="hidden" name="id" value="<?php echo $id; ?>"/> <div> <p><strong>ID:</strong> <?php echo $id; ?></p> <strong>Nik: </strong><font class="important">*</font><input type="text" name="nik" value="<?php echo $nik; ?>" /><br/><br/> <strong>Name: </strong><font class="important">*</font><input type="text" name="firstname" value="<?php echo $firstname; ?>" /><br/><br/> <strong>Alamat: </strong><font class="important">*</font><input type="text" name="alamat" value="<?php echo $alamat; ?>" /><br/><br/> <strong>Company: </strong><font class="important">*</font><input type="text" name="lastname" value="<?php echo $lastname; ?>" /><br/><br/> <strong>Department: </strong><font class="important">*</font><input type="text" name="departemen" value="<?php echo $departemen; ?>" /><br/><br/> <strong>Telephone: </strong><font class="important">*</font><input type="text" name="telephone" value="<?php echo $telephone; ?>" /><br/><br/> <strong>Mobile: </strong><font class="important">*</font><input type="text" name="mobile" value="<?php …

Member Avatar
Member Avatar
+0 forum 8

Hello! can you give me some ideas on how I can make the field values to field names?

Member Avatar
Member Avatar
+0 forum 3

dear all i have 2 tables, one is project table and another replies table. [ICODE]"SELECT * FROM project, replies WHERE replies.member_id=$_SESSION[member_id] AND project.project_id=replies.project_id ORDER BY project.project_id "; [/ICODE] the above code gives me all , but I need the latest updated replied in each project id I tried [CODE]SELECT * FROM project INNER JOIN replies ON project.project_id=replies.project_id WHERE replies.member_id=$_SESSION[member_id] GROUP BY replies.project_id ORDER BY project.project_id ";[/CODE] it gives me the unique project id however it does now show the latest trainer replies. I have a date column in database does it helps?

Member Avatar
Member Avatar
+0 forum 2

Hello masters! I have a project and need a bit of your help. I would like to access/get values from certain fields from a database and assing that value to a variable. Database is included into my project along with DataSet. Is there any simple way to access certain field? Roughly, something like: String myString = ""; Database db = "C:\myDatabase.accdb"; myString = db.Tables["Table1"].Row[0].Cells[1];

Member Avatar
Member Avatar
+0 forum 7

Is there any way to execute a wordpress plugin's call tag [CODE][pluginname=parameters] [/CODE] from custom fields? Actually I'm trying with a function and then calling it from the template: [CODE]<?php if ( function_exists('get_custom_field_value') ){ get_custom_field_value('my custom field', true); } ?>[/CODE] but my result is the plugin call tag [CODE][pluginname=parameters][/CODE] . Tell me that is possible, please ;) Thanks!

Member Avatar
Member Avatar
+0 forum 1

Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, you have to add all the fields that you want to fillout FIRST before entering you data in those fields. I believe its not logical to do that. So pls help me to modify this script. thanks! [CODE]<html> <head> <title></title> <script language="javascript"> fields = 0; function addInput() { if (fields …

Member Avatar
+0 forum 0

Hi, I am very new to working with php and I need a little help getting the fields from my form divided into two rows and properly aligned when output to the user. [B]Function:[/B] This is a Client Profile type of program. A form is displayed to the user and the fields are pre-populated with client's current data from a MySQL DB. The user can then edit the form fields and use the submit button to UPDATE the corresponding data in the DB. [B]Problem:[/B] I am trying to split the form fields into two separate cells in a row inside …

Member Avatar
Member Avatar
+0 forum 5

Hi everyone, I'm working on a summer coding project with few friends from school and we have a design issue that we need some input on.(The language is Java) We have for example a 2D vector class called Vector2. It has two properties float X, and float Y. When I was learning Java I was always told that these should be private and have getter and setter methods. The debate is now that if I want to say add up the x components of two vectors and set that to the x component of another vector we now have a …

Member Avatar
Member Avatar
+0 forum 5

Hi, I have a MySQL DB and I am trying to set up a report page. To do so I need to be able to add the data in 6 or 7 fields into a single field for use in a summary report. How can I do that? SUM() seems to consider only one field at a time. For example, if I had a zoo database with the following fields: Date| Lions| Tigers| Bears 1/1 | 2 | 3 | 2 1/2 | 1 | 0 | 2 1/3 | 0 | 2 | 3 I would want to generate …

Member Avatar
Member Avatar
+0 forum 1

Hello, I hope somone can help me. I have a form that a user use to search for their pay, and it will dispay it for them as both with dependents and without. Right now they can search and it will display their pay, but it displays it as two seperat rows. so it will display the pay in both the with and without section for the 'with' and then it does the same for the 'without'. I have a database that has 2 tables sorted_zipmhaYY and bahwYY. I would like to have it show 1 record that shows how …

Member Avatar
Member Avatar
+0 forum 3

Hello Everyone, I have this small system that i developed for a company that is basically a Skill Map for the employee's, so in the following image will show the search of the employee's skills through the Family, in the following image the users does a search of the family and it will show all the employees which have learned a manual of that family: [url]http://www.daniweb.com/forums/attachment.php?attachmentid=20347&stc=1&d=1301518355[/url] So there is another form which is called IDO(SkillMap3.jpg) [url]http://www.daniweb.com/forums/attachment.php?attachmentid=20349&stc=1&d=1301518949[/url] Which are all the Manuals under each family Example [QUOTE] Manual,Revision,Family ENSAMBLE DE FRENO LADO DE SERVICIO,1,TANDEM OMNI & WABCO PRUEBA DE FUGA A …

Member Avatar
+0 forum 0

The End.