199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for marisha5

hello friends, I am developing a database oriented website in which i have to handle alot of data. i am looking for a functionality similar to datagrid view of .Net in Php. Please help me out.... Thanks Marisha

Member Avatar for chrishea
0
145
Member Avatar for NV43

I'm having a problem being cause by what I believe to be my getMonthValue function which is resulting in my output always being "Saturday." Can anyone give me any reason this is happening? Thanks. [CODE]#include <iostream> #include <string> using namespace std; bool isLeapYear (int year); int getCenturyValue (int year); int …

Member Avatar for goldzero
0
132
Member Avatar for simmyhp

Hi, Friends! I am doing my last year term project that needs me to use C and write a sudoku game. However, I don't know how to write the check part, can some of you help me a bit? Here is my code: [CODE]#include<stdio.h> #include<stdlib.h> #include<time.h> int x,y; int matrix[9][9], …

Member Avatar for Adak
0
606
Member Avatar for Invecta

Hello everybody, i make a simple calculator with C. When I compile it, the compiler didn't show error but when I run my program the result is wrong... This is my code: [CODE=c] //////////////////////////////////////////////// // Calculator // // Crated by : Invecta // // Thanks to all members of komunitas-bsi.com …

Member Avatar for Invecta
0
239
Member Avatar for jems5

Why does parsing a float into array cause precision loss error. I am trying to sort data from a text file that contains text, integers and float numbers. Using the for statement causes loss of precision errors. How do I correct this please. [CODE] float y; for (float k = …

Member Avatar for BestJewSinceJC
0
123
Member Avatar for Fadam360

Hello all, i have a homework lab/assignment due by 12 tonight. It needs to print out a drawing panel and request 2 names from the user. It should then have a way to take the 2 names entered and create 2 new names in the drawing panel: e.i. "John" would …

Member Avatar for Fadam360
0
195
Member Avatar for whimsical1987

Hi, I am getting seg fault when trying to run the code. I don't understand where I made a silly mistake. Can someone help me out please [code] #include<stdio.h> #include<string.h> void xstrcpy(char *, char *); int main() { char *a = "Hello World"; char *p; xstrcpy(a, p); return 0; } …

Member Avatar for whimsical1987
0
2K
Member Avatar for bookworm619

I am having problem with calculating the angle using sin. So far, I got the literal of numbers, which is not making sense. I am supposed to match my answers with this: Set up new triangle with coordinates (0.0, 0.0), (3.0, 0.0), (3.0, 4.0) Area: 6.0 Parimeter: 12.0 Length side …

Member Avatar for tong1
0
158
Member Avatar for Yutxz

I received the error "possible loss of precision" on the last line of my code. Is it not possible to return a double? My instructions were to create a program, called power, that took a double (x) and raised it to an integer (n) power. [CODE] package power; /** * …

Member Avatar for Yutxz
0
197
Member Avatar for grunge man

Im making a calculator Program to start off on visual basic. I got it to work with MsgBox, but now I'm trying to get it to work with the Print. MsgBox Example [CODE]Public Class Form1 Private Sub Button1_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseClick Dim Pizza As …

Member Avatar for grunge man
0
137
Member Avatar for jigglymig1

why does this produce compile-time error? [CODE]int [] a = new int[10]; foreach(int val in a) { val=0; )[/CODE]

Member Avatar for Momerath
0
105
Member Avatar for jtxay

Okay well i'm having trouble understanding this program ..in which our professor doesn't even explain..I'm so lost.. I hope somebody can help me please.. here's the problem... I have to write a program in c++ that computes the number of days between two dates using the Julian day number which …

Member Avatar for Akill10
0
263
Member Avatar for bigwhiteegg

for some reason the following function has return numbers of error such as 1. new types may not be defined in a return type 2. two or more data types in declaration of `initialize' 3. ambiguates old declaration `GrowableArray initialize(GrowableArray&)' [CODE]void initialize(GrowableArray &a) { unsigned zero=0; a.elements=zero; a.element=NULL; }[/CODE] and …

Member Avatar for bigwhiteegg
0
3K
Member Avatar for sahanaC

I have uploaded audio files (saved them) into the SQL Server 2005 database. I need to prepare a "play sound" button to allow users to click it and listen to the sound. I have the following code to retrieve the audio file from the database. protected void playsound_btn_Click(object sender, ImageClickEventArgs …

Member Avatar for MichaelWClark
0
800
Member Avatar for ceeandcee

I am trying to build a Standings page for a hockey pool site that shows Wins, Losses, Ties, etc. I am struggling with the Tie section. If two teams have the same number of points (PF=PA) the team gets one point. I can get this part to work. However, at …

Member Avatar for artech
0
78
Member Avatar for nwalser

Ok so I have to write a reverse method of a stack and I am not quite sure how to do it. I understand that i need to pop the strings from one stack into another but whenever I try to do this errors arise. Specifically it says it cannot …

Member Avatar for cale.macdonald
0
835
Member Avatar for baldturtle

When i try to complile it says SlotMachineReel.java:175: missing return statement I think its because all my returns are in "if" statements and it needs a default return. line 128 & line 175 Thanks in advance for any help [CODE]/** * Constructs a new reel with its current face randomly …

Member Avatar for baldturtle
0
165
Member Avatar for arjen

hello guys.. Can someone give me a code on storing path image and retrieve path into image using mysql database and vb.net/vs 2008. I only know how to make a browse button and get the image into hard disk and display it in picturebox. I'm done with the the problem …

Member Avatar for lolafuertes
0
948
Member Avatar for mcook228

I have an assignment to write code to calculate a cubic spline. The values for my coefficients are correct, but the Gaussian elimination part of my program has me really confused. I was given code in C by my instructor, but am struggling in making it work with my code. …

Member Avatar for iamthwee
0
1K
Member Avatar for emongev

I have a question about a C# windows forms application.... Im aware of the mouseEnter event and the Click events, but i cant seem to combine them, maybe i could get some insight on this problem =) What i want is to be able to have a matrix of components …

Member Avatar for hyperion
0
133
Member Avatar for xcarbonx

Hello, my listbox contents output as 1 whole row like: Total Normal = 3 Total High = 5 Total Low = 6 When i want the output to be formatted like: Total Normal = 3 Total High = 5 Total Low = 6 Here is my code: [CODE] lstResults.Items.Add("Total Normal …

Member Avatar for xcarbonx
0
169
Member Avatar for kidwon

Hi guys, This below is my code: [CODE]<script language="javascript" type="text/javascript"> function bc () { var bc = document.getElementsByTagName("BusinessCard"); for (var i=0; i < bc.length; i++) { var create_card = document.createElement("div"); create_card.setAttribute("class" , "BusinessCard" ); create_card.setAttribute("className" , "BusinessCard" ); document.getElementsByTagName("body")[0].appendChild(create_card); } } </script> </head> <body onload="bc()" > <BusinessCard> <Name>Somebody Somewhere</Name> <phone …

Member Avatar for kidwon
0
130
Member Avatar for alex55

So i have a string say string A = junk#crap i want to separate it to separate strings b=junk c=crap how would i go about doing that while throwing out the #?

Member Avatar for alex55
0
148
Member Avatar for fallen_prisoner

hi i am new to programming and have had problems installing C++ on vista. Is it possible to get C++ working on vista or will I need to switch back to XP or ubuntu? Does Bloodshed work on vista?

Member Avatar for asmail2020
0
177
Member Avatar for anetta

Hello How to place a MYSQL database in my ASP.NET site? In what format I produces the file for my APP_DATA database folder to place it. How to build CONNECTION STRING to database located in APP_DATA I created a site communicates with a LOCALHOST database Now I want to import …

Member Avatar for anetta
0
286
Member Avatar for python01

whenever i want to use urllib or urllib2, i get this error IOError: [Errno socket error] (10035, 'The socket operation could not complete without blocking') i have tried googling it yet i havent found anything helpful any help is apreciated, python 01

Member Avatar for python01
0
169
Member Avatar for David_Omid

This is a section of code: [CODE] this->SquareImage1->Visible = false; this->SquareImage2->Visible = false; this->SquareImage3->Visible = false; this->SquareImage4->Visible = false; this->SquareImage5->Visible = false; this->SquareImage6->Visible = false; this->SquareImage7->Visible = false; this->SquareImage8->Visible = false; this->SquareImage9->Visible = false; this->SquareImage10->Visible = false; this->SquareImage11->Visible = false; this->SquareImage12->Visible = false; this->SquareImage13->Visible = false; this->SquareImage14->Visible = false; this->SquareImage15->Visible …

Member Avatar for David_Omid
0
99
Member Avatar for asifsomy

Well I have a lot of confusions about wordpress. And I unfortunately could not find a satisfactory answer to my questions. So expecting a detailed answer. To what extent we can customize a wordpress website? for what kind of projects we should use wordpress. Can we create a database oriented …

Member Avatar for nonshatter
0
132
Member Avatar for JOSheaIV

Okay I am working on a group project in class and I have to learn XML for it, would anyone be able to point me in the right direction. If I recall right we are using XML to communicate with a flash program we're building. ALso if anyone knows anything …

Member Avatar for iceandrews
0
100
Member Avatar for ITStrawberry

Hello guys, Can someone help me? I have a scanned document in my system. It's a tiff file. You will see below the code i have written. The problem is that i get an error message. The message is like this "A Graphics object cannot be created from an image …

Member Avatar for codeorder
0
140
Member Avatar for jems5

I would like to sort a list (from a text file "sales.txt")that has text, int and float values. The problem I have is, my output only produces the last set of values. I would like to produce a table with as the final output. Please help me. [CODE]public class Sales …

Member Avatar for jems5
0
164
Member Avatar for arsnic

Hey guys (and girls) I'm not new to C++ but it has been a while since I've used it. I'm having an issue that I can't seem to place my finger on. I have the two bits of code below. The first comes out fine, or as I expect the …

Member Avatar for arsnic
0
223
Member Avatar for eddster10

Ok wild stab in the dark as i am new to this. I am trying to sutomate an FTP from UNIX box to another UNIX box. Further to aumating an FTP, the file needs to be renamed and a small amount of editing which is the same editing each time. …

Member Avatar for martin8484
0
95
Member Avatar for miss_indie

Ahm. after my problem about editing and stuff. here's now another problem. i'm updating multiple data on my database i patterned the codes in my previous post and after i've done editing here's what happened: [COLOR="Green"]mysql error You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for miss_indie
0
179
Member Avatar for sahil1991

hi, i know structures are basically used for holding data members whereas classes can hold both functions and data members. but contrary to the definition of structures can they also hold functions?? i read that they can but there wasn't any explanation about it. hopefully,some of few can come up …

Member Avatar for sahil1991
0
107
Member Avatar for dthatsme33

I created a mobile version of a client's website. I created a subdomain called mobile.sitename.com In the past I have used this code on the index.php page: [CODE]<?php $mobile = "http://mobile.cogistix.com"; if(preg_match('/Windows CE/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) { header("location: $mobile");} elseif(preg_match('/Blackberry/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/PalmOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");} elseif(preg_match('/PalmSource/i',$_SERVER['HTTP_USER_AGENT'])) { …

Member Avatar for Usernamex235
0
216
Member Avatar for camerondane

I am running a form that pulls data from multiple mysql tables. However whenever the php/mysql code is in the html form tags it will not read the php/mysql nor will it read any php for exampl echo "here";. I have done this several times before so I imagine it …

Member Avatar for camerondane
0
198
Member Avatar for teedoff

Hi I have a dynamic page that doesnt validate because I have special characters such as "&" in the data. I was wondering if I should do a find and replace of all those ampersand signs and replace them with the safe "&amp;" code. Thanks for any help or suggestions …

Member Avatar for griswolf
0
189
Member Avatar for gedas

hey guys, i am looking for source code as simple as possible that would be able to represent the shape of the human body in 3d (it could be almost stick man like or preferably something like this [url]http://www.3dlinks.com/oldsite/tutorials/GENERAL/chapter6_1.cfm[/url]) i would like to use for further development such as a …

Member Avatar for gedas
0
449
Member Avatar for Flightfanatic1

Hello, I am trying to get a value of a div. I have an html page with a div's class called "findme". I have tried innerHTML but it keeps saying undefined. function innertest() { var a = document.getElementsByClassName("findme").innerHTML; alert(a); } <div class="findme"><b>This is a test</b></div> Is there a way that …

Member Avatar for Airshow
0
294
Member Avatar for Suhacini

[code] <?php include("conn.php"); include("session.php"); ?> <html> <head> <title></title> </head> <body> <form action="user.php" method="post"> <table border="0" align="center" width="100%"> <tr> <td align="center"><a href="editevent.php">Edit Event</a></td> <td align="center"><a href="addevent.php">Add Event</a></td> <td align="right"><a href="logout.php">Logout</a></td> </tr> <tr> <td colspan="3"><b>List of events</b></td></tr> <?php $str="SELECT * FROM eventdesc "; $res=mysql_query($str); if(mysql_num_rows($res)!=0) { while($data=mysql_fetch_array($res,MYSQL_ASSOC)) { echo '<tr> <td>'. $data['eventdesc'].'</td> …

Member Avatar for pamdooley
0
2K
Member Avatar for Fbody

I have a couple of template classes "Stats<T>" and "Numerical<T>" within a "Statistics" namespace. The Numerical<T> class inherits publicly from Stats<T>. They are defined as below.[CODE] namespace Statistics { //declare Statistics namespace template <typename T> class Stats { protected: vector<T> dataSet; //contains the actual data set to be analyzed /* …

Member Avatar for Fbody
0
93
Member Avatar for filch

Hello, I have the following code, which shows a number of form text input fields, depending on a number entered into another field: [CODE]<script type="text/javascript"> $(function() { var input = $('<input type="text" name="delegate" id="delegate" />'); var newFields = $(''); var input2 = $('<input type="text" name="non_delegate" id="non_delegate" />'); var newFields2 = …

Member Avatar for filch
0
146
Member Avatar for Borzoi

I am planning to start up a new business soon and part of it is selling online. I was planning on using PayPal in the early days to handle the payments until we can afford good enough security so that we can hold data such as credit card information ourselves. …

Member Avatar for Borzoi
0
216
Member Avatar for doctorjo5

There are already 2 checkboxes to change to bold and italic. Now I want to make four radio buttons to change the font of the saying "say it with style!". Below is my code. [CODE]//******************************************************************** // StyleOptionsPanel.java Author: Lewis/Loftus // // Demonstrates the use of check boxes. //******************************************************************** import javax.swing.*; …

Member Avatar for kramerd
0
2K
Member Avatar for boiishuvo

When I tried to compile this code, it has one error says ThreadsDemo.java:37: 'else' without 'if' else { ^ I don't know what's wrong with that exactly? [CODE]import java.util.*; class A extends Thread { private static int counter=0; private final int id=++counter; A() { start(); } public void run() { …

Member Avatar for JamesCherrill
0
89
Member Avatar for girlzone

Hello all, I have a question: What are the advantages & disadvantages of the circular linked list compared with: a. Usual linked list b. Doubled linked list Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in …

Member Avatar for Martin B
0
588
Member Avatar for andy106

Hi everyone! Thanks for reading my post. I have 2 questions, first I have a PHP site where it reads the pages from a folder and shows it in a php frame, for example the contact us page with the file name of contact.php will be shown as http://www.<DOMAIN>?page=contact. and …

Member Avatar for andy106
0
318
Member Avatar for agaba

This is my Code #include<iostream> using namespace std; struct BankAccount { int accountNum; double accountBal; double rate; }; int main() { const int ACCOUNT = 5; BankAccount info[ACCOUNT]; int sub; double balTotal = 0; double balAverage; int accountNumber; bool isFound = false; for(sub =0; sub<ACCOUNT ; ++sub) { cout<<"Enter Account …

Member Avatar for agaba
0
105
Member Avatar for Dean_Grobler

Hi there, In the code below my ImageIcon isn't showing when I run the program. I always struggle with adding Images in my GUIs and it's irritating. Is there some all important rule that I should know or something? [CODE] //Create window Components JLabel lblrequest = new JLabel("Enter amount of …

Member Avatar for JamesCherrill
0
4K

The End.