64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ruchi18

Hi, I have a jsp file which call java class file function passing connection as a parameter all was working fine once but when i changed few code in java file and compli it complied successfully but jsp file still giving previous class function output. I am working on amezon …

Member Avatar for ruchi18
0
188
Member Avatar for london-G

Hello, I am supposed to write recursive program. I have done this below, however I don't know if my understanding of recursion is correct. I believe that it is a method which calls this method inside. In my case (insertCommas). private String insertCommas(String str) { if(str.length() < 4){ return str; …

Member Avatar for Taywin
0
116
Member Avatar for guilherme.carvalho.9250

Hello to everyone, i recently started to learn c++ with this book "Jumping into C++" from Alex Allain. In this book there is an example of a program to get the prime numbers from 0 to 100 that Im not understanding! For what I think I understood the second loop …

Member Avatar for guilherme.carvalho.9250
0
197
Member Avatar for Mirfath

hi! i want to open a word document directly from a windows form application running on visual studio 2010! i tried a particular code but it wont work!!! this is the code! [CODE]this.Application.Documents.Open(@"C:\Test\NewDocument.doc");[/CODE] i also imported and used the following header: [CODE]using Microsoft.Office.Interop.Word;[/CODE] it says that the word application does …

Member Avatar for ChrisHunter
0
3K
Member Avatar for hwoarang69

my xampp was giving me problem so i del it and download a new one. now the problem is that all my database and table got del. however i did safe my old xampp folder before del it. if there a way i can get my sql table script from …

Member Avatar for pritaeas
0
313
Member Avatar for Ben Ashton

Hello I am making an application that will solve a puzzle for me, but before i start designing the algorithm I need to capture that region of the screen, in order to reduce the time it would take to scan the whole PrimaryScreen for the objects I am looking for. …

Member Avatar for Ben Ashton
0
140
Member Avatar for monching

Hi there, I have been trying solve my error at this codes, it takes me too long. Code: Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim conn As New MySqlConnection Dim myCommand As New MySqlCommand Dim comm As String Dim myconnstring As String Dim UserID …

Member Avatar for monching
0
472
Member Avatar for slasel

Hello, I need help with creating 6 buttons can I do that using some loop and how can that be done? each button has a different image and different text...their bg, and dimensions are the same Also after creating all the buttons I want to make a callback function for …

Member Avatar for slasel
0
286
Member Avatar for slasel

I have a problem...how can i arrange widgets inside a frame using grid? I get all sorts of weird results with widgets coming over each othe

Member Avatar for slasel
-1
79
Member Avatar for Szabi Zsoldos

Hi guys, I'm facing a weird problem with our Trustico Certificate. We have a webshop with customers that are logging in to make purchases of different products, all of this works nice untill the user changes his/her DATE on the Computer that he/she is using. If the date is changed …

Member Avatar for Szabi Zsoldos
0
277
Member Avatar for maurice91

Hi, I have a Vb.Net solution that contains several forms that read/write to an MS Access database. My problem: When I copy my Vb.Net solution and Access database to a new computer, the data source connection string needs to be changed. Currently the data sources wizard sets the connection string. …

Member Avatar for Lethugs
0
207
Member Avatar for ImZick

Hi guys need help again hope you can help me.. I have a database and i want to Compute all the Total Calls of my 2nd Column I wonder how can i do that? can you give me an example? I'm using Oledb Connection? Thanks in advance.

Member Avatar for ImZick
0
177
Member Avatar for t2nator

I am trying to get a good understanding of what's happening in the following question: ~Given the following numbers in array A ... 47 43 20 24 32 44 35 ... what are the numbers that would result from a Pre-Order Traverssal of the Binary Tree built using the above …

Member Avatar for t2nator
0
214
Member Avatar for kazekagerandy

i am working on a POS as a school project. im having a problem in getting the stocks, which is a record in my database. this is what i need to do, i need to populate the combobox with drug names with suggests. when i choose a certain drug, its …

Member Avatar for kazekagerandy
0
271
Member Avatar for pinbustersrule

I've just started using python in my computer technology class. One thing I can't figure out is how to have python put the lists inside a string into alphabetical order. If anyone has any easy answer, it will be much appreciated. Also, my teacher told me he would give extra …

Member Avatar for noonecares
0
889
Member Avatar for danthegreat

I created an article previously doing this program in C++, but now I am trying to convert it to C. #include<stdio.h> double hamCalc(double b, double p); double cheeseCalc(double b, double p, double c); double dcheeseCalc(double b, double p, double c); int main() { double patty, bun, cheese; printf("This is the …

Member Avatar for danthegreat
0
211
Member Avatar for Darth Vader

Hello, I wonder if there could be faster way to convert a string to .Double() and Int32(), then the methods below? The code below takes approx: 7000 ms //7000 ms String number1 = "21.58"; String number2 = "21"; double getNum1 = 0; int getNum2 = 0; DateTime dt = DateTime.Now; …

Member Avatar for tinstaafl
0
1K
Member Avatar for M4ver1k

I'll try to keep it brief. When I try to pass the 'list' vector to the counter function my compiler throws an error of: "error: request for member size in count, which is of non-class type std::vector<int>*" Googling hasn't produced anything quite what I'm looking for syntax wise. If someone …

Member Avatar for M4ver1k
0
265
Member Avatar for shahai.ali

hi m new to `asp.net` and m trying to secure my pages so that if the user is not logged the pages are not accessed to him. previously i have done in `php` like in the following: if(!isset($_SESSION['adminlogin']) || $_SESSION['adminlogin'] == ''){ header("Location: index.php"); exit; } but i don't know …

Member Avatar for shahai.ali
0
143
Member Avatar for shahai.ali

hi to all....i have a task to embed skrill and pyaza...but i only know that skrill and pyaza are moneybookers. but i don't know how to embed them using php?? is any api is there to access both these moneybookers.????

Member Avatar for shahai.ali
0
244
Member Avatar for CarterLangley

Hi guys, I don't know if this is posted in the correct area, so forgive me if it isn't but I couldn't find a proper area for this. What I would like to know is this. I have a computer running windows 7 professional. Connected to my home hub, I …

Member Avatar for CarterLangley
0
110
Member Avatar for marnun

Here is the exercise: > fileWord > Write the definition of a function named fileWord that receives a string argument that is the name of a file containing words. > > The first time the function is called, it returns the first word of the file whose name it was …

Member Avatar for marnun
0
265
Member Avatar for giancan

Dear friends, sorry for my ignorance about python containers but I have the need to store (and access) 4 different values per file in folder, namely the filename (with its path) and 3 other values (string or None). When I access the database, I will need to know the 3 …

Member Avatar for ZZucker
0
326
Member Avatar for hwoarang69

i am using xammp for my database. i have a col called "today_date" andy type "DATE". in php i am using function "now()" to store todays date. the format is year-month-day. now let say i have one more col called "today_date_time" and type "datetime". is there a php function that …

Member Avatar for urtrivedi
0
228
Member Avatar for showman13

I'm not sure that my title is descriptive enough, but here is what I need to do... I had a bit of a screwup today with launching a site... Within about 10 minutes of opening the site, the members created 337 transactions (stored in trans_table) Each of those transaction should …

Member Avatar for showman13
0
198
Member Avatar for vizz

How to fix position of first div at **center** and add more div **around first div** as per requirement, to, **left, right, top and bottom** and scroll to that div using fix navigation at top of page

Member Avatar for vizz
0
75
Member Avatar for biancairis93

I have to create a class of Persons that will hold information about their name,age,NI number.These details are read from a file that would look like : 55512 Bart Simpson 45 45622 John Smith 58 46231 Alicia Sands 27 My duty is to read each line from this file and …

Member Avatar for Lardmeister
0
127
Member Avatar for Dili1234

I want to get the relevant name of the product Id into a text box when I select the product id from the combobox myConnection = New SqlConnection(connectionstring) myConnection.Open() myCommand = New SqlCommand(" Select Name FROM [Product_Name_List] Where P_Id='" & ComboBox2.Text & "'", myConnection) Dim dr As SqlDataReader = myCommand.ExecuteReader …

Member Avatar for Reverend Jim
0
205
Member Avatar for tony75

Hi double[] MyArray = new double[10]; I have 10 numbers and I get average of them. But how can print out how many of the numbers that are smaller than average, and how many of the numbers that are larger than average?

Member Avatar for tony75
0
1K
Member Avatar for arcticM

I'm trying to use remote data source autocomplete, I have a code that works. I'm returning an id column from a db table. what I'm trying to do is to have the autocomplete display 2 values from the table row, for example id1 - this is id 1 id2 - …

Member Avatar for arcticM
0
203
Member Avatar for Octet

Helo Daniweb, I am in the process of building a WYSIWYG text editor, in an attempt to understand how they work. I am a novice at JavaScript, however what I have learnt so far seems to make sense. The problem comes when I try and change the text rapidly, if …

Member Avatar for Octet
0
476
Member Avatar for OsaMasw

Hello guys, i have problem with regular expression , I have search box, I tried to enter (',#,$,%,^,&,"star",@,!,") or any other special charachters, it give me the whole database items, so i want to limit the enrty to only letters [a-z] numbers [0-9] and arabic charachters [ا-ÙŠ] or to be …

Member Avatar for OsaMasw
1
233
Member Avatar for Zaina jee

I want to display divisors of a number in a text box using loop. But their is some error in my program.I need help to correct it. `<html> <head> <script> function CheckDivisors() { number=parseInt(document.divfrm.num.value); d=1,sp="\t"; do { if(number%d==0) { document.divfrm.div.value=d; document.divfrm.div.value=sp; } d++; } while(d<=number/2); } </script> </head> <body> <form …

Member Avatar for Zaina jee
0
171
Member Avatar for vijaycare

Hi All, I would like to thank this community for the enormous help to develop my skills. Thanks. I have 2 databases and a single report form and a crystal reportviewer. The User can select the database which he want to work (Each of them belongs to different warehouse) So …

Member Avatar for john.knapp
0
477
Member Avatar for gAdIs90

#include <stdio.h> #include <string.h> struct mycar { char plate[10]; int ey,em,ed,eh,emin,qy,qm,qd,qh,qmin,wd,parked; }; struct mycar car[2]; int n; void main() { void input(); void display(); int menu(); void exit(); int op; n=0; printf(">>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); printf(">>>>\tCAR PARK SYSTEM MANAGEMENT SYSTEM \t<<<<"); printf("\n\n>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); for(;;) { op=menu(); //printf("op=%d"); if(op==0)break; switch(op) { case 1: input();break; case …

0
78
Member Avatar for chdboy

Hi I'm using a simple insert statemnt in from two textfield into my database using this code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (TextBox1.Text.Trim = "") Then MessageBox.Show("PLEASE DO NOT USE BLANK SPACES", "Data Entry Error") ElseIf (TextBox2.Text.Trim = "") Then MessageBox.Show("PLEASE DO …

Member Avatar for Reverend Jim
0
859
Member Avatar for dsplayer14

I am reading a doc I found online about Perl, I am learning it for a project, and I was studying code that converts currency. The code: #!/usr/bin/perl use warnings; use strict; my ($number_to_convert, $first_currency, $second_currency, $rate, %rates); %rates = ( pounds => 1, dollars => 1.6, marks => 3.0, …

Member Avatar for dsplayer14
0
164
Member Avatar for it@61@sec

I have a bash script (test.sh) which reads parameters from the command line. The parameters could look like this: param1 param2 param3&ext param4 param5 The problem is that when the script reads the parameters and then echo them I get the following: param1 param2 param3 No command 'ext' found did …

Member Avatar for it@61@sec
0
970
Member Avatar for missc

i'm trying to make an if statment in asp.net. the if statement is done in the listView . but its not working ! all the if statement is been viewed upon runtime <ItemTemplate> <div class="productItem"> <div> <img src='<%# Eval("ProductImagePath") %>' alt="<%#Eval("ProductName") %>" height="120" width="120" /> </a> </div> <div> <br /> …

Member Avatar for AleMonteiro
0
686
Member Avatar for mmcdonald

Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out …

Member Avatar for diafol
0
296
Member Avatar for rajesh1158

I am trying to connect mysql from within PHP function. The credentials are stored in a separate PHP file, which I am including it inside the function. But when I run the script, I am getting following error: Warning: mysql_query(): A link to the server could not be established in …

Member Avatar for rajesh1158
0
354
Member Avatar for ravenous

OK, so I'm mainly a C++ developer but I've been looking into making apps for Android. I haven't used Java before, or done much UI development, so it's a lot to take in at the moment. **There is a question at the end of this, skip to it if you …

Member Avatar for ravenous
0
153
Member Avatar for mIND.dEcEpToR

this is a very very basic question but while coding i got stuck. in c++ we use the statement: if (back_tracking(0, y + 1)) to check some condition but while coding in c# it says cannot convert implicitely int to bool! anybody kindly tell me whats the workaround in c#

Member Avatar for Momerath
0
156
Member Avatar for kevinyu

hello everyone, i am having a problem about my php code which tells that it cannot open a stream from function file(), and says 404 not found, true, but i already have filtered it but the error really comes out, but when i enter a valid id number, it produces …

Member Avatar for phorce
0
11K
Member Avatar for Stuugie

Hi All, Something strange just happened. I just tried to open a package that I have been working on but nothing opens in Recent Projects on the Start Page in SSIS. The package title is also grey. I have no idea what happened or what I could have done to …

Member Avatar for Stuugie
0
130
Member Avatar for wannafzan

This is my assignment. I've done it 36 hours straight and I can't think properly so my program looks like kindergarden kid's program. Basically, we have to do a GUI for Pizza ordering. Everything works except for the amount. The output for amount is "0.00". I have to send it …

Member Avatar for wannafzan
0
2K
Member Avatar for arcticman452

I have a program that figures out what the total cost for gas is on trip. I now have another piece made where you enter the trip data to save it to a file. How do I make the main program call this new window so the user can enter …

Member Avatar for arcticman452
0
130
Member Avatar for jpreem

So Im using our university servers through an ssh connection. I have a bunch of files in a directory which I would like to run through a perl script. So I thought this simple script I concocted should do the trick. I have used similar script on my home computer …

Member Avatar for jpreem
0
334
Member Avatar for hwoarang69

geeting a error Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\E_COMMERCE\MENU_PAGES\apparel_pages\male_print_image.php on line 35 line 35: while($row = mysql_fetch_assoc($item_query)) <?php ... if(isset($_POST['male_button'])) { $order_by_p = $_POST['order_by']; if($order_by_p == 'heigh_low') { $item_query = mysql_query("SELECT * FROM item WHERE sub_category='Male_T-Shirts' ORDER BY id DESC LIMIT 8"); } } …

Member Avatar for diafol
0
251
Member Avatar for danthegreat

#include <iostream> using namespace std; class Burger { private: double patty; double bun; double cheese; public: Burger(); double getPatty(); double getBun(); double getCheese(); void setPatty(double p); void setBun(double b); void setCheese(double c); double hamburgerCalc(Burger b); double cheeseburgerCalc(Burger b); double dcheeseburgerCalc(Burger b); }; double Burger::hamburgerCalc(Burger b) { double bun = b.getBun(); …

Member Avatar for danthegreat
0
2K

The End.