Click here to Skip to main content
14,927,528 members

Comments by Arun-23 (Top 46 by date)

Arun-23 6-Apr-16 7:54am View
   
',,,demo, ,xxxx,,,yyy,,,' this is in the field of a table
Table -> 'test' has field name called 'A' which has ',,,demo, ,xxxx,,,yyy,,,'

A
--
,,,demo, ,xxxx,,,yyy,,,
Arun-23 29-Jun-15 3:24am View
   
whether its solves r not but its not a right way to do
Arun-23 11-Apr-15 1:31am View
   
Deleted
use html2pdf or MPDF converter
Arun-23 2-Feb-15 4:52am View
   
date is a predefined type in mysql don't use it as a field name try different name for date
Arun-23 23-Dec-14 23:12pm View
   
select ".$total_4bhk." from project_master; this is the query did u get value in $total_4bhk variable??
Arun-23 18-Nov-14 6:00am View
   
just for example i had said you sample.. need to display for above mail like bgcolor font color for message
Arun-23 18-Nov-14 5:46am View
   
yeah i had send but <div style=\"background:red;height:100px;width:100px;display:block;\">sample</div> like this it displays insted of sample
Arun-23 18-Nov-14 5:24am View
   
i had tried in the mail but it taking as a string not as tag

$message = "<div style=\"background:red;height:100px;width:100px;display:block;\">dfsdf</div>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1". "\r\n";
Arun-23 24-Oct-14 3:01am View
   
thanks for ur help :)
Arun-23 24-Oct-14 2:33am View
   
yes same has inside the loop
Arun-23 24-Oct-14 2:11am View
   
i had used but it displays only last value
Arun-23 25-Aug-14 0:11am View
   
yeah check it out define("DB_PASSWORD,"sandeep"); to define("DB_PASSWORD","sandeep");
Arun-23 8-Jul-14 4:36am View
   
use post method (or) store it in db and fetch it in main.php :)
Arun-23 12-May-14 7:23am View
   
what have u tried??
Arun-23 23-Jan-14 23:44pm View
   
in fetched result
while($row=mysql_fetch_array($res))
{
echo "<tr>";
echo "<td align='center' width='200'>" . $row['roll_no'] . "</td>";// which rollno is wrong in red color
echo "<td align='left' width='200'>" . $row['name'] . "</td>";//which name is wrong in blue color
echo "</tr>";
}

echo "</table>";
Arun-23 23-Jan-14 2:20am View
   
its working its listing out unmatched list of 2 columns emp_no & name i want to highlight this two columns according to result is this possible..
Arun-23 23-Jan-14 1:20am View
   
hi Peter Leow thanks for your help..
Happy Coding :)
Arun-23 16-Jan-14 4:37am View
   
then hw to solve this?? :( is there any other method to do the same..
Arun-23 16-Jan-14 4:17am View
   
no it may vary some has 3 some has even 5 and even some has 10 too its not constant that's the pbm..
Arun-23 16-Jan-14 3:12am View
   
o/p should look like for roll no:1 $b(500, 2000, 1500)for roll no:2 $b(1000, 750)like for all.. $B value is not constant for each rollno it may vary.. so the o/p comes like this rollno 1: 230000,228000,226500 and for rollno 2:229500,228750 like wise for all rollno.. note each rollno values should subtract with $a not on previous rollno value.
Arun-23 9-Jan-14 6:42am View
   
it doesn't work on windows ravi..
Call to undefined function money_format()
Arun-23 3-Jan-14 3:17am View
   
above code works but i need to store booked details in db how to do tat can u help me..
Arun-23 14-Dec-13 4:22am View
   
updated now how to get current date and time
Arun-23 14-Dec-13 3:58am View
   
yeah date_time
Arun-23 13-Dec-13 3:37am View
   
what have you tried..??
Arun-23 28-Nov-13 1:47am View
   
Mysql db phpmyadmin
Arun-23 24-Nov-13 9:04am View
   
yeah..
want to select year,batch from tb1 and want to join on tb2 in both the table it has rollno. year and batch should match according to the rollno in tb2 example in tb1 1,2,3,4 is rollno and in tb2 2,4 is rollno so corresponding year and batch should join for 2 and 4 rollno only in tb2 i hope u got.
Arun-23 24-Nov-13 9:02am View
   
Not unique table/alias -- tb1 like this error

want to select year,batch from tb1 and want to join on tb2 in both the table it has rollno. year and batch should match according to the rollno in tb2 example in tb1 1,2,3,4 is rollno and in tb2 2,4 is rollno so corresponding year and batch should join for 2 and 4 rollno only in tb2 i hope u got..
Arun-23 24-Nov-13 8:18am View
   
its not working it has pbm in clause my pbm is i have 2 tables in tb1 it has many columns on tat i want to select year,batch and want to join on tb2 in both the table has rollno. year and batch should match according to the rollno in tb2 like already in tb1
Arun-23 23-Nov-13 1:09am View
   
Try this..

SELECT order_id,product_name,qty
FROM orders
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'

http://www.tech-recipes.com/rx/1475/save-mysql-query-results-into-a-text-or-csv-file/
Arun-23 22-Nov-13 0:28am View
   
why i want to use this code in loop because i had tried same code with onkeypress event it updates the give value but if i press 1 its doents shows in balance box if i press another number for ex same another 1 it shows 1 in balance box.. it need to show before another key is pressed is there any solution..
Arun-23 22-Nov-13 0:07am View
   
is there any possibility to use same code in loops like for while etc..
Arun-23 20-Nov-13 1:58am View
   
Deleted
look below i had updated qus
Arun-23 20-Nov-13 1:57am View
   
Deleted
look below i had updated qus
Arun-23 20-Nov-13 1:41am View
   
The value for 2nd 3rd and 4th box is fixed as 100 50 50 if the user enters 300 the value should split it into 100 50 50 and remaining 100 should be in balance box...

suppose if the user enters 100 it should fill the first box other box should be zero..

suppose if the user enters 50 it should fill the second box other box should be zero.. like tat i had tried the following code but it has error...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
window.update = function() {
var one = document.getElementById('one'),
two = document.getElementById('two');
three = document.getElementById('three');
four = document.getElementById('four');
five = document.getElementById('five');



two.value = parseInt(one.value) - 100;

//if(two.value < 100)
// {
three.value = parseInt(two.value) - 50;
//}

//if(two.value > 100)
//{
// three.value = parseInt(two.value) - 0;
four.value = parseInt(three.value) - 50;
//}
five.value = parseInt(three.value) - 50;
}



function checknumber(txtid) {
var mynumbervalue = parseFloat((txtid).value);
if (mynumbervalue > 100) {
txtid.value = "0";
alert("Please try again. Values must be between 0-100...");
}
if (theid.value < 0) {
txtid.value = "0";
alert("Please try again. Values must be between 0-100 ...");
}
}
</script>
</head>
<body><br><p align="center">
Enter the amount to be paid<input id="one" type="text" önChange="update();" /><br>
Book fees<input id="two" type="text" name="txt" önchange="checknumber(this)"/> 100<br>
uniform fees<input id="three" type="text" /> 50<br>
Bus fees<input id="four" type="text" /> 50<br>
balance fees<input id="five" type="text" /> <br>

</p>
</body>
</html>
Arun-23 19-Nov-13 2:18am View
   
Deleted
hi frnd plz help me out

Below code works fine but how to do validation for this it copys the given value to next textbox.. how to do validation for copyed textbox plz help



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="jquery.numeric.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
var count = 0;
function copy_data(val, event) {
if (event.keyCode == 13) {
if (count <= 4) {
var a = document.getElementsByClassName('copy_to')[count];
a.value = val.value;
val.value = '';
count++;
}
}
}
<!--
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;

return true;
}
//-->

function checknumber(txtid) {
var mynumbervalue = parseFloat((txtid).value);
if (mynumbervalue > 1000) {
txtid.value = "0";
alert("Please try again. Values must be between 0-65. ...");
}
if (theid.value < 0) {
txtid.value = "0";
alert("Please try again. Values must be between 0-65 ...");
}
}


</script>
</head>
<body bgcolor="#CCCCCC">
<form action="" method="post">
Enter the amount to be paid
<input type="text" id="copy_from" onKeyUp="copy_data(this,event)" id="txt" önkeypress="return isNumberKey(event)"/>
general room rent
<input type="text" class="copy_to" disabled class="txt" id="thefirstnumbervalue" önchange="checknumber(this)" /> Max 1000
a/c room rent
<input type="text" class="copy_to" disabled class="txt" id="thefirstnumbervalue" önchange="checknumber(this)" />Max 1000
2 cot a/c room rent
<input type="text" class="copy_to" disabled class="txt" />
3 cot a/c room rent
<input type="text" class="copy_to" disabled class="txt" />
total bill
<input type="text" class="copy_to" disabled class="txt" />
<input type="reset" value="reset"/> <input type="submit" value="submit"/>
</form>
Arun-23 18-Nov-13 22:20pm View
   
Deleted
yeah i got thanks rohan..
Arun-23 18-Nov-13 4:59am View
   
it works fine but i need to change one of the textbox for example if there 4 textbox it works for all 4 textbox but i need to fix the value of 25 to the 4th box how to do that plz help
Arun-23 18-Nov-13 4:01am View
   
thanks frnd..
Arun-23 18-Nov-13 2:34am View
   
.above code works fine but i need to give it for multiple textbox
Arun-23 16-Oct-13 1:54am View
   
thanks for ur comment..
Arun-23 31-May-13 7:59am View
   
what have u tried?? to sole this..
Arun-23 30-May-13 9:26am View
   
Deleted
string newString = newString.Replace("old", "new"); is this works for this
Arun-23 30-May-13 9:19am View
   
haha if u know plz try it
Arun-23 24-May-13 7:02am View
   
thank you..
Arun-23 24-May-13 6:48am View
   
thanks its working but only name is displaying.. need comment also what could to do for tat..