199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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] | |
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, … ![]() | |
I need to generate a core file for a crashing process and then read it using dbx - can anyone help me with this? | |
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[]' … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ?? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ![]() | |
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 … | |
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 … | |
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\ … | |
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 … | |
[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 … | |
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 … | |
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. | |
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 | |
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 … | |
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? … | |
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) { … | |
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 … | |
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 | |
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() … | |
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; … | |
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 … | |
[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 … | |
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 … | |
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 … | |
Hi, I need to hide calender of datetimepicker in (c#).net. Thanks in advance | |
![]() | 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 … |
[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 … | |
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 … | |
[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 … | |
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 … |
The End.