199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Imratzio

Hey everyone I was hoping if you can help me fix errors on a admin login form im using. Heres the code [CODE]<?php session_start();//works with session cookies, helps have persistant data i.e. if user is not logged in there will be no session variable if(isset($_SESSION["manager"])){//if it does not set session …

Member Avatar for Imratzio
0
226
Member Avatar for bleedsgreen33

Working with large int numbers. Broken up as char for each digit, total of 3 arrays, n1, n2, and sum. I have everything completed, the math works fine, the arrays work fine, the shuffling to the right side of the array works fine. I just have two issues, that both …

Member Avatar for bleedsgreen33
0
195
Member Avatar for bettybarnes

Conversion from string "Widow/Widower" to type 'Integer' is not valid. here is my code [CODE]classLibrary.addParameter("@Sex", SqlDbType.VarChar, txtSex.TextLength, txtSex.Text) classLibrary.addParameter("@Room_ID", SqlDbType.VarChar, txtRoom_ID.TextLength, txtRoom_ID.Text) classLibrary.addParameter("@CivilStatus", SqlDbType.VarChar, cboxCStatus.SelectedItem, cboxCStatus.Text) classLibrary.addParameter("@Nationality", SqlDbType.VarChar, txtNationality.TextLength, txtNationality.Text) classLibrary.addParameter("@Religion", SqlDbType.VarChar, txtReligion.TextLength, txtReligion.Text)[/CODE]

Member Avatar for jlego
0
240
Member Avatar for dschuett

Hi all! I am working on making a dashboard for the inventory of our trucks. I'm having some problems with figuring out how to calculate the percentage of the total SUM of trucks per MAKE without running two different queries. You can see below what I have working this far, …

Member Avatar for diafol
0
165
Member Avatar for Duki

I need to generate a core file for a crashing process and then read it using dbx - can anyone help me with this?

Member Avatar for nezachem
0
106
Member Avatar for Acute

I have a column "etype" which stores enum('r', 'p'). So with each selection I want to extend the row number until the number of etype->'p' will reach some number, for instance 10. If I use LIMIT 10, the total number of rows will be 10, but there is no guarantee …

Member Avatar for smantscheff
0
119
Member Avatar for elson.james

Hi everyone, I'm having a problem on passing values from my combo box. Let me show you first my code. I have 2 files [B]test.php and view.php. [/B] This is what's [B]inside the test.php[/B] [CODE] while($row = mysql_fetch_array($strSQL)){ $data .= "<tr>"; $data .= "<td>"; $data .= "<input type='checkbox' class='memberchk' name='membersID[]' …

Member Avatar for sudeepjd
0
161
Member Avatar for prvnkmr194

I have a 2d array of size 4X4 that is [CODE] int arr[4][4]; [/CODE] i want to initialize this from 1-15 but in random manner not sequential example 7 8 9 5 1 2 12 14 3 6 10 13 11 4 15 0 I try [CODE]random()[/CODE] function but iam …

Member Avatar for prvnkmr194
0
438
Member Avatar for livinFuture

I'm reading about two-dimensional and multi-dimensional arrays at the moment in order to better organize user input. I'm trying to create a function that can store a card player's hand. At the moment I'm just brainstorming how it would look and writing out some notes to myself to organize it …

Member Avatar for caut_baia
0
284
Member Avatar for Planetdune

Hey, I have a online mysql database and it has a table with a few thousand records. Now nothing special there, my question is however. One of the fields of every row has content like this: 2 9 14 119 5 543 1479 35 90 .... <-- this field will …

Member Avatar for pritaeas
0
162
Member Avatar for jmcgranahan

I have searched and search for a simple solution to my problem but alas, I have had no luck, so I am turning to this forum for assistance. If you are familiar with Google Gadgets and AJAX, then this question is for you. I am trying to create a Google …

0
204
Member Avatar for puvi

hiii ppl of the forum.. I have this date field in the form, i managed to get the calender script work, when i select the date, it appears properly in the text field, but on cliking submit, it gets stored as 0000-00-00 in the database. any idea frens what is …

Member Avatar for puvi
0
97
Member Avatar for ryathegr8

hi em doing BS.Software engineering, as its my last semester and want to take Final year project. em just confuse of what to take. i want to do something for my university but as i gone through my university systems they are hell complex. can anybudy suggest me. i want …

Member Avatar for ryathegr8
0
190
Member Avatar for abhi10kumar

Is it possible to change the caption of buttons of messagebox (change 'Yes' into 'Save' and 'No' into 'Discard'), If yes, then How it can possible and access the values of the clicked button ??

Member Avatar for ddanbe
0
118
Member Avatar for Lord_Migit

Hey folks, just a quick question i can't seem to find the answer to. If i overwrite a container with a pointer in it, does the pointer and therefore the object it points to still exist, and would that be considered a bad handling of memory. For instance. I have …

Member Avatar for Lord_Migit
0
145
Member Avatar for bettybarnes

this is the error message... The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Admission_Record_PT_Chart". The conflict occurred in database "HospitalManagementSystem", table "dbo.PT_Chart", column 'Chart_ID'. The statement has been terminated. my code is [CODE]Imports System.Data.SqlClient Public Class Admission Private cs As New SqlConnection("Data Source=SAbio;Initial Catalog=HospitalManagementSystem;User ID=sa;Password=TRACERT123") Private da As New …

Member Avatar for bettybarnes
0
241
Member Avatar for rhyll07

hi...is there anyone help me to make an inventory system using ADODC as a connection for database...MS ACCess. inventory system format: 1. form that can monitor the available stocks 2. form for incoming stocks 3. form for stocks sold 4. form for adding stocks and 5. for product updates. thanks …

Member Avatar for AndreRet
0
93
Member Avatar for abelingaw

Ok, I'm having problem on how to save texts with quotes. Let's say I'm saving a value in a textbox like O'Neil. That's where I receive an error. How do I save names or texts like O'Neil or texts with qoutes? Here's my code for saving: [CODE] With RecSet .Open …

Member Avatar for AndreRet
0
147
Member Avatar for vaibhav1983
Member Avatar for lishannx

the above code pasted can only drag the button but not into the picturebox. pls help.[code]hi, i need to drag a button into a picturebox and when the button is dragged inside the picturebox, i want it to be able to move around also. but my code i did only …

Member Avatar for fkomment
0
151
Member Avatar for Behi Jon

Hi, Why I get access violation in this code ? [code] char *arr[ 5 ]; for( int i = 0; i < 5; i++ ) cin >> arr[ i ]; [/code] but not in this : [code] char *arr[ 5 ]; char list[ 5 ][ 30 ]; for( int i …

Member Avatar for Narue
0
100
Member Avatar for lilsean67

Okay here is go this is my first time posting to this website and I hope I can get this all right for you all. I have stated this program and I gt know errors but the program will not run past my first cin cout statements? Does anyone see …

Member Avatar for lilsean67
0
116
Member Avatar for ditty

Hi i have a news table. I am using the query "select * from news_table where news_id in(8,3,6,1)". This query is working properly. But the problem is i need to return the rows in the same order what we give in the 'in' clause. ie, first record with news_id 8 …

Member Avatar for mahavir123
0
90
Member Avatar for newcoder310

Hi What is the best way to go forward with finding all possible combinations of nCr Eg: 5C3 for the number 12345 123 134 135 145 234 235 345 Like that thanks

Member Avatar for ztini
0
133
Member Avatar for elsiekins

Hello Using : [CODE] cout << "enter 5 letter"; getline(cin, letter); [/CODE] executes fine but when running PC- Lint: getline(cin, expectedLabel): error 534: (Warning -- Ignoring return value of function 'std::getline(std::basic_istream<char,std::char_traits<char>> &, std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)' error 830: (Info -- Location cited in prior message) I was wondering if anyone could tell …

Member Avatar for Narue
0
259
Member Avatar for RenanLazarotto

Hey guys! Some time ago, I saw someone asking about trial software protection, and my first thought was a '30-day evaluation' mode. I was thinking on how it can be done without using any third-party programs. How can I detect the first run and count down (or up) the number …

Member Avatar for CodeWord
0
348
Member Avatar for Arbus

Hello friends, I am having a trouble with dosbox 0.72. I opened turbo c++ using dosbox and tried a program. But it throws an error 'unable to create hello.obj'. my program [CODE]#include<iostream.h> #include<conio.h> void main() { cout<<"hello"; }[/CODE] I gave this while opening turbo c++ in dosbox... Z:\>mount c d:\turboc3\ …

0
64
Member Avatar for Annettest
Member Avatar for yukikazemedia

Hi, I have this really important project where in, I must perform the following tasks. VIEW - view records that are present in the database using a "primary key" ADD - add new records to the database EDIT - a specific line in the said record within the database [INDENT]Under …

Member Avatar for javaAddict
0
189
Member Avatar for Ignatius88

[CODE] pstmt = conn.prepareStatement("INSERT INTO tableA (userid, itemid) VALUES (?, ?) ON DUPLICATE KEY UPDATE value = ?"); pstmt.setString(1, userid); pstmt.setString(2, itemid); pstmt.setString(3, value); pstmt.executeUpdate(); [/CODE] This code works [CODE] pstmt = conn.prepareStatement("INSERT INTO tableA (userid, itemid) VALUES ((SELECT userid FROM user WHERE userid = ?), ?) ON DUPLICATE KEY …

Member Avatar for smantscheff
0
3K
Member Avatar for thijscream

hey, it has been a couple of months since i have been here, and let's get strait to the point. someone told me you can change the page title of a dynamic link with the .htaccess file. for example i have a page. [url]http://www.mywebsite.com/page.php?id=1[/url] i include this page for different …

Member Avatar for smantscheff
0
2K
Member Avatar for Jake.20

I'm having a problem with the error in verifying the usernames that are already existing in the record/database. When you inputted a username that already existing it will throw an exception, and when you change the username, it still throws the exception.

Member Avatar for Jake.20
0
173
Member Avatar for sea

Does anyone have an example of how to disable PHP Safe Mode for a specific directory? My PHP is configured as an Apache module. Thank you

Member Avatar for karmafunk
0
1K
Member Avatar for alex55

I have a program which i need to run with 2 input files 1 is no problem but i have no idea where to start with having it run with 2 anyone have any ideas? basically heres how it goes 1)have the program run with data01.dat 2)outputs results to output.dat …

Member Avatar for alex55
0
226
Member Avatar for tomtetlaw

I find the OpenGL Co-ordinate system really hard to use. I would much rather have things like glVertex2f(-100,-100) put a vertex back 100 pixels in the X and Y direction from the origin, instead of it being totally off the screen. Is there any way that I can do this? …

Member Avatar for myk45
0
268
Member Avatar for james6754

I have this... [CODE] class Program { static void Main(string[] args) { Console.WriteLine("Please enter name of DVD"); object objectname = Console.ReadLine(); Program2 myob = new Program2(objectname); } public int number = 0; public string myString = "DVD"; public double myDouble = 2.0; } class Program2 { public Program2(object objectname) { …

Member Avatar for Kru
0
118
Member Avatar for bdkminang

How to write this problem.. a. Show the customer the different breakfast items offered by the HIFI's restaurant. b. Allow the customer to select more than one item from menu c. Calculate and print the bill to the customer Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast …

Member Avatar for bdkminang
0
814
Member Avatar for bugista

Hello All I was using Java for capturing the screen and printing it. Now I need to capture the window, which is a ALt +Printscreen of Windows. I tried in Java. Could you pls help? Thanks in advance

Member Avatar for zach&kody
0
94
Member Avatar for bhagawatshinde

Hi, I am developing an windows application in that i want to check internet connection for that i am written the following code but it seems to be not working . Can anybody help me...... [CODE] [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue); public static bool IsConnectedToInternet() …

Member Avatar for Momerath
0
168
Member Avatar for coolcool1980

Hi folks, I have a java maze, I cant seem to pass the 2d array to the next method. Any ideas on how i can do this? I need to get the character to move around the maze. Thanks [CODE] public class arrayAttempt1 { static int i=0; static int j=0; …

Member Avatar for coolcool1980
0
3K
Member Avatar for plang007

I need a lot of help with this program: I know this is a homework problem but I am really struggling with it. This program requires you to input information about rickshaw taxi fares. The ODUSPORTS is a student powered on-campus rickshaw transportation system. Upon departure, a ticket is created …

Member Avatar for ravenous
0
724
Member Avatar for jasleen12345

[CODE] #include<iostream> #include<fstream> #include<string> using namespace std; int main() { cout<<"Start entering your text\n Put a * to terminate\n"; ofstream fout; fout.open("1818.txt"); int i=0; char c; while((c=getchar())!='*') { fout<<c; } fout.close(); ifstream fin; fin.open("1818.txt"); int word=1; int line=0; int vowels=0; while(fin) { fin.get(c); if(c==' ') word++; else if(c=='\n') line++; else …

Member Avatar for ravenous
0
637
Member Avatar for Phatsimo Mosiam

helow everyone!when i execute the following code,i have saved it as validateInfo.java it tells me that line 5:duplicate class:validateInfo.Please help public interface validateInfo { public void validate(String empcode, String password); } class validateInfo implements validateInfo { public void update() { //code to update information of customer } public static void …

Member Avatar for javaAddict
0
107
Member Avatar for As0o0o0ma

hello every one in my project this semester, i decide to develop a small application for mobile using java. this app allow user to change font size,color and style.. i want to know the following: 1.is it possible? 2.can you tell my the instruction and structure of how to write …

Member Avatar for As0o0o0ma
0
114
Member Avatar for bhagawatshinde

Hi, I need to hide calender of datetimepicker in (c#).net. Thanks in advance

Member Avatar for bhagawatshinde
0
93
Member Avatar for format_c

error C2784: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_istream<_Elem,_Traits> &' from 'std::ifstream' 1> C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string(527) : see declaration of 'std::getline' [CODE]void read() { Inventory items[100]; string line; int i=0; ifstream inventdata; inventdata.open("Inventory.dat", ios::in); if( !inventdata ) { cout << "ERROR: Unable to …

Member Avatar for Fbody
0
483
Member Avatar for Shizuo

[code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Books extends Applet { Choice b; String [] blist; //CheckboxGroup edition; int i; public void init() { setBackground(Color.green); add(new Label("Please Pick a Book:")); b = new Choice(); blist [0] = ""; blist [1] = "Java Programming"; blist [2] = "C# Programming"; blist …

0
100
Member Avatar for veledrom

Hi, How does a barcode reader stores barcode data? I heared that it stores as simple txt file. Let's say I've scanned 5 barcodes. Does it create 5 individual txt files with info in them or Does it create only one txt file and store information related to the all …

Member Avatar for pritaeas
0
91
Member Avatar for yassop

[CODE]#include <stdio.h> float pounds = 0, inches = 0, BMI = 0; float kg = 0, meters = 0; char input[100], choice; int main() { start: do { printf("\n\nThis program is used to calculate the BMI of a person.\n\n\n"); printf("What kind of BMI do you want to calculate?\n"); printf("(Imperial(i/I) or …

Member Avatar for yassop
0
309
Member Avatar for thes0mething

I'm currently working on a tic-tac-toe program and it is working to the point that it runs and X's and O's appear. However when the right combination is made or the board gets full the method "Resultat();" should recognize it and "Clear();" should clear out the board and a JFrame …

Member Avatar for thes0mething
0
152

The End.