199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dr.4030

hi i created this page for displaying my products that it works with select query from data base but after all try i could show the 3 of them in pages but all i want is displaying 6 of them in different tables after each other please help me with …

Member Avatar for turt2live
0
118
Member Avatar for herstein

Hey guys. I have been trying to write a progamme, and for some reason it doesn't give me the result I want. Anyway, here is a description of the programme I want: "Suppose that a is a positive integer. Suppose we repeatedly modify a as follows: if a is even, …

Member Avatar for hfx642
0
81
Member Avatar for FALL3N

Hello. I am writing a script to do some copying of files. I feel confident that I can do that part, but before I even start doing the actual copies, it compares the last modified dates of two files.. I know this seems a very basic question that I would …

Member Avatar for FALL3N
0
207
Member Avatar for mrhankey

hi, is it possible for me to embed part of my site into another? i want to give someone a piece of php code maybe a page of code which will embed my whole intranet site into theirs so it looks like they are still on the other persons site …

Member Avatar for diafol
0
178
Member Avatar for loserspearl

I'm working on a random number guessing game with 5 tries that uses standard JOptionPane GUI and 3 methods, the requirements have each method doing a specific task. The main method starts a game is supposed to handle the 'you won' or 'you lost' dialogue and play again if the …

Member Avatar for loserspearl
0
1K
Member Avatar for Algorithms

Hi brand new, Okay so I have an exercise I'm doing to better help understand C++ programming. This isn't a project or homework assignment. I'm doing this for practice and to better my skills as a programmer. I have the logic down, now I just need to add to the …

Member Avatar for hiddepolen
0
942
Member Avatar for BenzZz

When i run my code i receive the following error: [CODE]Fatal error: Call to a member function fetch() on a non-object in C:\Program Files\EasyPHP-5.3.8.0\www\Practice\staff.php on line 20[/CODE] The code that causes the error is: [CODE]<?php require_once "db_connect.php"; $dbh = db_connect (); $dbh->exec ("CREATE TABLE Staff( UserId int NOT NULL AUTO_INCREMENT, …

Member Avatar for Stefano Mtangoo
0
321
Member Avatar for vijaykavin10

Hi all... What is the purpose of built in class Say for example in event handling event class are : ActionEvent,MouseEvent,ComponentEvent,ContainerEvent... like that what is the purpose of this classes and in which case we are using this kind of the classes. Thanks...:)

Member Avatar for hiddepolen
0
84
Member Avatar for Joemeister

Hi everyone! Ok, let me quickly explain what I want to achieve. I have two tables. The first table is Requests and it looks like this [CODE] +------------------------------+ | Requests | +----+-------------+-----------+ | id | user_from | user_to | +----+-------------+-----------+ | | | | | | | | | | …

Member Avatar for stoopkid
0
127
Member Avatar for mrhankey

hi, i have designed an application for a company in php/mysql. they want an app version of it, just a cut down version of the app. simple question, what is the easiest way to convert php/mysql to an app for ipad or iphone etc? is there a compiler out there …

Member Avatar for mrhankey
0
109
Member Avatar for valestrom

Hey, I was just wondering how I can get it so when I click a button it opens my second form. But sets some of the labels to a specific thing, so I don't end up making 170+ forms for my periodic table application. Just like so when I click …

Member Avatar for triumphost
0
203
Member Avatar for dev90

I am not getting all numbers but only last number while readind data from file. And it has to be done with fscanf function.[code]/* input n nunbers fom user and write it in the file.find it's sum and write the ans. in another file */ #include <stdio.h> #include <conio.h> void …

Member Avatar for WaltP
0
142
Member Avatar for heybunny

Write a while loop that will generate and print 100 random integers on the range [1,1000)? I cant get mine right, plz help. Also, i dont have JAVA so couldnt really check And also, if you can: Write a while loop that adds up all the odd numbers between 0 …

Member Avatar for Ezzaral
0
203
Member Avatar for LuckyLiza

I am fairly new to the Java lang and this is my first post so if I do it incorrectly please forgive me. Anyways, I am basically trying to find [LIST] [*]MaxInDegree [*]MaxOutDegree [*]MaxDegree [*]MinInDegree [*]MinOutDegree [*]MinDegree [/LIST] of a 2d array with various nodes. Here is what I have …

Member Avatar for hiddepolen
0
232
Member Avatar for akhlakeng

how to do this? : ask the user to insert the length of two sides (b and c) of a tringle and the angle between them in degree (x), compute and print the length of the third side,a, by using this formula a^2=b^2+c^2-2bc(cos(x)) (Note: to use the cosine function(cos), the …

Member Avatar for WaltP
0
257
Member Avatar for jaepi

Hello there, I have here a problem with the function open(). Since its first parameter asks for a char*, how would i convert wchar_t* to char* if my program asks for a wchar_t* as its path rather than char*?

Member Avatar for epolgar
0
10K
Member Avatar for programing

write a class Circle with one double data radius . write motheds ::: public Circle(),public Circle (double),public Circle (Circle c) public double getRadius() public setRadius (double) public getPerometer(int)where the parameter indicates the number of terms for Ï€ public getArea (int) where the parameter indicates the number of term for Ï€ …

Member Avatar for hiddepolen
0
201
Member Avatar for VasquezPL

Hi guys, I have a small problem I am writing a program which adds informations about broken systems in my company. Customers are informed about new events (outages) via RSS (XML) channels. My program simply download xml from the web page and give a possibility to add new items (events) …

Member Avatar for VasquezPL
0
606
Member Avatar for clide890

Effective January 1st of each year, Gabriela receives a 5% raise on her previous year’s salary. She wants a program that calculates and displays the amount of her annual raises for the next three years. The program also should calculate and display her total salary for the three years. Annual …

Member Avatar for Fbody
0
360
Member Avatar for noobies

Can anyone help me to do this : Select previous field based on previous field in sql. I had tried a lot of ways but it seems doesn't works. [CODE]Select alert_value , year_id from company_alert where year_id = "2010" and year_id = year_id - 1 group by year_id[/CODE] could anyone …

Member Avatar for adam_k
0
184
Member Avatar for imolorhe

What are the possible uses of the bitwise operators. i.e. bitwise AND, bitwise OR, bitwise XOR, shift right, shift left and complement. Also, what are the applications of bitwise operators in everyday problem solving. Examples would be nice. Thanks in advance

Member Avatar for daddymummy
0
227
Member Avatar for zachattack05

Can this be done? I know you can databind to form controls, but what about object properties? For example, I have a form that has two functions, to edit a record and to create a new record, but the problem is that in order to create a new record you …

Member Avatar for jbisono
0
94
Member Avatar for mcx76

I install php script.but error. Parse error: syntax error, unexpected $end in /home/xxx/public_html/xxxx/ADMIN/index.php on line 376 Please be advice.Thanks <?php include("login_config.php"); include_once("Utils.php"); if(isset($doExport)||(isset($category)&&$category=="exit")||isset($Export)){ ob_start(); } if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE")) { $IE=true; } else { $IE=false; } $AC=true; include("security.php"); $lArray=DataArray("admin_users","username='$AuthUserName'"); if(isset($lng)){ $LANGUAGE=$arrSupportedLanguages[$lng][1]; $LANGUAGE2=$arrSupportedLanguages[$lng][1]; SQLUpdate_SingleValue( "admin_users", "username", "'".$AuthUserName."'", "language", $LANGUAGE ); } else{ $LANGUAGE=strtolower($lArray["language"]); $LANGUAGE2=strtolower($lArray["language"]); …

Member Avatar for thegeekofnothin
0
431
Member Avatar for cypherscouter13

I try to run the following, but I keep getting the error "error C2664: 'Card::SetName' : cannot convert parameter 1 from 'const char [23]' to 'char'" I also got the following error; error C2664: 'Beginning' : cannot convert parameter 2 from 'std::vector<_Ty>' to 'std::vector<_Ty> &' I'm not that familiar with …

Member Avatar for cypherscouter13
0
164
Member Avatar for jackparsana

Hi, I have very simple project in vs2010 and mssql 2008. with only single page for example. when i run project its take too much time for loading.. when i change the value of radio button it will take some process. i use updatepanel also and autopostback=true radio button takes …

Member Avatar for carrieathomer
0
441
Member Avatar for Jessurider
Member Avatar for Ezzaral
0
115
Member Avatar for danarashad

My Jquery dual list box isn't working when I call a page via ajax. But if I navigate to the page, the Jquery works. I've used the .live code but that doesn't seem to work. Any suggestions. The below code, I thought would work, but it doesn't. [CODE] $(function(){ $('.button').live('click', …

Member Avatar for danarashad
0
236
Member Avatar for coder_10

Hi, How can I add the values of an array to a char variable? Without using "strcat" btw. [CODE]char table[5],message; t[0] = "h"; t[1] = "e"; t[2] = "l"; t[3] = "l"; t[4] = "o";[/CODE] Than end up with "message = "hello""? Thanks.

Member Avatar for hkdani
0
201
Member Avatar for vatwindad

I am new to C# and am having trouble with some code that I am writing. Below is the code. I want the user to be able to enter a number between 10 and 50. Once the user does this, I want it to evaluate to Acceptable if it is …

Member Avatar for vatwindad
0
309
Member Avatar for Donieob

I have a JFreeChart XYPlot with many series, the number of different series depends on input parameters. I wish to colour the lines in groups of two, so that series_0 and series_1 are the same colour then series_2 and series_3 are the same colour. I tried the following solution but …

Member Avatar for Ezzaral
0
298
Member Avatar for ethio

Need correction on my answers and description on my errors. Q1 Which of the following statement(s) is true about an abstract class? 1. An abstract class cannot have any constructors. 2. An abstract class contains only abstract methods 3. An abstract class always implements an interface [B][U]4. An abstract class …

Member Avatar for ethio
0
126
Member Avatar for bio-grad

Hi, I wrote this script to help me cleanup some data. The value in the 8th column is sometimes empty. When it is empty, I want it to print a zero as in the next part of the script it will be adding a number to whatever is in that …

Member Avatar for bio-grad
0
232
Member Avatar for gahhon

as the question require to declare [CODE] // Creating Class Members public class Films { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public Films() { itemCode …

Member Avatar for JamesCherrill
0
224
Member Avatar for SK6114

Hi, I need to integrate e^-(x^2) between negative infinity and positive infinity, now the function vanishes to a minute value much before negative and positive infinity. I need to approximate the integral using the trapezium rule, which I have coding for but I just don't know how to apply it …

Member Avatar for TrustyTony
0
750
Member Avatar for pelin

i am writing a program that reads the file i create. The file has grades and weights of grades anddd 3 person but i need to create a program that will read the information from the file, calculate and print the total average of each student given by the formula …

Member Avatar for TrustyTony
0
237
Member Avatar for DeathEater

hi, I've been working on a little program for my company for keeping the records of some members, it's basically a WinApp, but since the company has a website in which certain people visit and become members i was wondering if i could update my DB from the website, provided …

Member Avatar for DeathEater
0
110
Member Avatar for cdea06

Could someone explain how the flow of control works with a nested for loop? [CODE]for (initialize; condition; increment) for (initialize; condition; increment) statement; [/CODE] I know a single for loop is: initialize --> condition --> statement --> increment--> condition -->.......

Member Avatar for JamesCherrill
0
130
Member Avatar for jenxin

Hi guys/girls. I have a program due soon for my assembly class. My teacher expects us to bruteforce through this program, but I'm wondering if theres any other way. Here's my code basically, edx is the pointer to the value located at a position on a sudoku matrix. ie. [edx …

Member Avatar for jenxin
0
783
Member Avatar for davy_yg

input_berita_static.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['isi_berita']) ? $_POST['isi_berita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = …

Member Avatar for davy_yg
0
95
Member Avatar for noXi

Hi, i've been looking around the web but could not find anything about the filestructure of the following file: [CODE]{"tickets":[{"name":"Test", "id":"906935000", "description":"gültig", "userID":"310000", "price":"Preis: 1,90€", "productID":"119", "checksum":"6017", "dailyCode":"u", "hourlyCode":"y", "barcode":"", "rebuyLink":"191000", "buydate":"52744", "buydateString":"17.08.2011", "legalNote":".", "validString":"gültig bis 17.08.2011", "demo":true, "validDescription":"gültig in 210"}], "currentMonthExpenses":"1,90€", "getMoreTicketsAvailable":false, "monthlyTurnover":170};[/CODE] This .dat-File is generated in javacode. …

Member Avatar for noXi
0
257
Member Avatar for luweegee

[CODE] <?php if (isset($_SESSION['uid']) && $_SESSION['uid']) { echo "You are already logged in, if you wish to log out, please <a href=\"./logout.php\">click here</a>!\n"; } else { if (!$_POST['submit']) { ?> <table border=0 cellspacing=3 cellpadding=3> <form method='post' action='login.php'> <tr><td>Username</td><td><input type='text' name='username'></td></tr> <tr><td>Password</td><td><input type='password' name='password'></td></tr> <tr><td colspan=2 align='right'><input type='submit' name='submit' value='Login'></td></tr> </form></table> …

Member Avatar for ko ko
0
266
Member Avatar for eikonal

Hi everyone! This is my first post even though Ive been reading you for a while. I'm a Python beginner and I'd need your help. I'm processing a very big file (more than 2 millions of lines) but I'll show you a much smaller example (24 lines rather than 74513). …

Member Avatar for JoshuaBurleson
0
132
Member Avatar for opawix

Hello ma'am/sir any help for the codes of input to be align.heres my code: [CODE] #include<iostream> using namespace std; int main() { float pre, mid, semi, final, total; cout << "Prelim: "<<setw(20)<< "Midterm: "<<setw(20)<< "Semifinal: "<<setw(20)<< "Final: "<<setw(20)<< "Final grade: \n"; cin>>pre>>mid>>semi>>final>>total; total = (pre+mid+semi+final)/4; system("pause"); return 0; } [/CODE] …

Member Avatar for namratag
0
105
Member Avatar for Zababa

Hey there guys! :) I'm quite a newbie to Android programming, and I need to get the dimensions of the screen, that is the visible area of the screen. I know I can just set the layout of the controls in the .xml file, but I explicitly need to do …

Member Avatar for Zababa
0
119
Member Avatar for Joemeister

I want the post_delete column to generate unique id's so that when I want to delete a comment for e.g. I can refer to the post_delete's value. [B]Here is my users TABLE[/B] [CODE]CREATE TABLE users ( user_id INT(8) NOT NULL AUTO_INCREMENT, user_name VARCHAR(30) NOT NULL, user_pass VARCHAR(255) NOT NULL, user_email …

Member Avatar for smantscheff
0
785
Member Avatar for aadi_capri

hello friends, how can i design a region in vb.net form(windows application), such that when i click any point inside a region a new page opens. my problem is that the region which i want to define through it is very complex..its a combination of a rectangle and another shape. …

Member Avatar for Unhnd_Exception
0
287
Member Avatar for maybnxtseasn

[code]int Add(int nX, int nY) { return nX + nY; } int main() { int (*pFcn)(int, int) = Add; int (*pFcn)(int, int) = &Add; cout << pFcn(5, 3) << endl; // add 5 + 3 return 0; } [/code] my question is are both of these lines equivalent? or is …

Member Avatar for Narue
0
87
Member Avatar for Powerponken

Hi, This is probably some basic knowledge but I haven't found it out. I have this snippet of code that is causing me problems: [CODE] HANDLE hFile; char lpBuffer[100] =""; char idBuffer[100] = ""; DWORD ofs; strcpy(lpBuffer, fingerprint); strcat(lpBuffer,"\0"); hFile = CreateFile(buffer,GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,NULL); WriteFile(hFile,lpBuffer,sizeof(lpBuffer), &ofs, NULL); strcpy(buffer,""); if(ReadFile(hFile, …

Member Avatar for Ancient Dragon
0
182
Member Avatar for AquaNut

Hi All, Been reluctant to drop this on anyone as I wanted to resolve it myself but alas it has got the better of me. I am trying to do an insert into an Access 2007 DB but keep getting a syntax error even thougt I can get the generated …

Member Avatar for Naveed_786
0
305
Member Avatar for jimbakl

when it was all right suddenly when i try to compile and run a code display me this problem [QUOTE][IMG]http://img191.imageshack.us/img191/2909/captureyty.png[/IMG][/QUOTE] because i used to use DevC i never find this kind of problem, i search in to the MS visual folder in my pc but i dont find anything. DId …

Member Avatar for Ancient Dragon
0
113

The End.