199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for laklaker

I created a game a random guessing game ( for school project ) . I just want to ask on how to put a hall of fame? Like when you played the game then its end it will be putted his/her name then it will be saved. Then it will …

Member Avatar for DavidKroukamp
0
199
Member Avatar for Eragah

[B][I]Hi I wanted to ask a quick question. I have two classes. And within my main class i am able to pass in variable to three variables EyeColorR to EyeColorB and able to send them the my Eye Class under the consturctor class Eye. the catch is I need to …

Member Avatar for Eragah
0
215
Member Avatar for shotokanpoloto

Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with …

Member Avatar for shotokanpoloto
0
224
Member Avatar for HelloMe

Hello guys... I downloaded JDK 6.0 (btw is it the same as JDK 1.6?) Anyways, when i want to install it a error message pops up during instalation that says: [B]Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could …

Member Avatar for aliartos
0
722
Member Avatar for evilguyme

Hey guys.. i need some help.. lets say i have a table and i have a column called 'brand'. Then for each record, for brand name i put say Nokia, Apple etc. i want it so that i can create a php page that displays records with only brand = …

Member Avatar for evilguyme
0
85
Member Avatar for issaru07

the output of my page is correct yet it shows Notice: Undefined variable: total in D:\xampp\htdocs\book\includes\functions.inc.php on line 36 is there any ways to resolve this? thanks [CODE] <?php function writeShoppingCart() { $cart = $_SESSION['cart']; if (!$cart) { return '<p>You have no items in your shopping cart</p>'; } else { …

Member Avatar for cereal
0
366
Member Avatar for amityadav9314

I have two table named:[B] Blog[/B] for displaying blogs post and [B]comments[/B] for displaying comments section for each blog post. The fields for these are as follows: [B]For Blog:[/B] 1: blog_id 2: title 3: body 4: author 5: updated [B]For Comments:[/B] 1: comments_id 2: username 3: email 4: comment_body 5: …

Member Avatar for SANJAY26
0
355
Member Avatar for masterjiraya

I found a way on how to code the backup for mysql database table. but I was wondering on how PMA(PHPMyAdmin) does this scenario on backing up the sql file. the one that has AUTOMATIC download to your machine. this is the simple syntax I made myself [CODE=PHP]<?php /*TOOLS YOU …

Member Avatar for pritaeas
0
187
Member Avatar for Hmail

Hi all, I am working on a little application that displays internet video (using the chromeless Youtube player for now, will host more players later). So obviously I need something like a trackbar (slider) control to let the user jump to a specific position in the video. I do this …

Member Avatar for skatamatic
0
145
Member Avatar for stroper

We have to make a little webshop in HTML, Css and javascript. Everything but the div's are to be made in JS, also the table's we can't make them in HTML. In the left (Links div) we make a couple of links, in the middle div (dynamicLeft) we have to …

Member Avatar for Easyrider439
0
158
Member Avatar for Bheeman89

hi friends. Im currently working in integrating GR Fingerprint SDK with vb.net application. I am using MSSQL 2008 as my database and vb.net as the front end. I have completed almost 90% of the application and im stuck in integrating this SDK with my application. It has an error such …

Member Avatar for Reverend Jim
0
651
Member Avatar for behrad kiani

I try to converting bytes with 8 digits into ASCII code for example if user enter "0000111" the program convert it to it's ASCII code and shows 'p'(the value of character c in the code below became 'p') [CODE]public static void main(String[] args) { Byte bytes; char c; Scanner input=new …

Member Avatar for JamesCherrill
0
325
Member Avatar for silent.saqi

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data.Sql; using System.Data; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.Shared; namespace test { public partial class WebForm1 : System.Web.UI.Page { string username; string fname; protected void submit_Click(object sender, EventArgs e) { username = nametxtbox.Text; fname = fnametxtbox.Text; CrystalReport1 …

Member Avatar for silent.saqi
0
228
Member Avatar for filipgothic

I want to make option to approve users before they can login or to ban them, here is code [CODE]<HTML><HEAD><TITLE>Fakultet informacionih tehnologija</TITLE> </HEAD> <BODY TEXT="#ffffff" BACKGROUND="fakultet/Assets/bg.jpg" LINK="#FFFF00" VLINK="#CDCD00" BGCOLOR="#000000"> <CENTER><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="700"> <CENTER> <FONT SIZE=+4 FACE="arial,helvetica"> Fakultet informacionih tehnologija <HR> </CENTER> <?php session_start(); // dBase file include "dbConfig.php"; …

Member Avatar for LOVE_outofLIGHT
0
318
Member Avatar for mandy011

Hi all, I am developing a search engine as project in PHP and MySQL as backend . I have implemented crawler , now i am facing problems in searcher . When a user enters any query by default i want to accept it as OR Query i.e. I want to …

Member Avatar for mandy011
0
163
Member Avatar for Beennn

First off im sorry if this is the wrong place to be asking. Im looking for some advice on where I should start, heres some background information on my experience. Iv been software developing for several years now working with websites, computer applications and computer games and have an understanding …

Member Avatar for Beennn
0
230
Member Avatar for dineshswamy

im solving a problem in linked list.how to check loop inside a linked list. i ve done implentation. always it goes without any error. but sometimes it encounters segmentation error. i dont find wny error or warning other than that.please try to help me figure out [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> …

Member Avatar for zeroliken
0
135
Member Avatar for Hawk123

i tried to customize the column name because the column name in my datagridview comes directly from the table column name, which is kindda odd. i browse throught this forum and other forums on howto's but i get this wierd error. [CODE] Dim dgTS As New DataGridTableStyle Dim ColStyle As …

Member Avatar for Hawk123
0
531
Member Avatar for shuchi0113

int main(){ int near * ptr=( int *)0XFFFF; ptr++; ptr++; printf(“%p”,ptr); return 0; } Output:0003 why the op is 3 and how to convert 0XFFFF into its decimal equivalent?

Member Avatar for shuchi0113
0
586
Member Avatar for TrickyT

Writing my second program for a class. It requires the following: [COLOR="Green"]Create a non-GUI-based Java application that calculates the payroll for a department in an organization. [COLOR="Green"]The application should display text that requests the user input for the name of the department, the number of employees in the department, and …

Member Avatar for TrickyT
0
144
Member Avatar for sw8revenge

gud day... i just wanna ask if someone could give me a sample code of a user's activity log ..where it records the time of login and logout of the user .. and also records the users deleted, created and updated data... .tnx :D and should i also create a …

Member Avatar for sw8revenge
0
1K
Member Avatar for Upoma

in my recent project the user need to attach document when filling a form.But dont have any idea about the implementation.how may i do this?if you have any idea,please help me.

Member Avatar for bkd
0
127
Member Avatar for riahc3

Hey Im going to use some federated tables that I need but I know that the engine does not support foreign keys. Im thinking of alternatives and this is the one so far: Tables from the remote side and related related with a foreign key on the local side. Its …

Member Avatar for riahc3
0
877
Member Avatar for lianpiau

I want display 1 record become 4 record for print label purpose. For Example, Model A quantity is 100 pcs, every package only can 25pcs. so I want display as attach picture in datagridview in C#. quantity records is based on Quantity / ItemPerPackage.

Member Avatar for thines01
0
182
Member Avatar for rfrapp

I'm making a website, and my index is a php file, whereas the other 6 pages are html. Whenever I click on the "Home" button, it says that it can't find index.html, but that's obvious because it's called index.php. Any way to fix this? If I'm being too vague, then …

Member Avatar for rfrapp
0
306
Member Avatar for edwords12

I want to know what to do if i have some content in a text file, i wish to preprocess it by removing certain things. from the file the text file has content as shown below sub_401000 proc near [B]; [/B]CODE XREF: sub_4021FD+7Fp [B]; [/B]sub_403366+40Dp ... loc_401019: ; CODE XREF: …

Member Avatar for sorry711
0
170
Member Avatar for vincenzorm117

I have been having trouble developing a function that frees all of the memory associated with structs of a linked list. Im not asking for a clear cut answer, just an idea or a function that can aid. F.Y.I. the linked list contains a head struct and a tail struct …

Member Avatar for sorry711
0
237
Member Avatar for zerose

I'm doing speech recognition application. Now my application can recognize my speech command, but somehow my application still not working. Is it because i did not trigger an event like .getSource()? This is part of my program: [CODE] public void resultAccepted(javax.speech.recognition.ResultEvent e) { try{ Result r = (Result)(e.getSource()); ResultToken tokens[] …

Member Avatar for zerose
0
220
Member Avatar for SeniorAlexandro

Alright, I have a Form with a Media Player in it. Which plays a Song. [CODE]AxWindowsMediaPlayer1.URL = My.Computer.FileSystem.CurrentDirectory & "\Music.mp3" AxWindowsMediaPlayer1.Ctlcontrols.play() AxWindowsMediaPlayer1.settings.playCount = 999 Me.Opacity = 0 [/CODE] It's playing in the background since the Form is hidden. When I play it [B]in[/B] Debug, everything works fine. When I run …

Member Avatar for SeniorAlexandro
0
693
Member Avatar for VB 2012

Okay Ive found some code on how to display Virtual and Physical Memory but its not working :'( any help :@ Here i show the timer will start : [CODE] Private Sub TabControlMemFreePlus_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlMemFreePlus.SelectedIndexChanged If Me.TabControlMemFreePlus.SelectedIndex = 1 Then LoadStorageToolStripMenuItem.PerformClick() Call UpdateProcessList() …

Member Avatar for codeorder
0
180
Member Avatar for deathmagnetix

Write an application that computes the cost of a telephone call. The inputs are the time the call was placed (this should be written as a 24-hour time, e.g., 2149 for a call placed a 9:49p.m.), the duration of the call in minutes, and the distance in miles of the …

Member Avatar for deathmagnetix
0
170
Member Avatar for starlight849

I'm using the printf function to display some textual information. It is possible that the string may contain different symbols such as $#%^&* somewhere within the text. I know that to handle the % that I need to use a %% to make the string evaluate correctly. for example: [CODE] …

Member Avatar for starlight849
0
203
Member Avatar for nickliutw

I'm creating a program by using the generic array that allow user to define the capacity or use the default capacity. I'm running some problems with casting and methods is not exist errors when I tried to store the data into array. Here is my constructor and methods class: [CODE] …

Member Avatar for stultuske
0
102
Member Avatar for warlord902

I am new to JSP/Servlets, so here is what I am trying to do: suppose my url is [url]http://mywebsite.com/[/url] and user come on this and it shows a login form, after submitting the form I want to keep the url the same as before that is [url]http://mywebsite.com/[/url] means it should …

Member Avatar for bkd
0
499
Member Avatar for vyrte

hello everyone! i'm writing a program where i want to choose a random double but not greater than "i" which is a specific value --lets say 60--i'm doing the following: [CODE]double b = rand()%i+1[/CODE] and i get the error while compiling : [I][U]invalid operands of types 'int' and 'double' to …

Member Avatar for vyrte
0
241
Member Avatar for Fungus1487

below is a very simple encryption class which shows how to encrypt sensitive data (very simply) this example converts a string to hexadecimal form and back again with some simple error handling. please leave some feedback if you find this useful

Member Avatar for enelramon
0
370
Member Avatar for Karlwakim

Hi everybody, I am currently learning c++, and i would like to know more about java. As you know, c++ has no built-in functions to build GUI apps, does java have built-in functions to build gui apps ? Or we need 3rd party libraries ? Thanks

Member Avatar for Karlwakim
0
164
Member Avatar for mitrious

I have a node class that has a Node* parentNode atribute. My constructor is as follows: [CODE]Node::Node(Node* p,const State& s, int d) : parentNode(p), currentState(s), depth(d){ }[/CODE] BUT with this constructor I get a problem: I'm using this class to run a AI Search and at depth 3 it generates …

Member Avatar for mitrious
0
213
Member Avatar for 21122012

It is supposed to show up details of a room selected, but the first record in database is always displayed. The link is incorrect too.. http://test/action/roomDetail.php?roomID= The value is missed... ROOM: <table border="0"> <tr> <td> <p> <label for="room">選擇房間</label> <select name="roomID"> <?php do { printf('<option value="%s">%s</option>', $row_rsRoom['roomID'], $row_rsRoom['roomID']); } while ($row_rsRoom …

Member Avatar for Zagga
0
116
Member Avatar for richboy

Hello guys, i am new to PHP and finding it interesting difficult at the same time. I need to connect to an access database depending on the selected menus in the drop down box and printing the selected field in a table. Here is my code [code=php]<?php $ch1 = 'unchecked'; …

Member Avatar for diafol
0
140
Member Avatar for Zssffssz

I'm trying to write an echo like thing doing this : [CODE]> echo Muffins Muffinst > echo two muffins two muffins[/CODE] The problem Is that the program isn't being started from command line, The > is my programs input prompt (trying to write a very simple command line) How would …

Member Avatar for WaltP
0
259
Member Avatar for stakeMyHeart

im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I …

Member Avatar for stultuske
0
288
Member Avatar for KasmIR

[CODE]for ( i=0;i<a;i++ ) { qin.Echo(); qin>>b; if(b == (char)8) { total--; cuv[i-2]=cuv[i-1]; cuv[i-1]=0; i--; } else if(b!=char(13)){ // for key enter total++; space++; cuv[i]=b; } else break; } [/CODE] If pressed once or twice "backspace" works, but if pressed for more than two times, not working, first i checked …

Member Avatar for KasmIR
0
81
Member Avatar for jasonrefan

Hello, I am trying to validate that the user has entered data into the JTextField to be saved to a text file. My method is: Data saved to Text File Data loaded into an array upon execution Data saved to array, then written to Text File. My addProperty Method: [CODE] …

Member Avatar for jasonrefan
0
138
Member Avatar for danielbala

hi.. This is form validation code..im getting errors.. 1. I have to check whether all the field r empty and for certificates,photo,biodata field shud be validated for type,size,whether field is empty.. 2. how to validate the datepicker i used javascript <?php session_start(); if(isset($_POST['Role'],$_POST['Name'],$_POST['datepicker'],$_POST['gender'],$_POST['activity'],$_POST['Address'],$_POST['Photo'],$_POST['Biodata']$_POST['certificates'],$_POST['Salary'])) { $errors=array(); $Emp_Save=$_POST['Emp_Save']; $Emp_Cancel=$_POST['Emp_Cancel']; $Role=$_POST['Role']; $Name=$_POST['Name']; $datepicker=$_POST['datepicker']; …

Member Avatar for danielbala
0
360
Member Avatar for james6754

[CODE] class Matrix { public: int M; int N; double *ptr; Matrix(int m,int n)//constructor takes two ints { M = m; N = n; ptr = new double[M][N]; assign(M,N);//call function } void assign(int M,int N)// method { for(int i = 0; i < M;i++)// i is a row { for …

Member Avatar for james6754
0
145
Member Avatar for tobo

hello i have a problem to solve for a commandline-programm: there are several types of inputs to get and these can look like: keyword1 <double> value1 <double> value2 keyword2 <double> value1 keyword3 <double> value1 ... I just can't figure out how to do it! thanks!

Member Avatar for tobo
0
322
Member Avatar for 21122012

[CODE]<? session_start(); if(!session_is_registered(myusername)){ header("location:../index.php"); } ?> <?php require_once('../config/conn.php'); $sql="SELECT * FROM roomBooking ORDER BY roomID ASC"; $rs=mysql_query($sql,$conn); $row_rs = mysql_fetch_assoc($rs); $count=mysql_num_rows($rs); ?><!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>組長控制中心</title> <link href="../css/master.css" rel="stylesheet" type="text/css" media="screen"> </head> <body> <header> <h1>組長控制中心</h1> </header> <nav> <ul> <li><a href="g_home.php">主頁</a></li> <li class="selected"><a href="BookingManagement.php">房間資源</a></li> </ul> </nav> <div id="content"> <div …

Member Avatar for masterjiraya
0
187
Member Avatar for PF2G

Hi, i'm doing a validation of registration form, and i'm checking if there's the same username and email: [CODE]$query_verify_email = "SELECT * FROM alunos WHERE username ='".$username."' AND email_aluno='".$email."'"; $result_verify_email = mysql_query($query_verify_user, $connect); //if the Query Failed ,similar to if($result_verify_email==false) if (!$result_verify_email)[/CODE] How do i do both checks separated? Does …

Member Avatar for masterjiraya
0
152
Member Avatar for jpsider

I'm working on a school project, beginner stuff. I need to output the data with 2 decimals. I've tried several variations of [CODE] printf("%4.2f" + variable) [/CODE] But it seems when I use more than one variable it craps out or wont compile. Thoughts? [CODE] public class Conference4 { public …

Member Avatar for jpsider
0
131

The End.