- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
9 Posted Topics
Re: This page has code to send mail from GMail SMTP. Copy the code and run it. If necessary add some concatenation operator. [url]http://jspcodes.elementfx.com/codesnippets/viewsnippets.php?id=7&category=1[/url] | |
I want to send an SMS from my server i.e from my webpage. I need to know do i need any device related to this or can it be done with programming. Is SMPP is a protocol like SMTP or SMPP is a hardware. please reply me quickly. | |
Re: If the problem is solved, please close the thread. Else see this [url]http://jspcodes.elementfx.com/codesnippets/viewsnippets.php?id=3&category=1[/url] | |
Re: AJAX Response XML can also be used i think, but i am not sure. I have done for getting an XML remotely. For more codes, go to <URL SNIPPED> | |
Re: The best way is AJAX. But if you are trying with some static content, you may use DOM....document.getElementById("").innerHTML="<b>http://jspcodes.elementfx.com</b>": | |
Re: Modify query like this. SELECT *,count(questionid) as count FROM questionbank where questionid='"+ID group by questionid If you want that count to be executed as different query, use different result set. The count will give the answer For more code snippets <URL SNIPPED> | |
Re: [CODE]query="select * from login where username='"+username+"'and usertype="+usertype+""; ps=con.prepareStatement(query); rs=ps.executeQuery(); while (rs.next()) { if (rs.getString("password").equals(password)) { session.setAttribute("userid", rs.getString("userid")); session.setAttribute("usertype", rs.getString("usertype")); session.setAttribute("loginstatus", "1"); if(rs.getString("userid").equals("0")) { %> <jsp:forward page="adminhome.jsp"></jsp:forward> <% } if(rs.getString("usertype").equals("2")) { String query1="select designation from emp_work_profile where userid="+session.getAttribute("userid")+""; ResultSet rs1=null; PreparedStatement ps1=null; ps1=con.prepareStatement(query1); rs1=ps1.executeQuery(); while(rs1.next()) { if(rs1.getString("designation").equals("6")||rs1.getString("designation").equals("7")) { }[/CODE] This works … | |
Re: This sample code connects from DB2 to WSAD . <URL REMOVED> |
The End.