Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - mohsin1122

Pages: [1] 2 3
1
hi
i want to know that how to insert data into database through XML in php

like i have 3 fields in a from
e.g
First Name:
Last Name:
Phone:

plz tell me how to do that
plz help me

2
Thanks Bro Problem Solved
u helped me so much

3
thanks bro try your suggested code tomorrow as it's very late and me now going to sleep

4
bro i thing i have to use XML for this
so that when a tech is selected onchange function calls and i takes the tech id and give me its price

5
PHP Code: [Select]
<?php $eb "SELECT EmployeeID,FirstName,LastName,BillingRate FROM employees";
            
$res mysql_query($eb); 
	
	
  
$no_records mysql_num_rows($res);
	
	
  if(
$no_records 0)
              
?>
                <select name='select[]' id='select[]'">
                <option value=""></option>                      //no option Selected at first
	
	
	
	
<?php while($row =mysql_fetch_array($res)){
	
	
	
	
	
echo 
'<option value='.$row['EmployeeID'].'>'.$row['LastName'],$row['FirstName'].'</option>';
 }
 
?>

</select>
This is how i get the technicians from dbase i used EmployeeID as value because when the data is submited for further processing then at next step i again require the Selected Technician and if i assign salary as value then there may be many people taking same salary
thats why i dont use billingrate as value of employee.

6
bro there is 1dropdown list whose data came from dbase when i click on some particular value i want it to show its price in next field which is also placed in same table
plz see the image

when i select some technician in the picture below i want that i show the salary that the selected technician is geting multiply by the total number entered in the billing hour text field




example
if i select employee 1 it shows its salary in billing rate box and multiiply it with the total # of working hours
 and after that the form will be submited form further processing

7
bro dont mind but i think you did not understand my question or i m not able to make you understand

8
bro if i assign the price as value of snacks the how do i get that which item is selected on submission

9
hi
i want to know that how to get the value of product when select from sub menu
example:
if i select Snack from drop down menu it shows it's value in next column automaticaly by fetching it from database
plz help me urgentely

10
hi
i want to know that how to get the value of product when select from sub menu
example:
if i select Snack from drop down menu it shows it's value in next column automaticaly by fetching it from database
plz help me urgentely

11
Javascript & Ajax / Select a value and get next value
« on: May 20, 2012, 11:32:23 AM »
hi
i want that when i select some value from dropdown it shows the value associated with that dropdown value in next field plz help me

12
the sol for this is
Code: [Select]
<select name="[b]select[][/b]" id="[b]select[][/b]">
and
PHP Code: [Select]
print_r($_POST['select']);

and to find how many dropdown Boxes were used
we use
PHP Code: [Select]
echo count($_POST['select']);

13
EXAMPLE

Code: [Select]
<select name="select" id="select">
<option value="1">value1</option>
<option value="2">value2</option>
<option value="3">value3</option>
</select>

<select name="select" id="select">
<option value="1">value1</option>
<option value="2">value2</option>
<option value="3">value3</option>
</select>

<select name="select" id="select">
<option value="1">value1</option>
<option value="2">value2</option>
<option value="3">value3</option>
</select>

now tell me how to get the values of the above dropdown boxes

14
General PHP Help / how to get multiple listbox/selection box values
« on: May 19, 2012, 11:53:23 PM »
hi
i want to get multiple listbox value
like

<select name="" id="">
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>

<select name="" id="">
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>

<select name="" id="">
<option value=""></option>
<option value=""></option>
<option value=""></option>
</select>

like the above the list boxes
but all contain same info
on page 1 listbox is displayed and when user click on add
new list box will appear with same values as main listbox contain

Now plz tell me how to get the that how many list boxes are used and how to get their values


15
MySQL database / help req Check box............
« on: May 16, 2012, 08:48:49 AM »
hi
guyz
i am facing problem plz help me
i want that

click on link 2 view the image
http://i48.tinypic.com/4vnsr5.png

when i click on check box and then click on any of the button i takes id of that row and pass the id to next form and show the form accordingly
but if i click on button without checking the box it shows new form
plz help me hope you understand

Pages: [1] 2 3