199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gopi17

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"; …

Member Avatar for Echo89
0
212
Member Avatar for vinnitro

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 …

Member Avatar for vinnitro
0
178
Member Avatar for srinidelite

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.

Member Avatar for srinidelite
0
108
Member Avatar for coding101
Member Avatar for TrustyTony
0
103
Member Avatar for jaclynkinsey

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 …

Member Avatar for jaclynkinsey
0
169
Member Avatar for akash.doe

Can you solve my problem? Q. Write a Program to create a object without name. Help me...........

Member Avatar for thines01
0
85
Member Avatar for George_91

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: …

Member Avatar for prachi69
0
185
Member Avatar for cheiL

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' …

Member Avatar for cheiL
0
265
Member Avatar for iamjin04

<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 …

Member Avatar for gopi17
0
180
Member Avatar for eman31

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 …

Member Avatar for flywheeljack
0
135
Member Avatar for manhthaodn

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 …

Member Avatar for manhthaodn
0
418
Member Avatar for DJXiej

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 …

Member Avatar for histrungalot
0
453
Member Avatar for artan8

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); …

Member Avatar for PrimePackster
0
160
Member Avatar for jdgieschen

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 …

Member Avatar for jdgieschen
0
624
Member Avatar for artan8

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 …

Member Avatar for MandrewP
0
295
Member Avatar for CelestialTeapot

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 …

Member Avatar for CelestialTeapot
0
156
Member Avatar for pakiali007

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 …

Member Avatar for TrustyTony
0
238
Member Avatar for markusd5454

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 …

Member Avatar for Gazzmonkey
0
276
Member Avatar for while(!success)

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; …

Member Avatar for while(!success)
0
170
Member Avatar for Gazzmonkey

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 …

Member Avatar for TrustyTony
0
153
Member Avatar for sibwolf

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, …

Member Avatar for pheininger
0
192
Member Avatar for skoon

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. …

Member Avatar for NormR1
0
148
Member Avatar for mydreamgirl

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[] …

Member Avatar for NormR1
0
182
Member Avatar for codemonster

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 …

0
88
Member Avatar for beastpanda

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 …

Member Avatar for broj1
0
190
Member Avatar for snippsat

Where is sticky treads starting python,Gui programming....? These were very good treads and should be sticky.

Member Avatar for TrustyTony
0
103
Member Avatar for joban.ali

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 …

Member Avatar for diafol
0
887
Member Avatar for caltech

[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 …

Member Avatar for BobS0327
0
493
Member Avatar for er_svijayakumar

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)

Member Avatar for adam_k
0
136
Member Avatar for aman rathi

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 …

Member Avatar for anand01
0
189
Member Avatar for KRUX17

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 …

Member Avatar for KRUX17
0
139
Member Avatar for griffman99h

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 …

Member Avatar for L7Sqr
0
308
Member Avatar for BeeKeeper18

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: …

Member Avatar for BeeKeeper18
0
3K
Member Avatar for nicewave

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 …

Member Avatar for Mitja Bonca
0
87
Member Avatar for Rasool Ahmed

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 …

Member Avatar for mitrmkar
0
704
Member Avatar for bubbleT

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.

Member Avatar for BobS0327
0
179
Member Avatar for CriticalError
Member Avatar for Begginnerdev
0
150
Member Avatar for mkaynutty

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. …

Member Avatar for mkaynutty
0
190
Member Avatar for gatorsgirl

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 …

Member Avatar for NormR1
0
222
Member Avatar for skiabox

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; /** …

Member Avatar for NormR1
0
173
Member Avatar for jarograv

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] = …

Member Avatar for jarograv
0
1K
Member Avatar for Sean Raina

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 …

Member Avatar for bumsfeld
0
60
Member Avatar for swebdizajn

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 …

Member Avatar for swebdizajn
0
356
Member Avatar for hrul

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

Member Avatar for Begginnerdev
0
187
Member Avatar for saleem.mukhtiar

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 …

Member Avatar for Begginnerdev
0
325
Member Avatar for wnr78ta

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 …

0
107
Member Avatar for CimmerianX

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 …

Member Avatar for TrustyTony
0
954
Member Avatar for adityamadhira

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

Member Avatar for phoenix_2000
0
175
Member Avatar for DarkMonarch

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 …

Member Avatar for phoenix_2000
0
139
Member Avatar for Transcendent

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 …

Member Avatar for phoenix_2000
0
197

The End.