199,114 Archived Topics
Remove Filter ![]() | |
okay...seem to be experiencing some problem here....in my pc, the web application is running perfectly....but when i run it from my handheld, its showing error... this is my code <?php session_start(); //starting session $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="test3"; … | |
Hi friends, i was recently started writing a program on java needed for my practicals but as i started i found an error which deletes last element of queue actually i want to delete first element of queue anybody can solve it import java.util.*; class VQueue { int size; int … | |
var RE_SSN = /^[0-9]{3}[\- ]?[0-9]{2}[\- ]?[0-9]{4}$/; hello , i would like to know what is the meaning behind in these ^ ,[\- ],$ symbols??? and i would able to follow that the script logically verifying the format of text being entered!! i.e NNN-NN-NNNN... Thanks in Advance .. Srini. | |
How would you program if you didnt have any compilers on an OS? | |
I am having trouble displaying my code that is supposed to be read in from "pgm6.txt" - it looks like it is a continuous loop, but I'm not seeing how/why/where. It's probably something oobvious that I'm just overlooking. Here is a sample of the text in my external file: *Newland … | |
Can you solve my problem? Q. Write a Program to create a object without name. Help me........... | |
I'm trying to connect a DB from Postgres with a program in Java. I'm including this code: Class.forName(driver); Connection con = DriverManager.getConnection(connectString, user , password); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM students"); But I'm getting this erros in Statemen and stmt.excuteQuery: With Statement: *incompatible types. Required: … | |
I'm working on a *soap message *to send to a client system. I must use the client's predefined data types specified on their soap to send my message. Theres alot of arrays and enumerators used and my code gives the following error: > Error 1 Cannot implicitly convert type 'UpdateRatePs._Default.Rate.AvailAppType' … | |
<html> <body> <form method="Post" action="commentsample.php"> <center><textarea name="comments" rows=2 cols=60></textarea></center> <center><input type="submit" name="submit" value="Cloud"></center> </form> <?php $con = mysql_connect("localhost","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("comentss", $con); if(isset($_POST['submit'])){ $comment=$_POST['comments']; $q="insert into table2 (comment) values ('$comment')"; mysql_query($q); } $q="select comment from table2"; $result=mysql_query($q); while($row=mysql_fetch_array($result)){ //this is what i … | |
hey source pal out there i need your help guys. im currently working on a project called Computerized Examination System and i dont know how can i get question from database and display it in a form randomly and generate a result in terms of the ff: - no. of … | |
I'm having an error: ***object reference not set to an instance of an object*** in my project. This is file open method (is Excel file) public void OpenFile(string strPath) { try { InitPOList(MainTool.GetPOList(MainTool.ReadDataFile(strPath))); EnableButtons_2(); //Tool.SaveSetting("LastFile", ofdFileToOpen.FileName); } catch (Exception e) { MessageBox.Show(e.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } } Such a constructor … | |
Here's a small snippet from my code. Following a Knuth Shuffle model in the Shuffle function, I get 6 Pointer Expected errors in line 15, but I'm sure its really 2 due to the SWAP function in the header. Now the two things I'm swapping are a random index and … | |
Hello I am a beginner at C++ and I was given these questions to do for my homework. I would appreciate it if you could help me answer these questions. Consider the following code when answering questions 1-5 #include <iostream> using namespace std; int someVar = 10 void f(intx, int&y); … | |
I've got a project I'm working on where people can search using checkboxes, sliders, and an input box. The search works, but I've got issues here, especially when using IE as the browser. Haven't even tried Safari and Opera. Even in Firefox, there are minor issues. First, the lagging of … | |
Hello I'm a beginner at c++ I got these questions for homework. Would appreciate answers to these questions. Consider the following code for these questions const int NUMBER_OF_ITEMS = 5; double nums [NUMBER_OF_ITEMS]; Question 1 What is the index of the first and last element in the array? Question 2 … | |
Hi, I am trying to create a simple program to rename a bunch of files #include <stdio.h> int main(){ int count; for(count = 1; count <= 95; count++){ if(count >= 10){ system("rename \"C:\\wamp\\www\\anime\\kenshin\\Rurouni Kenshin - %d.mkv\" \"%d.mkv\"", count, count); } /* For the episodes that have 0 before the number … | |
hi, guys I'm completely new with python and right now struggling when it comes to creating functions....i have to do the following for an assignment if anyone can help that'll be awesome. Create a function that take a full name as a parameter and returns just the middle name regardless … | |
Below is the question and my attempted answer 5.4 Use the list of module titles from the previous exercise to create a for loop. It should ask the user for every title whether they would like to keep the title or delete it. Delete the titles which the user no … | |
Hey, guy I'm having some trouble with my function see below: bool tryAgain() { char answer; cout << "Do you want to enter another number? (Y/N): "; cin >> answer; answer = toupper(answer); while(answer != 'Y' || answer != 'N') { cin.clear(); cin.ignore(10, '\n'); cout << "Input invalid." << endl; … | |
Hi, this does compile but I only want results that have the same amount of characters as the input! Can anyone shed some light on this as I can't figure it out myself! thanks. import re # opens a .txt file and searches for matching letters in words that are … | |
Trying to output a list of all prime numbers and perfect numbers between 1 and 1000. Have been banging head against wall for past 3 hours and this is what I have so far: #include <iostream> #include <string> #include <iomanip> using namespace std; int main() { int x, aDiv, aMax, … | |
Hi every body My teacher assinged us a lab to draw a 200 X 200 square at the top-left corner and the right bottom corner of the monitor then continue drawing squares that become steadily smaller as they are displayed to right side and left side of each preceding square. … | |
I am trying to assign some values to static class and it does not work as I expected. I was expecting to see different values for different classes. However, they fall into the same value because it is static??? See code snippet here: NewOperationResponseSimpleType[] resp=new NewOperationResponseSimpleType[3]; NewOperationResponseSimpleType[] res1=new NewOperationResponseSimpleType[3]; NewOperationResponseSimpleType[] … | |
I found an error in my c++ textbook and I can't find a way around it without re-writing the author's stuff completely. An error pops up when I don't use parentheses in the expressions that I enter. "Expression: string subscript out of range" is the error. Again, this is the … | |
Hi all, I am new to php and I have a problem that I am looking into it for 1 day and can't understand it please help. here is my html code : <html> <head> <title> Calculation Form </title> </head> <body> <form action=calculate.php method="POST"> value one: <input type="text" name"val1" size=10 … | |
Where is sticky treads starting python,Gui programming....? These were very good treads and should be sticky. | |
Hi Guyz, Would like to thank you in advance for the help and support, The problem I am facing is I have a redirection script which opens the page within an iframe rather than displaying the whole page. [CODE]header("Location: http://www.domain.com/registration.php?par=$parcel&err=$error_msg&succ=$success_msg");[/CODE] I have a simple login form within an iframe when … ![]() | |
[QUOTE] 1. Print the following heading at the top of the output page: Miser Corporation Payroll 2. Read an unknown number of employee data records as shown below. Each group of data will contain an employee's name, hours worked, rate of page and age. A typical group of data will … | |
Hi I am using vb.net with access database I am using sql How can i update database with the value 40'6"(Feet and inches values) | |
hello everybody first of all thanks to Daniweb and all its users for helping me lot of time. now come to the problem I've just started studying servlets 1 week back it was going well but i got one problrm when i try to run a packaged servlet code. path … | |
Hello, I'm quite stuck on how I can sell limited tickets I've put this question up before, but I haven't got the right solution.I know I should do my own project, but I really can't seem to find the solution to this.If someone can just help me with this problem … | |
Hope my first post is relevant enough. I'm a newbie coder and this is as much a learning exercise as it is a favor for my girlfriend. She has test results from a device that outputs data to .csv in multiple (100+) files. the important data is the separate file … | |
Right guys, I'm really new to this but I'm getting along ok, but I've hit a block. I need to be able to know how to search a text file in VB for a particular line and then display it. the files I'm trying to use are set up as: … | |
I'm a newbie so please be patient with me. I've two forms, one is the main form and the other is the login form. On start up, I would like to have the login form show up so the user can enter their credentials and upon successfully login I want … | |
Hi guys, what's up? Is native applications familiar to you? I'm right now building an anti-virus, and as you know the viruses can be active or passive, the passive is easy to remove but the active , well.... it's hard to remove but I finally found the solution is by … | |
I want to convert Wide char arrays (russian,turkey,switzerland,japanese,chinese simplified] to unsigned character array in VC++. I've tried using WideCharToMultiByte and wcstombs_s but both doesn't work. Anyone know the conversion? Thank you very much. | |
![]() | I am not sure if this is possible, in VB is it possible to link to some piece of code in the current document? |
I am having trouble formatting my output into columns. Some of the the names are longer than others so it pushes the whole line out instead of lining up evenly. I cannot use the printf function, we haven't learned this in class yet, I'm only familiar with setw and setfill. … | |
Hello everyone, I am looking for some assitance with an assignment that requires a user to input tutor time and earnings into a gui and then calculate the totals and averages in a text area. I have succeeded in getting the program to work, however it is totaling the user … | |
I am trying to create an oval shape using Netbeans but the oval shape never draws itself. Here is the code : /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package learn; import java.awt.Color; import java.awt.Graphics; import javax.swing.JPanel; /** … | |
I have these 2 classes: [CODE]import javax.swing.JOptionPane; public class Theatre2D { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // declares an array of integers int[][] myTheatre2D; // allocates memory for 2*10 integers myTheatre2D = new int[2][10]; myTheatre2D[0][0] = 20; myTheatre2D[0][1] = … | |
Can some one help me write a c program for my "Internal Assessment" at school? Its a program that should be over 5oo lines but I need your help urgently. The dead line is two days from now. If your interested, email me at "seanraina@yahoo.com", where I will give you … | |
Dear friends, I started a project which now needs a way to implement the other site. In fact, you should also publish the same content on the site PHP website partner. What are the odds to bring and what should I use? I tried the function (include), but this is … | |
hye....i have a data in access 2007 which is: table1 ID DOCUMENTNAME PAGE 1 investment 2000 12 2 investment 1989 4 3 investment march 15 how to display the id and page when user typing the document name in combobox..using vb.net 2008 | |
dear friends following is the code for export data from data grid to excel .. problem which i m facing that .. i could not export the last coloum values.. kindly give sulotion.. `Inline Code Example Here` Private Sub btnExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExcel.Click Dim … | |
I am writing a m-file that simply takes in a picture of a board with 27 LEDS on it and simply tells you which LED is lit up. My problem is with the calibration of the m-file. I am trying to use [x,y] = ginput(27) to have the user click … | |
So, I am a novice with python. I'm trying to teach myself python just to expand my skills. I gave myself a simple challenge and I need some guidance here on how to get it done. The goal is to read in a dhcpd leases file, read through the lease … | |
Hi I am new to php. How to implement credit card payment for a site (no 3rd party tool) and how insert them in database? validations for credit card numbers and check 3 digit number of the card. Thanks | |
hey guys, i`m still a marketer for the year to come, then i`m throwing away the tie. I want to invent stuff, help people ... have a job that i have fun doing. so i`m recycling myself into programming and for next semester i need to make a choice to … | |
I really want to create a game or an app for android and I was wondering if you guys can give me an advice? I'm still learning java; I'm good but I'm not a pro(still in college). Do you think that I should keep working on java tell I'm really … |
The End.