199,114 Archived Topics
Remove Filter ![]() | |
<html> <body> <%@page import="java.sql.*"%> <form method="post" action="csea.jsp"> <table border="1"> <tr><th>Reg No</th><th>Name</th><th>Present/Absent</th></tr> <% String pa = request.getParameter("pa"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc:odbc:Student"); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("select * from student_details"); while (rs.next()) { %> <tr><th><%=rs.getString("reg_no")%></th><th><%=rs.getString("s_name")%></th> <th><input type="text" name="pa"/></th> </tr> <% } st.executeUpdate("update csea set pa='"+pa+"'"); con.close(); … | |
So my code is simple html, I need it to select value when submit and if value= that number, submits something like: "Your number is 1"(without refreshing the page). Thanks a million! <form action=""> <select name="list"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <input type="button" value="Submit!" … | |
I'm getting user's profile picture along with their name from database and populating them in a div inside an anchor tag. The <a> tag is used so that we can click on any result and it takes to that user's profile page. I tried many codes to traverse the search … | |
I need to calculate chi squared cdf from x->infinity with n=255 degrees of freedom. I cannot seem to get it to work. You can find formulae for chi squared distributions using google. Here is my non-functional approximation code: double riemannsum(double(*fnc)(double),double dx, double xmin, double xmax) { double ret=0; double x=xmin; … | |
Hi! I am still fighting with outlook myappointment.RTFBODY method... I have found on some page that there is a workround which will give me a possibility to put there html text... I have tried it, and it wokrs - almost... webBrowser.CreateControl(); webBrowser.DocumentText = html; // HTML = HTML CODE Application.DoEvents(); … | |
In our webiste, After user signup, we send an email with acitivation link to their email address. We are using PHP mail() to send a simple email. Until this point, we have checked with yahoomail, gmail, hotmail.. it works fine. But yesterday, we were checking with the microsoft outlook. No … | |
Hi all I need help with the final part of my practice problems for class, if anyone who can show me what to do it would be greatly appreciated!! Write a program that incorporates the following functionality: 1) Prompt the user for a series of names and scores. 2) Store … | |
Hi, I am creating a VB.NET application that uses multiple lines of a text files as an array member. I came up with this code to create the array: Dim PSArray as string = Split(my.computer.Filesystem.readalltext ("E:\PS.txt") ) Now that I have created the array, I need to know how I … | |
Hey folks, Basically, I am trying to recreate Conway's Game of Life in java. I'm getting input from a file and using it as the first generation. I set up my array and have input working correctly. However, when I'm trying to use a method evaluate my array at certain … | |
Hi everybody, I'm trying to figure out how much memory was used for merge sort algorithm. I believe it is just one or two expressions, but can't come up with them by my own. public void mergeSort (T[] data, int min, int max) { T[] temp; int index1, left, right; … | |
I had my wordpress site up and running just fine but when I visited it recently I got the following error: > *Your PHP installation appears to be missing the MySQL extension which is required by WordPress.* I contacted the person who set up my database and was told > … | |
Hi, I'm receiving an error message but cannot solve the problem. Please give us a hand. Line 49 is -> `$record_set = $this->db_conn->query($sql);` Thanks in advance `Fatal error: Call to a member function query() on a non-object in C:\wamp\www\oop_singleton_pattern\class.db.php on line 49` <?php class DatabaseClass { CONST HOST = 'localhost'; … | |
ii m getting error message "class ,interface or enum expected.can anybody help me please thanks.." import javax.swing.*; import java.util.*; public class StudentBook { ArrayList students; public StudentBook() { students=new ArrayList(); } public void addStudent() { String name=JOptionPane.showInputDialog("Enter the name of the Student"); String rNum=JOptionPane.showInputDialog("Enter the Roll Number of the Student"); … | |
Hello. I am using a Swing worker to scan various tables during a can of a DB. While it is working the progress bar encompasses a busy icon. My question is how can I make the pointer take on that icon while a system scan is in progress? While the … | |
am total newbie to programming, apart from knowing SQL, the thing is i have been given a MYSQL database containing various information about kids diseases and a web interface written in php to create reports from the database that can be accessed via the interface. there are almost 25 different … | |
![]() | First, I apologize for posting a question as my first post but I'm in need of help since I couldn't solve this assignment. I wrote this simple code for an assignment last week. Today, the professor got to leave early so he left us an assignment which is related to … ![]() |
I have an assignment that I have been working on that is to modify an existing rock paper scissors program so that I ahve a method that sets the player name and a method that gets the player's name. I have created the methods however it does not allow me … | |
Hi, I don't find a solution for my problem. The important classes in my measurement program for this problem are: public partial class Preview : Form { //... private void Preview_Load(object sender, EventArgs e) { CreateZGC(numberOfGraphs); //Creation of the ZedGraphControls. ShowZGC(); // Adds the ZedGraphControls to the form 'Preview'. LabelGraph(); … | |
Hi, wondering can I get some help here please as this is incredibly frustrating. I have a database that contains files and I want to be able to search those files by putting in a ID number. In my databse my doc_id is the primary key, and I want the … | |
I've tried to define result many different ways, but I just can't get it to work. I know it's just something simple I am missing, but what is it? Can someone point me in the right direction? It currently says 'variable result might not have been initialized'.. but if I … | |
I have made a program in BlueJ using several attributes such as Arrays, Strings etc. I want to know a way in which I can execute this program in any Windows based application or any other platform than BlueJ so that it can be used by people. Any ideas? | |
I got an assignment which I don't even know how to start, I have a path to a driver & its name (Argv) and I need to create a code that will install this driver automatically. If anyone even has an idea how to make this code generic I would … | |
Why doesn't it display the output for mouseReleased and mouseClicked in console? Is there something that I am missing? import java.applet.*; import java.awt.*; import java.awt.event.*; public class MouseMotion extends Applet implements MouseMotionListener{ public void init() { addMouseMotionListener(this); } public void mouseDragged(MouseEvent e) { System.out.println("mouse is being dragged at location (" … | |
I am beginner, so please help me with these problem i am suffering I). I have a coding in ASP.net i want to display list of information from my database (MS Sql 2008 R2) to a table. My database contain: Name Email Address Phone I want this to be displayed … | |
can you explain how to chack all the char inside the array without check only the first and it says equal for(j=0;j<len;j++) { if (letter==copywords[j]) { //words[j]=copywords[j]; words[j]=letter; cout << "good guess: " << words[j] << endl; //correct } else if(words[j]==copywords[j])) /problem { cout << "done!!!" << endl; system ("pause"); … | |
Im trying to make a highlighter that will highlight a word after I have typed it in a JTextArea. The problem I have, is that after I press space, the highlighter doesnt stop. It continues highlighting the next words as well. public class highLighter { JTextArea ref; Highlighter hilite; String … | |
This is my search button and textbox code, but i will got error on pelanggandatagridview and searchdatas, i need to search data on SQL DB like google! just type any word with almost same with the data and it will show on pelanggandatagridview, please help me... Private Sub Button5_Click(ByVal searchword … | |
Anybody of you got any idea what this "internal compiler error: Segmentation fault" means? I searched internet, but didn't get anything useful. Then I did my analysis. I found out something peculiar. The code that I am trying to compile is a file for unit testing one of our classes. … | |
I used high chart in java-script .In high chart my graph is displayed very well but when I click on "show graph" button it doesn't show directly graph first I want to click on inspect element in firebug then after that graph will be displayed . What is the problem … | |
I got an application where by it will monitor all the files in multiple directories. Whenever there is files that exceeds a certain size limit, it will send warning email notification. Currently, my program will send an email for each oversize file. Meaning if there is 20 files that is … | |
hi i have the following complication. i have created a form which contains a drop-down list and a submit-button, which streams the file selected in the list. recently, i have been asked to add a download option, and the logical step would be to add a 'download'-submit button as well, … | |
Hi Everyone, I am looking to protect a webpage in my website. What I would like to do is check if the webpage has been accessed from a pre determined url. For example: Mywebsite.com/webpage.php should only be accessed from predetermined.com/url?id=var I have been doing some digging around and found the … ![]() | |
currently i m workin on Ms CHarts wid VB.NET nd create a chart sucessfully bt nw i wnt to click on that particular bar of that chart nd want to get that particular axis label of that bar .. | |
hello please help me it's important i want code c++ convert from array to another " example: **user enter : acb** array1[0]=a array2[0]=1 and array1[1]=b array2[1]=2 array1[2]=c array2[2]=3 **out put for user : 132 ** thanksthankthanthatht | |
Hi All, I'm having a problem with a query - which is based on conditional user inputs. In all circumstances, the outputted query ALWAYS works in phpmyadmin returning rows where applicable, but not always in php. No errors are displayed, with error reporting set at E_ALL, and mysql_error hasn't been … | |
Hey, I have a problem that I've been messing with for several hours, but with no result. I have a basic textfield where I can enter some info and I have to be able to read it and save it to a static variable by both pressing "Enter" and clicking … | |
Hi All, In my server ther are so many session files are under /tmp files. I want to delete all the session files which is no more active in automated way. I came to know that i need to change some garbage collection configuraions in php.ini file . These are … | |
Need help, trying to perform arithmetic operations using words, so far i've got to the stage where if the user enters a number in words with the operation type eg(one + six), the result is printed out as an int. But i am unable to convert this int back to … | |
I have an assignment question . We need to simulate FCFS scheduling algorithm using C on linux OS. This is what I need to do Write a program to simulate **FCFS scheduling algorithm** using pipes for inter process communication. 1. Let the parent program be the scheduler. 2. It takes … | |
Hi All, I have a access database with these columns. USER_ID,COUNT,TIMES Let say the current record is this: USER_ID,COUNT,TIMES STEVE20,24,1.5 Now I want to updated the current count record and times, but before updating I want the old record to be added to the new record. What should be my … | |
int main() { float stud1[2], stud2[2], total1, total2, ave1, ave2; int x; char letter1, letter2,opt; do { system ("cls"); printf ("Enter the test scores for Student 1\n"); printf ("Test 1: "); scanf("%f", &stud1[0]); //Error checking, when the user inputs a value less than 0 or more than 100 if (stud1[0] … | |
Hi, I need to do this program in my university and I was wondering how can I do it so that when there are no exits available, the program just says "type q to quite", and skips the 'Type the first letter of the next step or direction you want … | |
Hey guys, So, I have a connections php file which contains info such as the host, username, password and database to be accessed. I'm wondering if there is anyway to make the database value to be changed later on in the website. When first logging into the website they choose … | |
hi there is a small problem in codes need help i am useing these codes and here is site login link http://crypo.freeforums.org/ucp.php?mode=login Private Sub cmdlogin_Click() WebBrowser1.Navigate "http://crypo.freeforums.org/ucp.php?mode=login" lblstatus.Caption = "Connecting...." End Sub Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If URL = "http://crypo.freeforums.org/ucp.php?mode=login" Then WebBrowser1.Document.All("Username").Value = user.Text WebBrowser1.Document.All("Password").Value … | |
I have an assignment which is two parts. The first part I have solved. It calls for me to write a program that can read an XML file which then creates a purse a purse object and then prints the total value of the coins in the purse. The second … | |
I have a making a grid view from code behind but the error occurs My code is: string str = ConfigurationManager.ConnectionStrings["SQLConn"].ConnectionString; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetData(); } } public void GetData() { SqlDataSource ds = new SqlDataSource(); ds.ConnectionString = str; ds.SelectCommand = "SELECT * … | |
Hi I am starting to learn Java. I am new to Java. Which book do you think is the best book to learn Java for Beginners? | |
![]() | Hey there. I'm trying to raise a longs to the second power, but as you might know, Math.pow takes two doubles, and also returns a double. Efficiency is kind of important, but it is more important to have this working. Do you know how I might go about solving this? … |
Good Morning, I have an ever growing member database that is currently at around 6000 (developed over the past 2 weeks), and expect it to be in the hundreds of thousands within a few more weeks... My problem is that alot of members are using a single email address for … | |
import java.util.Arrays; public class Names2 { public static void main(String[] args) { while (!StdIn.isEmpty()){ String choice = StdIn.readString(); String[] myStrArray = new String[] {choice}; //SORTS STRING ARRAY INTO CASE & THEN ALPHABETICAL ORDER Arrays.sort(myStrArray); //for loop to print int values to console for (int a = 0; a < myStrArray.length; … |
The End.