199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for druggeri1

I am using cake php I have a table called relates that holds the primary id values from the other tables. I used cakephp to generate the crud. it works fine. if you click on the number in the relates table it goes to the appropriate table and displays the …

Member Avatar for P0lT10n
0
406
Member Avatar for gunderjj

I have read many posts like this and can not get this to work right. The box always remains empty, yet there are rows in the table. Any help would be appreciated. Thanks. [CODE] <?php //Variables for mysql database connection $user='testuser'; $password='testpass'; // connect to MySQL $connection = mysql_connect(localhost, $user, …

Member Avatar for gunderjj
0
74
Member Avatar for Robbiedoes

Hello, I want to write a program in C++ that approaches the number pi by using the Monte Carlo algorithm. Therefore I need random numbers. When the amount of random numbers goes to infinity, the probability will approach the theoretical propability, which is a function of pi. I know all …

Member Avatar for StuXYZ
0
205
Member Avatar for scofro

Hi all, I'm looking for some help with a PHP / MySQL scheduling component that our website users will use to schedule our services. I've drawn out 2 calendars that sit side by side using PHP. One for the current month, and one for the following month...to give users the …

0
128
Member Avatar for timbad2021

I am trying to allow a user to download a directory on the server as a zip file. How do I do this?

Member Avatar for arrgh
0
101
Member Avatar for thenvk

I am working on a simple tool for my office.We have a very huge database with 5000 tables. All the tables, Columns and their attributes are stored in to excel sheet. Tool I am designing is for mapping between front end and back end values. Now I will use an …

Member Avatar for Airshow
0
273
Member Avatar for SpyrosMet

Hi everyone. i have an issue with a server program i'm developing for a university project. The issue is the following: The server program i'm building uses shared memory and forks. However i have a problem as to how can i destroy the shared memory segments i've created. A simplified …

Member Avatar for SpyrosMet
0
201
Member Avatar for yuri1969

My func looks like: [CODE]int pop(node **hd, char **new_element) { node *dummy; int i = 0; if (empty(*hd) == 1) { printf("Stack is empty"); return -1; } else { (*new_element)[i] = (*hd)->element[i]; // problem is here ;) dummy = *hd; *hd = (*hd)->next; free(dummy); }[/CODE] and I call it via: …

Member Avatar for yuri1969
0
128
Member Avatar for anthonys1mom

Hi there. I am trying to create a class rectangle. It should have data members length and width of type float (which should default to 1). The class should have member functions that calc. area() and perimeter() and also separate get() and set() functions for length and width. These should …

Member Avatar for Lerner
0
17K
Member Avatar for peterwalter

I have to create a class called Polynomials and other called PolynomialTerm. The latter one to copy, add and multiply PolynomialTerm (exponents, coefficients). I also have to do the same for the Polynomial(which is an arrayList of PolynomialTerms). I am having problems adding the two polynomials.I need to do this …

Member Avatar for dierobe
0
414
Member Avatar for eladreznik

Hi guys, i created a panel with few buttons, all buttons have the same size, most buttons hold images, 2 of them hold string (1 or 2 digit) the string buttons will not align with the rest of them, and i have no idea why ? anyone ? [code] Public …

Member Avatar for bklynman01
0
104
Member Avatar for roachae

I have a MySQL query that's using SUM() to take the sum of a column, BUT what I need it to do is basically this: If the string in another column is 'BUY', then I want to add the number in my column, but if this other column has 'SEL', …

Member Avatar for roachae
0
141
Member Avatar for Surreal_one

I've having very much trouble with the last piece of my site. I retrieve my database including checkboxes. From here I want to check/ucheck the boxes and save it back into the database. The problem I run into is when I check some boxes it doesnt take any notice witch …

0
100
Member Avatar for sciprog1

Hello, I have a project in BlueJ, called Game. Inside this project, I have the following files: File_A - A JApplet file which creates instances of Class_A and Class_B and calls their respective member functions. File_B - Implements Class_A (a JPanel) File_C - Implements Class_B( a JPanel) In order to …

Member Avatar for sciprog1
0
80
Member Avatar for tech9x

[code=c++]while(!infile2.eof()) { size_t found; string temp2, store, wordtobold; string command1 ("bold"); size_t prev_pos = 0, pos = 0; getline(infile2, temp2); store += temp2; found=store.find(command1); if (found!=string::npos) wordtobold = store.substr (found+4); while( (pos = wordtobold.find(' ', pos)) != string::npos ) { string wordtotag( wordtobold.substr(prev_pos, pos-prev_pos) ); cout << wordtotag; prev_pos = …

Member Avatar for WaltP
0
118
Member Avatar for PeterWaij

I want to use two jQuery popups on one page. The problem is that i can't get it to work.[CODE]<div id="popupContact2" class="popupContact"> <a class="popupContactClose">x</a> <h1>Title popup</h1> <p id="contactArea"> sutff goes here </p> </div> <div id="popupContact" class="popupContact"> <a class="popupContactClose">x</a> <h1>Title of our cool popup, yay!</h1> <p id="contactArea"> sutff goes here </p> …

Member Avatar for PeterWaij
0
101
Member Avatar for hanvyj

This error is a big pain, simply because I cannot test solutions redily. On my build machine everything works fine, however having make a release and installed it on a different machine (in a differant building) things start to break because of the following exception: [B] System.Net.WebException : The underlying …

Member Avatar for hanvyj
0
438
Member Avatar for volc90

Hi i was wondering if someone could tell if i am anywhere close to being on the right track. I have to create a program which adds, subtracts, multiplies, and divides fractions. I really am trying to get a grip on learning this stuff, so anyone who could give some …

Member Avatar for Lerner
0
131
Member Avatar for d00mhammers

Hello everyone, this is my first time here on this website and forum, and after reading through some of it, I think it's very helpful, so I would like to say thank you. I am facing a problem that I have been trying to solve for a few days so …

Member Avatar for arnab sinha
0
319
Member Avatar for LiquidSolid

Right now I need help adding numbers into an array. The function I have is not in the main function and the array parameters are passed by reference. Using something like [code]int add ( int grades[], int number_grades ) [/code] I need to have it so it will allow someone …

Member Avatar for LiquidSolid
0
99
Member Avatar for IMJS

I wonder if anyone can point out the source of my error. I am using the SDK for commercial software which _requires_ that I build etc in Visual Studio 2008. I confess that my C++ is rusty at best and that I don't understand a lot about using Visual Studio. …

Member Avatar for IMJS
0
329
Member Avatar for rairai979

Hello, I'm hoping someone can help me. The prior developer (over a year ago) created word templates to use as database reports (instead of Crystal). Within his VB.Net code, he calls a stored procedure which feeds the word template. Pretty basic so far. The template's fields are setup as Merge …

Member Avatar for rairai979
0
121
Member Avatar for Feim

Hi all, I have this string "May 19, 2009 15:39:41.606809000" , i need to get the seconds into a double variable. My code is like this: [CODE]double sec; string seconds = str.substr(19,10); istringstream(seconds) >> sec; [/CODE] The thing is that seconds = 41.6068090 , but sec = 41.6068 Why doesn't …

Member Avatar for Feim
0
133
Member Avatar for zoefschildpad

so I'm writing a binary search tree and a (so far very short) program taht uses it. Here's the code as it is (excluding any functions it doesn't actually use yet) main.cc: [CODE=c++]#include <ctime> #include <cstdlib> #include <iostream> #include "bintree.h" using namespace std; int main(){ double aipls[500]; bst<int> k; int …

Member Avatar for SasseMan
0
2K
Member Avatar for ivan3510

Hi! Sorry for my bad english! I made an editor. When user passes mouse over the picture, the picture changes color ( Here's code: [CODE] <style> .button:hover{ filter:alpha(opacity=20); opacity=0.2; } .field{ background:#aabbcc; border:1px solid black; } </style> <fieldset class=field> <img src=blablabla.bmp class=button> </fieldset> [/CODE]) I want to make that, when …

Member Avatar for hielo
0
119
Member Avatar for dougalmaguire

I have select list which submits the page and the page is then re-rendered with various fields hidden depending on the value of the select list. There is a button at the top of the page which is causing problems if it is pressed before the page is fully rendered. …

Member Avatar for pritaeas
0
207
Member Avatar for gahhon

[CODE] if(Student[i].regNo.campus == "KUALA LUMPUR") Student[i].regNo.campus = 'W'; else if(Student[i].regNo.campus == "PERAK") Student[i].regNo.campus = 'a'; else if(Student[i].regNo.campus == "PENANG") Student[i].regNo.campus = 'b'; else if(Student[i].regNo.campus == "JOHOR") Student[i].regNo.campus = 'c'; else if(Student[i].regNo.campus == "PAHANG") Student[i].regNo.campus = 'd'; else if(Student[i].regNo.campus == "SABAH") Student[i].regNo.campus = 'e'; [/CODE] i got alot of warning message …

Member Avatar for gahhon
0
150
Member Avatar for Violet_82

Hi there, I have a question about header files/source files in Visual C++ (I use visual c++ 2005 express). I used to put all my code in one single .cpp file but now I have a test program (done by my tutor at Uni) which has 3 files: 2 .cpp …

Member Avatar for Violet_82
0
433
Member Avatar for modesto916

Hi everybody, I bought the book "Deitel C++ How to Program, edition 5", and i am doing the exercises of the chapter 4, the exercise 4.28 ask you to write a program that print the following figure: [ICODE]* * * * * * * * * * * * * …

Member Avatar for alwaysLearning0
0
256
Member Avatar for CPT

So I've implemented the binary search tree but i get an error from the insertion function this is my code: [CODE]#include<iostream> #include<stdlib.h> #include<malloc.h> using namespace std; struct NOD{ int inf; struct NOD *left; struct NOD *right; }; NOD *root; bool Erase(int nr); void Insertion(int nr); int Search(NOD* node,int target); void …

Member Avatar for Taywin
0
164
Member Avatar for prakash.arul87

[code]Private Sub Command1_Click(Index As Integer) If KeyAscii = vbEnter Then If Len(Trim(txtlogin)) > 0 And Len(Trim(txtpwd)) > 0 Then If CheckPwd(txtlogin, txtpwd) = "ok" Then MsgBox "Password ok" Else MsgBox "Wrong password or Login not found." End If Else MsgBox "Login and password should not be blank" End If End …

Member Avatar for AndreRet
0
136
Member Avatar for HelenLF

Is it possible to make the first letter of every word uppercase unless it is one of a group of words? I have to get some data from a database and present it on a page as a menu. The format would be that all words would start with a …

Member Avatar for quasipickle
0
88
Member Avatar for Finarfin34

I am developing an application using Win32 GetOpenFileName win32 API. When the window opened even if I click cancel memory usage incredibly increases from 2 mb to 8 mb. What could be the reason of this behaviour? Thanks in advance.

Member Avatar for Ancient Dragon
0
247
Member Avatar for Mehwish Shaikh

Hello All, I am having some troubles with my code, which is: [code] import java.net.*; import java.io.*; class TestInet { public static void main(String args[]) { try{ InetAddress inet = InetAddress.getByName("72.14.203.106"); InetAddress inet1 = InetAddress.getLocalHost(); InetAddress inet2[] = InetAddress.getAllByName("www.google.com"); //InetAddress inet3 = InetAddress.getHostName(); System.out.println ("Host of IP is[inet.getByName]: " + …

Member Avatar for maclord
0
368
Member Avatar for Pushpasheela

Here is my code. [CODE]import javax.swing.table.*; import javax.swing.*; import java.util.*; import java.awt.*; import java.awt.event.*; import java.awt.print.*; import java.awt.geom.*; import java.util.Calendar; public class Salary_report extends JFrame implements ActionListener { Vector data; JTable table; JLabel banner; ImageIcon images; Container c; Employee_report f1; JButton print; String s,days,basic,pf,hra,esi,bonus,advance,allowance,loan,incentive,dother,da,eother,gross,ded,net,leave; double ge,td,np,l,l1; public Salary_report(Employee_report f1) { …

Member Avatar for kramerd
0
138
Member Avatar for andrewliu

Hello, I have a variable that I want to pass into my include file but not sure how to do this say i have this in my index.php file [CODE] <?php $new_id = $row['id']; include('main.php') ?> [/CODE] How would my $new_id get passed into my main.php file? I'm trying to …

Member Avatar for hielo
0
312
Member Avatar for tehreem

hey frnz i need 2 make a c++ project ...but i dunno wat 2 make im so confused help me out..i need a guidline

Member Avatar for stokes1900
0
148
Member Avatar for Isimanica

This code has errors [CODE]#include <iostream> void main() { int var [10]; for (I=0; I<5; I++) cout << var(i); }[/CODE] Now what I have come up with is this to correct the errors that I see. [CODE]#include <iostream> using namespace std; void main() { int var [10]; for (i=0; i<5; …

Member Avatar for stokes1900
0
97
Member Avatar for smart

Hi, Friends Here is a site which has video lecturses on C and C++ which are downloadable [URL="http://freevideolectures.com/computerscience"][B][COLOR=blue]http://freevideolectures.com/computerscience[/COLOR][/B][/URL]

Member Avatar for sylviaj
0
525
Member Avatar for vishalarora91

I want to use the outtextxy() for the output of my program in the graphical mode,but the complier gives error when it encounters a variable in the outtextxy() as an argument. Suggest me how to slove this. for eg: [code] for(i=0;i<=3;i++) { outtextxy(100,200,i); setcolor(0); setfillstyle(SOLID_FILL,BLACK); bar(50, 50, 590, 430); } …

Member Avatar for armadillodesing
0
101
Member Avatar for younk

Hi Im new to XSL. Im trying to read a XML file that has identical node names with different values. [CODE] <mondial> <country car_code="MK" capital="cty-cid-cia-Macedonia-Skopje"> <name>Macedonia</name> <indep_date>1991-09-17</indep_date> <government>emerging democracy</government> <encompassed continent="europe" percentage="100"/> <ethnicgroups percentage="22">Albanian</ethnicgroups> <ethnicgroups percentage="2">Serb</ethnicgroups> <ethnicgroups percentage="65">Macedonian</ethnicgroups> <ethnicgroups percentage="4">Turkish</ethnicgroups> <ethnicgroups percentage="3">Gypsy</ethnicgroups> <religions percentage="30">Muslim</religions> <religions percentage="67">Christian Orthodox</religions> <languages percentage="21">Albanian</languages> <languages …

Member Avatar for iceandrews
0
102
Member Avatar for preet11

Hi friends, I got vb.net 2008 express and sql server 2005 and 2008 express editions whic I downloaded from microsoft website.Now I just want to connect vb.net with sql server 20o5 or 2008.I am using a connection string as PubConnstring = "Data Source=RAMAN\SQLEXPRESS;Database=FirmTest11;Trusted_Connection=Yes" [code] 'Create your connection object Dim objconnection …

Member Avatar for nigelzephyr
0
206
Member Avatar for kali Annan

Hello, I want to check the username & password of the user with the already stored database and then login. Iam using asp.net(vb) with sql server as database. Please help ME [CODE] Imports System.Data.SqlClient Imports System.Data Partial Class MasterPage Inherits System.Web.UI.MasterPage Dim con As New SqlConnection("server=localhost;database=reg1;integrated security=yes;") Dim ds As …

Member Avatar for nigelzephyr
0
454
Member Avatar for Klustor

So what im trying to do is, if the user select his location then the listbox should be filled in with values. I always get [B]NameError: global name 'listcomputers' is not defined[/B] but i dont understand why. can anybody help me ? [CODE]import os import wx class MyForm(wx.Frame): def __init__(self): …

Member Avatar for Klustor
0
538
Member Avatar for hassancool

Hi, I want a simple Email form script that I can implement on this form.... [URL="http://intedupk.com/inquiry_form.html"]http://intedupk.com/inquiry_form.html[/URL] If you can share just php code for that it will be ok..... Regards....

Member Avatar for hassancool
0
91
Member Avatar for saisakthi

I am new to java, I need to save a image file from my system to my web application. How to do that in jsp or java? Need help urgently.....

Member Avatar for javaAddict
0
892
Member Avatar for knrakesh

Hello Friends, I am Rakesh, iam facing a problem regarding HTML in PHP page iam pasting the link of error can any one please tell the solution. [URL="http://screencast.com/t/yrFqDdsf"]http://screencast.com/t/yrFqDdsf[/URL] iam unable to understand why its comming so please tell the solution Thanks in Advance

Member Avatar for diafol
0
73
Member Avatar for spades0001

Hey guys! I'm trying to make this flowchart but I not quite sure how to do it. I'm supposed to make a flowchart that will ask the user a specific month and year, and the output would be how many days that that inputted month and year has. Kinda confused …

Member Avatar for Taywin
0
92
Member Avatar for alastair1008

I want to create a new thread in a program that i'm working on but i cant get my new threads to start does anyone have some code that would allow me to create and start new threads

Member Avatar for Taywin
0
138
Member Avatar for scripter_tmrage

Hello World! Im doing a simple program that runs a JFrame and has some JButtons etc etc but id like to put a simple sound to one of my buttons, when i quit the program i want it to play a simple melody how can i put it in this …

Member Avatar for scripter_tmrage
0
144

The End.