199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kahheng93

hi guys,i was trying to make user able to make selection again when they make an invalid input, but when i run this code,it just doesnt work that way,it goes printing the same line like crazy...did i do something wrong? [CODE] int main (void) { //Local Declarations int menu; //Statements …

Member Avatar for kahheng93
0
149
Member Avatar for desup

Hi, I am new to java and I need to work with arrays. I have found some tutorials, but everywhere was something like [CODE] int[] anArray; // allocates memory for 10 integers anArray = new int[10]; [/CODE] But what if I dont know how long the array will be? When …

Member Avatar for desup
0
155
Member Avatar for praveenphp

Hi.... I am using XAMPP for localdevelopment.And I am using the mail() function for sending the mail. But unfortunately it wont sent the mail.I am not using any SMTP server in local host.If I need to sent mail what can I do? Thanks in advance.

Member Avatar for pritaeas
0
104
Member Avatar for caltech

int findLowest(int arr[]) Is passed the five accident totals as an array of ints. It determines which is the smallest and returns the subscript for that array element. The main function declares two arrays, a string array containing the names of the boroughs and an int array which will hold …

Member Avatar for caltech
0
243
Member Avatar for carolinatech

hey everyone, I'm trying to perform a program that will perform a leap year method and also have it to loop. here's what i have so far: import java.util.Scanner; public class LeapYear { //Create a Scanner object for keyboard input. static Scanner keyboard = new Scanner(System.in); //Set variables public static …

Member Avatar for zeroliken
0
286
Member Avatar for Nikhar

While it is true that the inorder traversal of a binary search tree produces a sorted output, is the converse also true, i.e., if the inorder traversal of a binary tree is sorted, then is it necessarily a binary search tree?

Member Avatar for deceptikon
0
112
Member Avatar for eranga246

[CODE]#include<stdio.h> #include<conio.h> void main(){ char x; int result,a,b; printf("type the first number\n"); scanf("%d",&a); printf("enter the operand\n"); scanf("%d",&x); printf("type the second number\n"); scanf("%d",&b); switch(x){ case '+': result=a+b; printf("value is:%d",result); break; case '-': result=a-b; printf("value is:%d",result); break; case '*': result=a*b; printf("value is:%d",result); break; case '/': result=a/b; printf("value is:%d",result); break; case '%': result=a%b; …

Member Avatar for deceptikon
0
109
Member Avatar for Farhan_B

Hey people hope you are well Could You please help me. I am designing a system which when users login i want the system recoginse who is a admin and a user ( option of deleting only to admin) Using mysql and vb.net Thank you in advance

Member Avatar for kingsonprisonic
0
2K
Member Avatar for techyworld

Can someone help me on how to draw a dynamic pie chart in java? I don't want to use jfreechart. I want to use jtable or other methods if available(but simple one) I have one but it is static.i need to write it upon user input.how can i do it? …

Member Avatar for JamesCherrill
0
364
Member Avatar for spowel4

I know this has been asked many times before so I apologize but here's the php file that's generating the error on the "if($stmt = $this->conn->prepare($query))" line: [CODE]<?php require_once 'includes/constants.php'; class Mssql { private $conn; function __construct() { $dbServer = DB_SERVER; $dbName = DB_NAME; $conn = new PDO( "sqlsrv:Server=$dbServer;Database=$dbName", NULL, …

Member Avatar for spowel4
0
6K
Member Avatar for KRUX17

Hello, I would like to know how you can keep running a function over and over again, so that it can keep adding the stored value. For example If Bob uses a program to purchase a ticket, lets say that Bob purchases 5 tickets out of 55 tickets (There's only …

Member Avatar for irre
0
212
Member Avatar for template

Hi i am flash game developer and will protect my games from decompilers please help me. best regards.

Member Avatar for çadır
0
212
Member Avatar for timothy0726

myqry = "UPDATE tblReceive SET " myqry = myqry + " ProductName = '" & txtProd.Text & "'," myqry = myqry + "' Quantity= " & txtQuan.Text & "'," myqry = myqry + " Quantity Unit= '" & ComboBox3.SelectedItem & "'," myqry = myqry + " Category = '" & …

Member Avatar for kingsonprisonic
0
301
Member Avatar for Danny159

Hey guys, How would I work out the date range for the current week...? Then +1 week or +2 weeks time... I hope you understand... So... This week... 20.02.2012 26.02.2012 +1 week will be 27.02.2012 04.03.2012 I will set an offset url variable Thanks Dan

Member Avatar for Danny159
0
110
Member Avatar for virendra_sharma

HI , I want to import emails from my Gmail account to my application, can anybody please help me out with code , links or procedure for to implement this . Thanks in Advance :) :) :) :)

Member Avatar for Mitja Bonca
0
132
Member Avatar for scarcella

Hi everyone, I am wanting to know if there is such a thing like the mySQL SELECT WHERE but in array's. I have this array: [CODE]<?php $array = array( [1] = array( ['test'] = '1', ['test2'] = '2' ); [2] = array( ['test'] = '4', ['test2'] = '2' ); ); …

Member Avatar for scarcella
0
212
Member Avatar for breakforce

I want to do in the following way, i would be very grateful if you help a little ... Currently my way - from /first page / 1-7 ... 50/last page / 7 when i clicked appears in the following way photo 2, and i want when clicked on 7 …

Member Avatar for pritaeas
0
111
Member Avatar for danfel

Hello everyone.. i need help for my project.. im using PHP and MYSQL.. i have an exam in my project where one question is displayed at a time.. the user gets to proceed to another question if he/she gets the right answer for the current question.. otherwise, he/she will be …

Member Avatar for pritaeas
0
102
Member Avatar for artemix22

hi everyone.. can anyone help me please.. i have a datagridview with 4 columns (id, name, ticket_number, destination), i just want that datagridview on column "ticket_number" to display ticket_number from mysql database and another 3 columns for user input. thanks in advance..

Member Avatar for artemix22
0
165
Member Avatar for radiat
Member Avatar for anthonyjpv

Hi, I have a pretty quick question regarding PHP code if script is hidden from client's browser and php code are rendered back as HTML to the user is there a way ever that someone can view your code using say a browser plugin? or getting your source file and …

Member Avatar for diafol
0
376
Member Avatar for Kathyrine

I wanna convert an integer to a character then i will store it later to the index of a c-string...... something like... int res=123 then it will be putted in.... var[0] = 123 where in var is a cstring, and here 123 is now a char type..... here is what …

Member Avatar for Software guy
0
203
Member Avatar for anthonyjpv

Hi! I dont know if this possible I have a payments table in a database what I want to accomplish is, once a certain customer id has paid say $100 USD my discounts table will generate a code for me automatically say I'll insert a new record is there such …

Member Avatar for anthonyjpv
0
97
Member Avatar for yanwick

Hi, I'm new to JQuery/Ajax with PHP. I'm calling a PHP file, and all the code runs well, except for the echo's. The echo's are not showing and they were supposed to be showing . Here are both my files(Which are very simple): (x.php(main file) and sugere.php(the called file)) X.PHP …

Member Avatar for diafol
0
867
Member Avatar for jdm

I'm writing a tcp server and client program in C on linux. It compiles and works under linux, but when I try to compile it using terminal under mac I get errors. If somebody knows why I would appreciate telling me. Any way I have most of the program done, …

Member Avatar for savoie
0
220
Member Avatar for mehnihma

I am trying to cast combo box to string but I have problems with it. I get NullPointerException? [CODE] fontStyle = (String)combo.getSelectedItem(); size = (String)comboSize.getSelectedItem(); if (fontStyle.equals("Regular") && size.equals("10")) { Font font = new Font(Font.SANS_SERIF, Font.PLAIN, 10); text.setFont(font); } [/CODE]

Member Avatar for stultuske
0
144
Member Avatar for extjac

hello, i was wondering if someone can explain me what the difference is between the following classes. I found class B nicer to use, but i want to have your comments..... [code] class A { public function setField($var) { $this->anyfield = $var; } } //this is how i use it …

Member Avatar for pritaeas
0
162
Member Avatar for s0bigg

I am using MySQL database to download various RSS feeds every few hours. The feeds are then displayed on my website that shows a direct link to the original website where the feed is coming from. I want to change this such that the link would show my website that …

Member Avatar for pritaeas
0
130
Member Avatar for sharvil_maniyar

run: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.sun.java.swing.plaf.nimbus.NimbusStyle.init(NimbusStyle.java:418) at com.sun.java.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:359) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:927) at com.sun.java.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:605) at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:896) at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:275) at javax.swing.plaf.synth.SynthLabelUI.updateStyle(SynthLabelUI.java:53) at javax.swing.plaf.synth.SynthLabelUI.propertyChange(SynthLabelUI.java:232) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at java.awt.Component.firePropertyChange(Component.java:8128) at java.awt.Component.setName(Component.java:935) at javax.swing.plaf.synth.SynthComboBoxUI$SynthComboBoxRenderer.getListCellRendererComponent(SynthComboBoxUI.java:409) at javax.swing.plaf.basic.BasicComboBoxUI.getDisplaySize(BasicComboBoxUI.java:1334) at javax.swing.plaf.basic.BasicComboBoxUI.getMinimumSize(BasicComboBoxUI.java:903) at javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:892) at javax.swing.JComponent.getPreferredSize(JComponent.java:1634) at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSize(GroupLayout.java:2944) at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize(GroupLayout.java:2930) at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(GroupLayout.java:2897) at javax.swing.GroupLayout$Spring.getMinimumSize(GroupLayout.java:1315) at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(GroupLayout.java:2904) …

Member Avatar for JamesCherrill
0
810
Member Avatar for ujjwale
Member Avatar for stultuske
0
128
Member Avatar for ndraycott

Hi I am trying to pass the datatable of a search query to another page and bind it to a listbox. The problem is the the listbox just displays system.data.datarowview and no results. I have listed the code below. Thanks First page SQL and session store: [CODE]Protected Sub btnSearch_Click(sender As …

Member Avatar for Phasma
0
117
Member Avatar for MozammilK

Hi, i have the following code in Java as you can see there are a lot of code repetition. I want to know how i can loop this part of code instead of writing it each time? [CODE] g.setColor( Color.black ); g.fillArc( 110, 80, 300, 300, 0, valint[0] ); g.drawString("BMW", …

Member Avatar for stultuske
0
134
Member Avatar for Lle26

This is my first time to do visual basic program Please help me about this problem... When I run the program with maximum attempt of 3 with correct username and password, Illegal user will pop up,,,i really dont know what to do..illegal user must be pop up when i already …

Member Avatar for makdu
0
529
Member Avatar for jonnyboy12

Hello all. i might have posted about this recently but, i have done much research and refined my research and am close to a solution. I am trying to use the click of a ahref link with a variable tacked on the end, to send a message to one of …

Member Avatar for jmichae3
0
188
Member Avatar for johndoe111

Hi, I'm attempting to design a database for a practice online store, I have never been taught databases and how to design them but I have watched a lot of videos explaining them, I have attached a screen grab of what it looks like at the moment, could anyone please …

Member Avatar for scarcella
0
155
Member Avatar for priyamtheone

How can I detect the click event of the close (X) button at the top right corner of the control box of a form/window? Please note, I don't want to know about CloseReason, FormClosing, FormClosed or stuffs like these, unless they are inevitable. I exactly want to detect if the …

Member Avatar for makdu
0
562
Member Avatar for Buffalo101

Hi, I'm trying to create a thread for running some tasks. I copied the code from an old console application (which compiles fine), but can't figure out why it's not working now. I have searched for the error code and came across this suggestion: "Are you passing the name of …

Member Avatar for jmichae3
0
691
Member Avatar for riahc3

What is the best way to start/stop/restart Apache Tomcat using Java code? If it cant be platform dependent (or complicated or I have to do a "IF" for each), then only for Windows. Thanks

Member Avatar for RicardoE
0
254
Member Avatar for Gnawk

Hi the project i have is Write a program that displays diamonds as text using a character provided by the user. For example, a diamond of height 6 constructed from asterisks will display as follows: __* _*** ***** ***** _*** __* (I cant make it line up perfectly... ) after …

Member Avatar for Gnawk
0
335
Member Avatar for vuquanghoang

I do the program to practice what I have learned in a class at my university(convert input of infix form to post fix one), but my program doesn't run correctly. Please help my to find out my bug. == IntoPost class /* * To change this template, choose Tools | …

Member Avatar for vuquanghoang
0
202
Member Avatar for Karlwakim

Hello everybody, i learned the basics of php a while ago, and as a first project, i want to create a website where anybody can rate pictures or upload his own. The hosting isnt a problem, i want to know if a db is necessary, if its i will have …

Member Avatar for scarcella
0
149
Member Avatar for nickecarlo

I have the following piece of code. I do not understand why its not working. I'd really appreciate help on this. [CODE]import java.util.Scanner; import java.io.*; class ReadFiles { String [] codes = new String[99]; int i = 0; private Scanner readCodes; public void openCodesFile() { try { readCodes = new …

Member Avatar for nickecarlo
0
10K
Member Avatar for amir84

hi im amir im a noob in c# and need some help i coding a net based app and i need to ping to website if ok run app else close app the bug is when im online show ok message but when im offline app runnig and show error …

Member Avatar for Momerath
0
171
Member Avatar for Eniekko

Hello, currently, what i want to do is, add a column in a table "default" during runtime. Well, I've got that covered already. The problem is, the column names are actually taken from the users input through a textbox or drop down list and of course, if the same column …

Member Avatar for Eniekko
0
174
Member Avatar for SoftShock

Hello, On lines 70 & 75, the word [B]col[/B] is marked as a syntax error. When I hover my mouse over, it tells me that [B]Error: expression must have pointer-to-object type.[/B] Why am I getting this error and how do I fix it? This program prompts & reads the file …

Member Avatar for Labdabeta
0
196
Member Avatar for belber

hey all, i wan't ask, how to make specific report in vb6 using datareport i can make report, but show all of record in my database not a specific record help me plizzz...

Member Avatar for Jx_Man
0
129
Member Avatar for kinger29

I am trying to write a program that either zero extends or sign extends a 16 bit input to a 32 bit output, what exactly is meant by sign extending a number? I believe zero extending would be adding 16 0s in the 16 Most Significant bits, Is sign extending …

Member Avatar for trololo
0
11K
Member Avatar for Gnawk

This is just a part of a program When my code asks me Enter diamond size ("short", "average", or "tall"): how do i make it so that if i don't put anything and press enter it asks me exactly same questions again?? i tried putting input.length() == 0 or input.equals("") …

Member Avatar for Gnawk
0
81
Member Avatar for UrbanCondor

Hi all, I'm having a problem with a combination of Ajax / PHP / Javascript and I'm stuck. I've spent a fair amount of time googling possible solutions but I can't find anything. [B][U]What I am trying to do[/U][/B] I am using Ajax to query a MySQL database using an …

Member Avatar for Airshow
0
140
Member Avatar for dschuett

I have been doing some research on how to go about using a random salt per user's password. There are a few things that I am still unsure about. It is easy enough to store a random hash using something as the following: [CODE] <?php $password = 'MySuperSectretPassword!'; $salt = …

Member Avatar for dschuett
0
144

The End.