15,915,501 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by project virus (Top 93 by date)
project virus
31-Aug-13 2:34am
View
i tried but nothing is happened.is there any alternate solution for multiple href of same classes...?
project virus
31-Aug-13 2:31am
View
yes.but wait I have one more que.Can we use class instead of id..Because I want to use multiple href for same function.like
a href="" id="link1" class="linked" hi /a
$(".outputSpan").text($(".linked").text());
project virus
31-Aug-13 2:11am
View
thanks for the answer..I have one more que. How can we pass value using address using jquery.for ex.
<pre Language="HTML"><a href="#contactFormContainer" class="contact bottomlink" address="AB-Rocket">
More Question
if I want to print more question?
project virus
30-Aug-13 9:32am
View
Okie Dokie
project virus
30-Aug-13 9:20am
View
<span class="phone-missing">Please enter your phone number with country code</span> should be display when both fields are null and it should be numeric
project virus
30-Aug-13 9:13am
View
$(document).ready(function(){
//function for contact form dropdown
function contact() {
if ($("#contactForm").is(":hidden")){
$("#contactForm").slideDown("slow");
$("#backgroundPopup").css({"opacity": "0.7"});
$("#backgroundPopup").fadeIn("slow");
}
else{
$("#contactForm").slideUp("slow");
$("#backgroundPopup").fadeOut("slow");
}
}
//run contact form when any contact link is clicked
$(".contact").click(function(){contact()});
//animation for same page links #
$('a[href*=#]').each(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname
&& this.hash.replace(/#/,'') ) {
var $targetId = $(this.hash), $targetAnchor = $('[name=' + this.hash.slice(1) +']');
var $target = $targetId.length ? $targetId : $targetAnchor.length ? $targetAnchor : false;
if ($(this.hash).length) {
$(this).click(function(event) {
var targetOffset = $(this.hash).offset().top;
var target = this.hash;
event.preventDefault();
$('html, body').animate({scrollTop: targetOffset}, 500);
return false;
});
}
}
});
//submission scripts
$('.contactForm').submit( function(){
var elements = document.getElementsByClassName("phone");
var phone = '';
for(var i=0; i
project virus
30-Aug-13 9:12am
View
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Enquire Anything.We’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="phone">Phone</label><span class="phone-missing">Please enter your phone number with country code</span><br />
<input id="phone" class="phone" type="text" value="" name="phone[]" style="width:50px;" placeholder="Code" maxlength="5" /> <input id="phone" class="phone" type="text" value="" name="phone[]" maxlength="15" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="6" cols="6" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" önfocus="this.blur()" />
</form>
project virus
30-Aug-13 9:05am
View
yes but i want to display same msg for same span and also want to insert into database of same column via php
project virus
30-Aug-13 9:01am
View
We can not use id for multiple textbox.one id for one textbox.that's why I used class.To identify particular textbox i used document.getElementByClassname("phone");
project virus
28-Feb-13 1:45am
View
Can't I do it by using JOIN?
project virus
23-Oct-12 6:10am
View
thanks ankit.but can u plz tell me how to print it in array?
project virus
15-Oct-12 7:08am
View
Please paste tour whole code
project virus
15-Oct-12 7:06am
View
Try for JQuery
project virus
15-Oct-12 6:29am
View
Same Here
project virus
15-Oct-12 6:24am
View
why don't u try for delete query?
project virus
15-Oct-12 6:20am
View
which another language u r using..please discuss dis Que. briefly.
project virus
3-Oct-12 2:34am
View
not working properly means.. when I use above count query without GROUP BY it shows/display all record as main query... but last some pages are blank .. which not perfect.
but when I use COUNT query using GROUP BY it display only first page not other pages..
project virus
12-Sep-12 7:45am
View
Actually I got your point but i really don't know how to do it?so can you please tell me with my pagination coding??
project virus
30-Aug-12 2:24am
View
Deleted
What?Actually I have already vote for this answer.
project virus
14-Aug-12 2:37am
View
ajax is not working in this code
project virus
14-Aug-12 2:36am
View
But I have another one problem for the fetching data,
In my code.I have to first select the date using the submit botton for fetching time then after selecting the time again I have to press submit button which ll very irritating to the user of my s/w or program,Can you please tell me how should fetch the values of time using date picker without submit button.Do I need to use ajax?How?Here is my complete code...Please Help!!
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen">
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
window.onload = function(){
new JsDatePick({
useMode:2,
target:"inputField",
dateFormat:"%j-%M-%Y"
});
};
function fnPrintArea()
{
var DocumentContainer = document.getElementById('print');
var WindowObject = window.open('', "printarea",
"width=850,height=850,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");
WindowObject.document.writeln(DocumentContainer.innerHTML);
WindowObject.document.close();
WindowObject.focus();
WindowObject.print();
WindowObject.close();
};
function showUser(str)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","systemdate.php?inputField="+str,true);
xmlhttp.send();
};
</script>
</head>
<body>
<div id="main_container">
<div id="header">
<div id="logo">
<img src="/import3/images/logo.png" alt="" title="" border="0">
</div>
<div id="menu">
<ul>
<li>
Home
</li>
<li>
Edit
</li>
<li>
Search by CIExe.
</li>
<li>
Search by Date
</li>
<li>
Change Password
</li>
<li>
Logout
</li>
</ul>
</div>
</div>
<br/>
<form id="form1" name="form1" method="post" action="#">
Date : <input type="text" size="12" id="inputField" name="date" /><br />
1 ");
?>
Name of the CIExc. :
<select name="select1">
<option value="ALL">--- ALL ---</option>
</select>
Time Of Uploaded File :
<select name="select2[]" önclick="showUser(this.value)" multiple="true">
<option value="">--- Select ---</option>
".$row[time]."</option>"."<br/>";
}
echo "</select>";
?>
<input type="submit" name="submit" value="Find" />
</form>
<p>
project virus
14-Aug-12 2:17am
View
Solved this problem.Done !! very very thanks :)
project virus
14-Aug-12 2:12am
View
there is a warning Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Rank_tele1\systemdate.php on line 128 and select DISTINCT date,mobno,city,state,type,telecaller,time FROM import WHERE time IN('')OR date1='11-AUG-2012'
project virus
14-Aug-12 2:00am
View
Deleted
there is a warning
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\Rank_tele1\systemdate.php on line 128
and
select DISTINCT date,mobno,city,state,type,telecaller,time FROM import WHERE time IN('')OR date1='11-AUG-2012'
project virus
14-Aug-12 1:44am
View
why , SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; ?
project virus
13-Aug-12 6:37am
View
one more que.why \r is coming before name of telecaller like Sitara\r'
project virus
13-Aug-12 6:36am
View
(`id`, `srno`, `date`, `mobno`, `city`, `state`, `type`, `telecaller`, `date1`, `time`) VALUES
(0, 11, '27-Jul-2012', 9920050727, '', 'Maharashtra', 'ADMIN', 'Sitara\r', '7-Aug-2012', '12:49.PM'),
(0, 12, '27-Jul-2012', 9908606607, '', 'Andhra Pradesh', 'ADMIN', 'Sitara\r', '7-Aug-2012', '12:49.PM'),
(0, 13, '27-Jul-2012', 8891781257, '', 'Kerala', 'ADMIN', 'Snehal\r', '7-Aug-2012', '12:49.PM'),
(0, 14, '27-Jul-2012', 8291005163, '', 'Maharashtra', 'ADMIN', 'Sitara\r', '7-Aug-2012', '12:49.PM'),
(0, 15, '27-Jul-2012', 9722457600, '', 'Gujrat', 'ADMIN', 'Sitara\r', '7-Aug-2012', '12:49.PM'),
(0, 16, '27-Jul-2012', 8291495166, '', 'Maharashtra', 'ADMIN', 'Anuja\r', '7-Aug-2012', '12:49.PM'),
(0, 17, '27-Jul-2012', 9432014057, '', 'West Bengal', 'ADMIN', 'Anuja\r', '7-Aug-2012', '12:49.PM'),
(0, 18, '27-Jul-2012', 9421165840, '', 'Maharashtra', 'ADMIN', 'Anuja\r', '7-Aug-2012', '12:49.PM'),
(0, 19, '27-Jul-2012', 8904264089, '', 'Karnataka', 'ADMIN', 'Anuja\r', '7-Aug-2012', '12:49.PM'),
(0, 20, '27-Jul-2012', 8087863141, '', 'Maharashtra', 'ADMIN', 'Anuja\r', '7-Aug-2012', '12:49.PM');
project virus
13-Aug-12 5:55am
View
I have this one
$res1=mysql_query("SELECT DISTINCT time FROM import WHERE date1='$_POST[date]'");
while($row= mysql_fetch_array($res1))
{
echo "<option>".$row['time']."</option>";
}
echo "</select>";
?>
<input type="submit" name="submit" value="Find" />
$result=mysql_query("SELECT DISTINCT date,mobno,city,state,type,telecaller FROM import WHERE time IN ('$_POST[select2]]') OR date1='$_POST[date]'") or die(mysql_error());
//$result2=mysql_query("SELECT id,date,mobno,state,type,telecaller FROM temp1 WHERE date='$_POST[select]' OR telecaller='$_POST[select1]\r' ") or die(mysql_error());
print"<div id='print'>";
print"<center>List of Mobile Numbers for Date <font color="#FF00FF"><u> $_POST[date]</u> </font> <center> <br/>";
print"<table border='1' cellspacing='5' cellpadding='12'>
<tr bgcolor='#82CAFF'>
<th>Sr.No</th>
<th>Date</th>
<th>Mobile No</th>
<th>City</th>
<th>State</th>
<th>Type</th>
<th>CIExe.</th>
</tr>";
$srno1=0;
while($row=mysql_fetch_array($result))
{
$srno1=$srno1+1;
print"<tr>";
print"<td>" .$srno1. "</td>";
print"<td>" . $row['date'] . "</td>";
print"<td>" . $row['mobno'] . "</td>";
print"<td>" . $row['city'] . "</td>";
print"<td>" . $row['state'] . "</td>";
print"<td>" . $row['type'] . "</td>";
print"<td>" . $row['telecaller'] . "</td>";
print"</tr>";
}
print"</table>";
print"</div>";
echo"<br/>";
In above coding time has multiple values.
project virus
13-Aug-12 5:43am
View
but my id column is string not int
project virus
13-Aug-12 5:42am
View
Deleted
nut my id column is string not int
project virus
13-Aug-12 5:41am
View
mysql_fetch_array() expects parameter 1 to be resource is the error
project virus
13-Aug-12 5:24am
View
no sql query not working
project virus
13-Aug-12 4:43am
View
what is $options??
project virus
13-Aug-12 3:33am
View
huh, sorry dnt understand what u want say.
I have to retrieve values using that multiple options
project virus
10-Aug-12 7:15am
View
i m nt getting any error nt getting any o/p also
project virus
10-Aug-12 7:14am
View
sorry not get ur point.What I have to do?
project virus
10-Aug-12 7:04am
View
no,not working.Is there any problem getting in ajax code.
project virus
10-Aug-12 6:42am
View
No I took <select> tag in my original code
project virus
19-Jul-12 8:00am
View
what i have to do for it,please tell
project virus
19-Jul-12 7:59am
View
i have check results of uploaded file it's perfect
project virus
19-Jul-12 7:58am
View
Deleted
what i have to do for it,please tell
project virus
19-Jul-12 7:30am
View
Yes I have seen location of file again and again but it doesn't work..
How should I confirm that proper permissions are in place to access the file.
project virus
19-Jul-12 7:28am
View
NO IT'S NOT WORKING
project virus
17-Jul-12 4:06am
View
yes thanks..i got solution
project virus
17-Jul-12 3:30am
View
now do u have solution?? if not I have to lough... :-)
project virus
17-Jul-12 3:21am
View
<img src="C:\xampp\htdocs\import\images\1.jpg" alt="Disable to show image"/>
is the code...
project virus
17-Jul-12 3:15am
View
thanks ssd... but i am trying for image which is not displaying on some browsers.on some browsers it displaying .what i have to do if i want to display it for any browsers...
project virus
17-Jul-12 2:56am
View
no actually that image shown on another.What I have to do if i want to show it on any browser??
project virus
17-Jul-12 2:30am
View
what i have to do for it?
project virus
16-Jul-12 6:26am
View
That i have to do all those changes in option.php??
project virus
16-Jul-12 4:53am
View
Deleted
project virus
13-Jul-12 6:33am
View
Yes I have data in temp1 table.I checked it.it runs successfully in phpmyadmin
project virus
13-Jul-12 6:00am
View
Ya i am not getting any data from database?why?
project virus
13-Jul-12 5:22am
View
How isset fuction i have to use in above code
project virus
13-Jul-12 5:12am
View
ya definitely it's working.but I want to fetch that data related with date
project virus
13-Jul-12 5:06am
View
no.I am not getting this error.but I also not getting output
project virus
13-Jul-12 4:56am
View
no i am not getting output may be there is another error in coding
project virus
12-Jul-12 8:13am
View
but it will show the data in descending order:
like: 1
2
3
4
I want my data as
id : 4
3
2
1
project virus
12-Jul-12 7:57am
View
Yes I know that ... But Your query does not useful to me.
Because I just want above format by inserting a row in database table not for selection of rows??
Cal I insert that rows after selecting it in a new table?? Can I use ORDER BY MIN(id) instead of using ORDER BY LOWER(name)
project virus
12-Jul-12 3:25am
View
I dont want to select it i want to store that data in that format
project virus
12-Jul-12 3:13am
View
but i want to change that default setting.I mean that id should be display in asceding order.by default it is in descending order
project virus
12-Jul-12 3:11am
View
yes you are right
project virus
11-Jul-12 4:30am
View
but I want duplicate entries of only one column
project virus
11-Jul-12 4:13am
View
sorry.I want those result from query.
project virus
11-Jul-12 4:10am
View
but mobno is a part of group by clause..it give me the same value of only 'mobno'
project virus
11-Jul-12 3:33am
View
I solved it
project virus
10-Jul-12 8:44am
View
ok sir, thanks for the help. I will try it..
project virus
10-Jul-12 3:45am
View
SORRY FOR YOUR INCONVENIENCE but please try to solve my proble:: what is wrong with the following.i m trying again and again but i can't..
CREATE PROCEDURE curdemo( ) BEGIN DECLARE CURSOR SELECT DISTINCT no
FROM emp
FOR each@no = nO
SELECT top1@name = name
FROM emp
WHERE no = @no
ORDER BY name
UPDATE emp SET name = @name WHERE no = @no CLOSE cur1;
project virus
10-Jul-12 3:29am
View
declare a cursor select distinct no from emp
for each @no=no
select top 1 @mastername=name from emp where no=@no order by name
update emp set name=@mastername where no=@no
what is this top1
project virus
10-Jul-12 3:21am
View
can i use php code for my problem??
project virus
10-Jul-12 3:18am
View
which condition i have to write in the If...Else statement..?
project virus
10-Jul-12 3:06am
View
I m getting error in this code while creating procedure..
CREATE PROCEDURE curdemo()
BEGIN
DECLARE done INT DEFAULT
FALSE;
DECLARE cur1 CURSOR FOR
SELECT name FROM sample;
DECLARE CONTINUE HANDLER FOR
NOT FOUND SET done=TRUE;
OPEN cur1;
read_loop:LOOP
FETCH cur1 into a;
IF done THEN
LEAVE read_loop;
END IF;
END LOOP;
CLOSE cur1;
END;
project virus
10-Jul-12 2:49am
View
i m getting error
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[no] FROM sample)' at line 1 for following querry..
CREATE TEMPORARY TABLE dist AS (
SELECT distinct [no]
FROM sample
)
project virus
10-Jul-12 2:27am
View
its not working...
project virus
10-Jul-12 2:08am
View
How should I have to use LIMIT between the CURSOR
project virus
10-Jul-12 2:01am
View
then I have to declare here two cursors?? like cur1,cur2;
project virus
10-Jul-12 1:56am
View
CREATE PROCEDURE curdemo()
BEGIN
DECLARE done INT DEFAULT FALSE;
DECLARE a CHAR(16);
DECLARE cur1 CURSOR FOR SELECT name FROM emp;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;
OPEN cur1;
read_loop: LOOP
FETCH cur1 INTO a;
IF done THEN
LEAVE read_loop;
END IF;
END LOOP;
CLOSE cur1;
END;
is this write for CURSOR???
project virus
10-Jul-12 1:47am
View
:-)
project virus
10-Jul-12 1:25am
View
which cursor I have to use Fetch?close?open?declare??
project virus
10-Jul-12 1:24am
View
Deleted
which cursor I have to use Fetch?close?
project virus
10-Jul-12 1:22am
View
do i have to insert values in that temporary table?
project virus
10-Jul-12 1:12am
View
sounds good i will definitely try it..
project virus
6-Jul-12 5:56am
View
what i ve to do in above coding?
project virus
6-Jul-12 5:54am
View
k thnks
project virus
6-Jul-12 5:53am
View
sorry i dnt knw how to use it
project virus
6-Jul-12 5:39am
View
how to split the string before saving to database
project virus
6-Jul-12 5:36am
View
Ya I thnk so but this not work...'|' seperator used in csv
project virus
6-Jul-12 5:22am
View
Thanks but now I got solution.
project virus
25-Dec-11 12:13pm
View
acually i have done the attendance of employee in vb.net but i have to retrieve only month from ms-Access table do u know the query for it?
project virus
12-Dec-11 10:14am
View
Yup i know it but what should i have to do while execute it.
project virus
10-Dec-11 0:01am
View
which mistake??
project virus
8-Dec-11 4:34am
View
Sorry I can't get it.Can you please explain it.
project virus
8-Dec-11 4:22am
View
Deleted
sorry I don't got it.Can you explain Please.
Show More