hai yup790 i couldnt understand properly
can you explain what your requirement is ?
so that we will hep you
hai yup790 i couldnt understand properly
can you explain what your requirement is ?
so that we will hep you
place the following code after line 16
echo "<option value='".$row['po']."'>".$row['name']."</option>";
as arti18 said i dont know what your are going to place into your combobox
if you go like that then your database values will be plcaed into the combox
let me know if this is your answer or not
happy coding
make (or) store your boolean variable value into an php array as follows
$out_val = array("result"=>'your value here');
echo json_encode($out_val);
and read this value in your script code by using Json.parse() as follows
success:function(e){
var actual = JSON.parse(e);
alert(actual.result)
}
check it once by making changes in your php file as well as in script code
check whether the alert box gives your desired result or not
let me know the status after updating with the code above
happy coding
i think , its nothing but grouping related elements in a form (or) a page
if you want some mote information about fieldset element please go through the bellow URL
http://help.dottoro.com/ljmubtsb.php
(it also contains related examples also)
happy coding
hai Violet_82 do as bguild said in his post
it will solve your problem
i tried it and got the solution
and make this thread solved if you get your answer
happy coding
As bguild said
take one more variable for sum_of_all_elements
and add all columns values of each row to this variable (in side for loop) like as
total variable
what i mean is
sum_of_all_elements += nums[r][c]
thats it
hai code739,
your code is not working properly once i delete a row
if you dont mind ,can you check your answer once by deleting one row?
for achieving your task we should consider one thing like as delete operation
in your case , for deleting a row you took the support of checkbox
similarly for setting text into corresponding textbox when the selection is made in respective dropdownbox we should consider the same thing otherwise there is no way to put text into textbox
i think you got my point
i made some changes in your code to insert value into textbox when the selection is done in DropDownBox as well as the appropriate check box is enabled
make changes accrodingly if you interested to change
<SELECT name="country" onchange="insertVal(this.options[this.selectedIndex].innerHTML)">
...... your option values
</SELECT>
and add the following script yo your script
function insertVal(rtn_val) {
try {
var table = document.getElementById("dataTable");
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
if(rowCount <= 1) {
// remove this logic if you dont need
}
row.cells[1].childNodes[0].value = rtn_val;
}
}
}catch(e) {
alert(e);
}
}
check it once
have you tried anything before?
if yes post your code here so that we will help you
can you please explain your problem clearly?
use Math.abs() instead of abs() because there is no default abs() method in js
for that you have a query like count(*)....... something like this
or you can write some user_defined query to get the unique customers also
i think thats not a good way to store no.of customers in database (as of my knowledge)
i think its a bad idea to store no.of results in a seperate column. why because it has to modify seperately each and every customer is added to database as well as remove from the database.internally it increases no.of operation on a table
can you tell me the reason for your requirement?
so that i give the proper response to your question
can you check is there any problem at line no: 30 in your html with php page?
i mean here
<td>
<a name="country" id="country" href="<?php $_SERVER['PHP_SELF']?>?ans=<?php echo $respartnerlist['dealercode'];?>" onclick="getPartner(this.value)">Customer list</a>
</td>
place this logic in findCusomer.php
<tr>
<td>List of customers of each partner from partner list</td>
</tr>
<tr>
<td>Dealer Code</td>
<td> </td>
<td>Country</td>
<td> </td>
<td>Dealer</td>
<td> </td>
<td>Discount (%)</td>
<td> </td>
<td>Currency</td>
<td> </td>
<td>Customer list</td>
<td> </td>
</tr>
<tr>
<td>-------------</td>
<td> </td>
<td>-------------</td>
<td> </td>
<td>-------------</td>
<td> </td>
<td>-------------</td>
<td> </td>
<td>-------------</td>
<td> </td>
<td>------------------</td>
<td> </td>
</tr>
<?php
// retrive your data here
?>
<tr>
<td><?php echo $result['customer_number'];?></td>
<td> </td>
<td><?php echo $result['customer_name'];?></td>
<td> </td>
<td><?php echo $result['currency_code'];?></td>
<td> </td>
<td><?php echo $result['discount'];?></td>
<td> </td>
<td><?php echo $result['dealercode'];?></td>
<td> </td>
</tr>
<?php
// close the database connection here
?>
check it once
in php , i think use
array_unique() method which returns unique entries of the given array
and then you will get the index values of those unique entries by using array_keys()
method and finally you have to display the remaining indexes for your second requirement
check it once and let me know if you have any confusion in my solution
i have a solution like as follows
i mean append those two list options values any of the sign like "$" (or) "," like any other charecter as follows in myfirst.php
results = list1_values."&".list2_values;
echo results;
spilt the response coming to the jquery by using the charecter(whatever you used in myfirst.php )
after this you will get the result whatever you want and then place the results in different <select> tag values as you need by using jquery
i hope you understand the solution
let me know if you have any doubts in my clarification
suggestion only:
instead of calling moretext() for every 4 secs in your code
try to make the textbox disabled by setting property **"disabled = true" **like as follows
<INPUT type="text" name="mytext" value="" size="30" disabled = "true">
you have done perfectly to place random number into textbox
i dont know why you are asking this question.
could you tell me the reason?
we can get the your desired output by comparing value of element variable like as follows
what i mean is just check whether the element variable contains the following charecters just follow the code once (remove line no 25 and place the following code)
if(buffer.toString().contains(",") || buffer.toString().contains(".") || buffer.toString().contains("!") ){
element = buffer.reverse().toString();
element = element.substring(1,element.length())+ element.charAt(0);
}else{
element = buffer.reverse().toString();
}
i am just saying the code is very helpful for your requirement
and innerHtml is mainly used for placing values into the cell not for putting values into <input> type elements
for that <input> type elements you may repeat line no (27 to 31) whatever you have posted in your code
try it once
let me know the status
pls first you run the code by giving the whatever input you want
then check the output once
there is no problem with try and catch blocks
i think you got the answer
replace the following statement (at line no 21 in BufferedReader version )
StringTokenizer tokens = new StringTokenizer(data,"!.,", true);
with the bellow statement in BufferedReader version
StringTokenizer tokens = new StringTokenizer(data);
juct check it once
(the only difference is in BufferedReader version you have passed some delimiters to parse the input string but in Scanner version you used default delimiter)
you have to do 2 things
1 create second frame constructor by passing first frame reference as shown bellow
JFrame1 nf=new JFrame1(first_frame_ref);
and there(i mena in second frame) you can call first frame to display whenever you want
thats it
why did you add this mysql_error() to $sql variable at line 40
i think this would be the one of use case to you requirement
and let me know the status of my answer
as above said this line
mysql_result($result, 8)
gives some error......... right
can you check for me the total no of members in your Members table?
(by manually)
i think that Members table does not contain as much as you specified in the query as above
check it once pls
and
let me know the status
in the main post at line 21 (test.php)
if ($newpassword = $confirmnewpassword) {
are you assignning the vallues or for comparing the values of
($newpassword and confirmnewpassword)
let me clarify once pls
can you tell me how you are going to display sprites on your applet?
try the bellow url (for adding new row to the table and remove code for check box creation in that)
http://viralpatel.net/blogs/dynamically-add-remove-rows-in-html-table-using-javascript/
it gives the simple solution to your problem .
(there is no need of adding new row to <tbody> and <tbody> to <table> and <table> to <body> )
and make stylling your components as it is
no no not like that
try as follows
{ text: "<a href='#'> View Products </a> " },
so it places hyper_link with text instead of only text (i think)
otherwise
try to do as GliderPilot said
i think you have to use
pos.getX(),pos.getY()
methods for the where it is located
(or)
pos.getLocation()
check it once for your desired outout
and let me know the status after changing your code
check the following url and then go for live demo of this example
(it may give a solution for your problem)
http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html
just check it once by placing
<a href="#">View Products</a>
instead of
View Products
and let me know the status
declare a array with a name "$my_global"
reading individual values of those 3 arrays and make a new array as follows
$my_array = array("name"=> $array_1[$i],"profession"=>$array_2[$i],"SL"=>$array_3[$i]);
(in your case ,loop this for 3 times)
and combine the $my_array to $my_global
by doing this way i think you will get your actual output
please try it once
i think there is no way to do like that ( w.r.t div's point of view)
and i got your solution from here
http://help.dottoro.com/ljcvtcaw.php
please refer this site for more code about the requirement if possible
you haven't mentioned your actaul problem is
we can achieve this by using "contenteditable" property and the following java script code
<div contenteditable="true" onclick="document.execCommand('selectAll',false,null)">
Place your text here
</div>
you can add your styles to this div as usual
let me know if you have any problem
this link may help you a lot
http://gaps-blog.blogspot.in/2008/12/controlling-tabindex-in-java-swing.html
check it once
yes veedeoo try with that
hai amiyar,
you said it works for one id and not working for other id
i think thats not correct
check your database details with the second product id by manualy if it shows or not
so that i can give proper answer for your question
but the logic is correct for one id and it works for 100 id's too
tutorialspoint.com is also one of the best site for learners
try once
hai amiyar
there is no mistake in your code but you are appending the product_id to varia ble j thats it after the first line of while loop look at once there
$j .= $rs['prod_id'];
thats the reason you are getting 526527 instead of 526 and 527.
i think you got the point
go ahead by changing your code
remove line 6
and place
echo "<td colspan=2>".$row['name'].",".$row['price']."</td>"
instead of what you have written at line 5
check it once by making those changes
let me know the status and make this thread solved if you get the exact answer
can you explain clearly what the actual requirement is?
use the following url for sending mails (if that is your requirement is)
http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/
http://viralpatel.net/blogs/sending-emails-in-java-using-gmail-id/
it is posible by using load mysql command (which imports csv file data into database)
you will get the description of load command From the follwing url
http://dev.mysql.com/doc/refman/5.1/en/load-data.html
http://support.modwest.com/content/6/253/en/how-do-i-import-delimited-data-into-mysql.html
providing values to drop down list use like as follows
<?
// php code that gets data for drop down list
?>
<option value= "<? dropdown data?> "> <? dropdown data?> </option>
<?
// remaining code
?>
instead of
print("<option value=\"$idCat\">$cat</option>");
and check your answer by replacing this way
and let me know the status of your code
can you post error details what you are getting so far while running this function?
so that we try to slove your problem