199,114 Archived Topics
Remove Filter ![]() | |
/* * 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, … | |
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 … | |
How to disable close button of a pop up window using javascript? | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 /> … | |
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; … | |
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 … ![]() | |
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 … | |
**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"; … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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']; } … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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(); } } | |
![]() | 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 ![]() |
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() { … | |
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 … | |
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", … | |
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; } | |
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 … | |
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 … | |
sir i would like to know how to encrypt an image in java (the classes and how to proceed) | |
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 = … | |
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 … | |
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, … | |
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 … | |
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...... | |
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 … | |
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> … | |
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 | |
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. … | |
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? … | |
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]); } … | |
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 … | |
![]() | 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 … ![]() |
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 … |
The End.