199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ratatat

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Gui; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; /** * * @author K */ public class Genres extends JFrame implements ActionListener { Connection conn = null; private Statement stmt, …

Member Avatar for JamesCherrill
0
185
Member Avatar for az_ez

Hi, I've been working on getting a GUI connected to a database so I can input data into the database. However when getting to the 'making a save button' I get this problem on line 14: Private da As New SqlDataAdapter("Select Name, Number, Email From Contacts", cs) Private ds As …

Member Avatar for az_ez
0
267
Member Avatar for divyakrishnan
Member Avatar for Cameronsmith63

Can it be done? <asp:MenuItem Text="Queries" Value="Queries"> <asp:MenuItem Text="New Query" Value="New Query"></asp:MenuItem> <asp:MenuItem Text="Search Queries" Value="Search Queries"></asp:MenuItem> <asp:MenuItem Text="Open Queries" Value="Open Queries"></asp:MenuItem> <asp:MenuItem Text="Resolved Queries" Value="Resolved Queries"></asp:MenuItem> <asp:MenuItem Text="Closed Queries" Value="Closed Queries"></asp:MenuItem> <asp:MenuItem Text="Cancelled Queries" Value="Cancelled Queries"></asp:MenuItem> </asp:MenuItem> Thanks

0
159
Member Avatar for harsha.netpem

Hello, I have got an error when i run this code.My query is updated but when I fetch the query then i got this error **mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\html-contact-form-captcha\update.php on line 44** please check the code is given below:- **** <!DOCTYPE html PUBLIC …

Member Avatar for thilipdilip
0
877
Member Avatar for ppetree

OK gang! I have another stumper! I want to add a variable to an array from within a function and I will not know the variables original name so how can I find this? For instance: [CODE] function AddVariable($vartoadd) { $varlist[] = $vartoadd; } $domain = http://www.dodatingsiteswork.com; AddVariable($domain); [/CODE] Once …

Member Avatar for jj_pix
0
212
Member Avatar for Khav

Hi I accidently double click on the toolbar and now ALL button on toolbar are gone. I want to reset it to default and get my buttons back. How to do that I tried to write click on Toolbar then Reset toobar , still no good I even tried reinstall …

0
143
Member Avatar for Gaiety

I have some strange problem which i started facing from yesterday. i have used GDB many times on my system , but yesterday when i started running GDB , my dubugger is enterings the library functions code part also which is very irritating for me. I mean if the program …

Member Avatar for _avishek
0
642
Member Avatar for MMadhavi

I have 2 table: 1 name is movie and another's name is screen. movie table contains fields like movie_id,movie_name etc. screen table contains fields like movie_id screen_id etc. I am going to add data in my screen table by user. So i want that if user enter the movie_id which …

Member Avatar for broj1
0
120
Member Avatar for vindyauwu

The private messages inbox display nothing.Can't find the error.Can anyone help?????????? <?php session_start(); require("configure.php"); if (isset($_POST['view'])) { $query = mysql_query("SELECT * FROM messages WHERE to_user = '$to_user' AND deleted = 'no'")or die(mysql_error()); while($row2 = mysql_fetch_array($query)) { echo "<table border=1>"; echo "<tr><td>"; echo "Message ID#: "; echo $row2['id']; echo "</td></tr>"; echo …

Member Avatar for broj1
0
273
Member Avatar for Peppercat101

I am writing a c++ program using MPI and I have been having trouble passing a array with send and receive. What I have so in my code(sorry if it is a messy(its almost 4am and i am very tired) /* * File: main.cpp * Author: Melissa * * Created …

Member Avatar for ravenous
0
832
Member Avatar for majoorpa

I am a newbie to php. I am simply trying to validate input from a login page. However I am always getting a positive boolean value when username is entered or not. Following is my code for the login page; [ICODE]<form method = "post" action = "entering.php"> LOGIN <br /> …

Member Avatar for senthil.nila
0
225
Member Avatar for rosse88

Okay, so I would like to say in advance, thank you for the help. With that said, I am having an extraordinary amount of trouble with some code. So here it is: function school_user_exists($school_user = false, $school_id = false) { if($school_user || $school_id) { $school_user = sanitize($school_user); $school_id = (int)$school_id; …

Member Avatar for rosse88
0
238
Member Avatar for bsewell

Hi, I'm trying to write a program using mysqli, so I have created a login page. I've tried looking for how to get an Insert statement ran using MySQLi, object orientated style. So it looks like my query isn't working but I don't know why so I wondered if someone …

Member Avatar for LastMitch
0
195
Member Avatar for np complete

This is a sample code using symbolic C++. #include <iostream> #include "symbolicc++.h" using namespace std; int main(void) { int i; Symbolic x("x"), y, z("z"); y = (x + 2)^3; cout<<" y = "<<y; for ( i = 0 ; i < 1 ; i++) { y = df(y,x); cout<<" y …

Member Avatar for np complete
0
334
Member Avatar for dazexo

**Basically im very new at C++ and im having trouble with this, this error keep popping up, any suggestions? Thanks** #include "stdafx.h" #include <iostream> #include <string> #include <ctime> using namespace std; string menu(); { //this is where the problem is string sSel; do { cout << "Guess my Number Game\n\n"; …

Member Avatar for dazexo
0
275
Member Avatar for PinoyDev

Good day! I am currently developing a notepad storage to hold the players information! In notepad I have this data: Where data is seperated by a comma. First is the playerID, PlayerName, PlayerScore. 202, Andrie Velez, 4500 203, Joseph Josh, 3500 200, Carl J0sefana, 4000 Ive created a sample code …

Member Avatar for np complete
0
238
Member Avatar for lockdon

I want to use awk to strip certain fields from the output of the Dell OMSA storage hardware diag tool. Typically the format of the output is: ID : 0:0:11 Status : Ok Name : Physical Disk 0:0:11 State : Online Power Status : Spun Up Bus Protocol : SAS …

Member Avatar for Watael
0
130
Member Avatar for khia02

Dim sqlconn As SqlConnection = New SqlConnection("data source=MCKAYLA\SQLEXPRESS;Initial Catalog=jhen_reg;Integrated Security=True") Dim sqlda As New SqlDataAdapter Dim sqlcmd As New SqlCommand Dim dt As New DataTable Dim sqlstr As String = "SELECT * FROM reg where Username=@Usernametextbox.text AND Password=@Passwordtextbox.text" With sqlcmd .CommandText = sqlstr .Connection = sqlconn .Parameters.AddWithValue("@Username", UsernameTextBox.Text) .Parameters.AddWithValue("@Password", PasswordTextBox.Text) …

Member Avatar for khia02
0
241
Member Avatar for lbgladson

I have an assignment where I am creating a BankAccount program. I have to create an ArrayList of BankAccounts and have the program ask the user how many accounts to create and then have a loop to ask the user for the accountId, name, and initial balance for each account …

Member Avatar for NormR1
0
2K
Member Avatar for sri_sep29

hi, i write a code like this $user_id = $hd_cookie['user_id']; $user_password = $hd_cookie['auth']; $sql = "SELECT * FROM hd_users WHERE user_id='$user_id' AND user_password='$user_password'"; $r_user = mysql_query($sql); $num=mysql_num_rows($r_user); //line 24 it shows Warning Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\helpdeskfinal\includes\auth.php on line 24 when i print …

Member Avatar for Starfox275
0
1K
Member Avatar for xbat

Here is my code.. I'm not sure if there is easyier way of doing this or not.. but pretty much what im looking to do is display the user invoice from a session variable.. the session variable would be MM_Username. $colname_curinvoice = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_curinvoice = $_SESSION['MM_Username']; } …

Member Avatar for xbat
0
134
Member Avatar for megax24505

I am writing a program that has to read a text file for a string that is surrounded by [ ]. I then want to grab the text behind it which is surrounded by ( ). The string i want to grab is in the same line as the one …

Member Avatar for megax24505
0
858
Member Avatar for piero.costa

Hi guys, I'm facing a new problem. Now I'm learning how to send signals to process in order to make them communicate. I was trying to create a process and when this process is created, send a signal to his father... But I had no success. I get a bunch …

Member Avatar for rubberman
0
757
Member Avatar for haritha.devarakonda

Create a new project called petstore_domain create 2 packages one com.anblicks.domain second com.anblicks.domain.test move all domain model in to package one and keep all the tests in package 2 Make the Catalog Class Singleton Class Create a testCatalog Class in the second package create atleast 10 tescases for testing the …

Member Avatar for NormR1
0
688
Member Avatar for zoreli

Hi After learning jquery for about a month, I make an attempt to make username & password authentication form. Howver, i get stuck 2 days now, and i will soon start bumping my head against the wall. What I am trying to do is if user enter the wrong username …

Member Avatar for zoreli
0
322
Member Avatar for trishtren

Hey, im looking for a way to get a double value to follow the IEEE 754 standard, iv seen a number of librarys for it on java but i had my doubts to whether it was a problem that wasnt solved already with a java standard library. The value i …

Member Avatar for trishtren
0
238
Member Avatar for himanshu04

Using system Class Example { private void himanshu() { int starting=10; int returned =Docalculation(starting); } private int Docalculation(int receiving) { int multip=receiving *2; return multip; } static Void Main() { example ex=new example() ex.Docalculation(); } }

Member Avatar for andur92
0
72
Member Avatar for iamthwee

Wanted to say a quick thank you to all those who helped me with my php questions. But I failed on the technical side, so didn't get the job. I'd post up the questions but it's pretty straight forward. I just too long I guess. ta

Member Avatar for iamthwee
0
77
Member Avatar for ezekel

Hi, I need some help on my stack i could not input the infix because it will generate error when i compile,and it says that non-static method priority (char)cannot be reference from a static context....Thank you in avdvance. public InfixToPostfix(int size) { stack=new Object[size]; top=0; } public boolean isEmpty() { …

Member Avatar for ezekel
0
590
Member Avatar for l.pavel

I have several classes that can raise same event: classA, classB, classC all can RaiseEvent "DlFinished", "TableUpdated", "ReportProgress". Since all 3 classes give me about the same information, I created an user control which displays the data. Now this may not be the best way to handle this situation, but …

Member Avatar for l.pavel
0
116
Member Avatar for thedancingbug

Hello friends, I have to create a dense array called "monthName that contains the names of all 12 months starting with "January" So far, I have created this: function showDate(thisDate) { var thisWDay=Today.getWeekday(); var thisDay=Today.getDate(); var thisMonth=Today.getMonth(); var thisYear=Today.getFullYear(); var variable=new Array(monthName[0]="January", "February", "March", "April", "May", "June", "July", "August", "September", …

Member Avatar for thedancingbug
0
188
Member Avatar for billionair

I'm trying to make a C program to run DOS commands but I keep getting "illegal command" error. Here's the code. #include<stdio.h> #include<process.h> int main() { system("ipconfig/all"); return 0; }

Member Avatar for Ancient Dragon
0
847
Member Avatar for Bumpehh

ive been searching the web for a 2d free game engine compatible with c++, and i cant find any! So i would like to know, if there is any that you guys know about? most people direct me to lib librarys, but thats not what i want. btw, sorry if …

Member Avatar for myk45
0
235
Member Avatar for mrclark

I am not to sure where to put this post but this seemed like the best place. I am currently writing scripts for page redirects, however, I can not get my .htaccess redirects working first. I need to take from my root, and redirect to a subscript: http://www.example.com -> /index.php …

Member Avatar for Squidge
0
249
Member Avatar for ankit.sinha.31521
Member Avatar for trishtren
0
585
Member Avatar for Sanchixx

I am makeing a comment system, i have a string where i remove html code: `$area = stripslashes(htmlspecialchars($area));` But i replace text sometimes by code, but it doesn't work because of the code above: $txtSmileys = array (':-)', ':-('); $imgSmileys = array ('<img src="smiley.jpg" />', '<img src="smiley-sad.jpg" />'); $text = …

Member Avatar for Sanchixx
0
186
Member Avatar for psy.blast

import java.util.Scanner; import java.util.*; public class Interest { public static void main(String[]args) { double interest, primary, period, amount, yearly, monthly, daily, weekly, quaterly, bianually, time; Scanner Scanner = new Scanner(System.in); System.out.println(" How much money is the person wanting to loan?"); primary = Scanner.nextInt(); System.out.println("Please enter the rate of interest."); interest …

Member Avatar for steph7
0
250
Member Avatar for yasaman.jokar

i have some problem with 16 features for image ... 1) The horizontal position, counting pixels from the left edge of the image to the center of the smallest rectangular box that can be drawn with all “on” pixels inside the box. 2) The vertical position, counting from the bottom, …

Member Avatar for np complete
0
118
Member Avatar for LD Company

Hello. I started making my software and i using database. When I select record in database and click Delete Button i got error message: **Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.** The code of my Delete Button is: Private Sub DeleteMember_Click(ByVal sender As System.Object, ByVal …

Member Avatar for Dili1234
0
430
Member Avatar for Dili1234

I 'm doing an application using vb.net 2008 and sql 2005 i want to know whether it is possible load data into message box from database when form is loaded......

Member Avatar for Dili1234
0
569
Member Avatar for chotep

Hi! I'm having a problem in database.. I have this SQL for my vb.net project Sql = "SELECT STUDENTS.stud_id, STUDENTS.stud_no, [stud_last] & '" & Me.Label1.Text & "' & [stud_first] AS Expr1, STUDENTS.gender00, STUDENTS.course00, SECTION00.sec_code, STUDENTS.Q1, STUDENTS.Q2, STUDENTS.Q3, STUDENTS.Q4, STUDENTS.Q5, STUDENTS.Q6, STUDENTS.Q7, STUDENTS.Finals, STUDENTS.username00, STUDENTS.stud_id FROM SECTION00 INNER JOIN STUDENTS ON …

Member Avatar for G_Waddell
0
114
Member Avatar for bhagawatshinde

Hi Guys, I have an xml file contains the imagedata attribute. now while reading xml file using dataset i was setting this field to string and insert it to another table that have also image field. when i am tring to retrive this image it's not a actual image. <ImageData>/9j/4AAQSkZJRgABAQAAAQABAAD//gA+Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2NjIpLCBkZWZhdWx0IHF1YWxpdHkK</ImageData> …

Member Avatar for gusano79
0
334
Member Avatar for 47pirates

How can i change my java program in netbeans(currently) so that i can install my program in any other computer? Which is the currently best tool plzz help

Member Avatar for 47pirates
0
201
Member Avatar for weirdCreature7

I have the following codes, I wanted to show a message box when the value in month (in the textbox) is less than the value of $month (date("n")), when the next button is clicked. When I run my code, the next button disappears! Please help me to solve my problem. …

Member Avatar for hr.Ziggurat
0
216
Member Avatar for branding4you

this is weird, I have form and on this form three file uploads and submit button, when i change the button to image (so it looks better than this old thing on my website) it does not upload the files The button however works 100%, am i missing something here? …

Member Avatar for ab_omid
0
5K
Member Avatar for Orymeyer

Considering the following lines of C code: #include <stdio.h> #include <stdlib.h> #include <ctype.h> void print_upper(char *string); int main() { char s[80]; printf("enter a string\n"); gets(s); print_upper(s); printf("\ns is now in upper case: %s",s); return 0; } void print_upper(char *string) { register int t; int k; for(t=0;string[t];++t) { string[t]=toupper(string[t]); putchar(string[t]); } …

Member Avatar for Vish0203
0
146
Member Avatar for shraddha_gupta

I have created a userConfig file to add MSGOTHIC font to FOP. <fop version="1.0"> <renderers> <renderer mime="application/pdf"> <fonts> <!-- register a particular font --> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="normal"/> </font> <font metrics-url="file:/tmp/msmsgothic.xml" kerning="yes" embed-file="file:/tmp/msgothic.ttf"> <font-triplet name="MSGothic" style="normal" weight="bold"/> </font> </fonts> </renderer> </renderers> </fop> Now I have set …

0
194
Member Avatar for I_m_rude

hi... Can anyone please explain that why we always take 6 points into consideration while finding closet pair of points in a given set of points ?This problem is solved using divide and conquer algorithm. And if anyone please give me psuedo code for closest pair problem, then i will …

Member Avatar for I_m_rude
0
182
Member Avatar for Covinus

can anyone explain about assertion failure. i cant seem ti fix my problem with this error. it comes out when i try to load a file. here part of the code [code=c++] BDLL fileHandle::load() { char fileN[MAX_PATH]=""; OPENFILENAME ofn; ZeroMemory(&ofn, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); ofn.lpstrFilter = "Bitmap Files (*.bmp)\0*.bmp"; ofn.lpstrFile …

Member Avatar for fillygirl1213
0
192

The End.