199,114 Archived Topics
Remove Filter ![]() | |
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 | |
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 … | |
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], … | |
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 … | |
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 = … | |
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 … | |
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; } … | |
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 … | |
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; /** * … | |
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 … | |
why does this produce compile-time error? [CODE]int [] a = new int[10]; foreach(int val in a) { val=0; )[/CODE] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … ![]() | |
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 … | |
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 … | |
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 … | |
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 #? | |
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? | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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'])) { … | |
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 … | |
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 "&" code. Thanks for any help or suggestions … | |
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 … | |
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 … | |
[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> … | |
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 /* … | |
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 = … | |
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. … | |
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.*; … | |
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() { … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.