199,113 Archived Topics
Remove Filter ![]() | |
hi i am entirely new to eclipse, db2 and wasce. but for a certain project i need to make a project using the above tools in java. so i did the following 1. Installed db2 v 9.7 with username & password both admin 2. Installed wasce 3. Installed Eclipse my … | |
hi, when i insert date time into my database it insert server time not local time how can i change this? even i tried ; [CODE]$currntdate = date("F j, Y, g:i a");[/CODE] which didn't work either.. thanx in advance. | |
Hello everyone! First of all this is about DataSets. I made a table with some examples in MS Access and now I need to add new rows into this table from C# console application. I added DataSet (MSAccessBase) and used TableAdapter for adding MS Access's table into project Solution. I … | |
Please tell me deeply about classes and objects My Question are: What is class? Why we use class? How can we use class? what do help class? Please tell me and also tell how can I learn about class? | |
Anyone here who knows how to convert system month,Day,Hour,Minutes,Seconds each into number format like month=12 (If December) Day=30 Hour=12 (In 24 hour format) Minutes=55 Seconds=45 Thanks for help in advance... | |
hey guys, does anybody has the sample of, how to insert smiley/icon in the message board (php or javascript) i have the simple one: [CODE]//character typed $typed_chars = array('X(', '8)', 'oO'); //to_be_replace $icon_set = array("<img src=\"../smiley/smiley 1/fire24.png\">", "<img src=\"../smiley/smiley 1/icon_cool24.png\">", "<img src=\"../smiley/smiley 1/startle24.png\">"); //convert $message = str_replace($typed_chars, $icon_set, $message);[/CODE] I … | |
Hi! Im new to php web development. I am developing an online shopping system where theres an admin page that allows him to add, edit, delete category and products. to cut the story short, what I want to know is, is it safe to save the table for admin username … | |
in my code the for loop syntax is not rigt can any one tell me[CODE]for($i=0; $i<$count; i++) { if($i==0) { $txt.="product:Licence_key"; } $txt.=$product[$i]." :".$plicense_key[$i]; }[/CODE] | |
[24-Dec-2011 04:05:07] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\inetpub\wwwroot\install\install.php on line 49 here is line's 48 thru 65 [CODE] 48 $content = "<?php \n". 49 " \n". 50 "/* Database Host Name */ \n". 51 "\$db_host = '" . $post_details['db_host'] . "'; \n". 52 " \n". 53 "/* … ![]() | |
Hello forum, vaironl here. I have a project which will be due at the end of the year. I'm taking in the user input from 1- 40 ingredients with, name, amount, an unit. Additionally I'm taking a description which is a paragraph, and I store these values in a text … | |
Hi, I've got a problem with my project. When I initialize an arraylist, the content is displayed and you can go through the arraylist by correctly answering the given word. But when I load a new arraylist from a file, the old arraylist is removed and the new one is … | |
Is it possible to insert multiple values from text into multiple columns seprated by comma.for example i have a table products in which columns are product_name,product_description,lisencekey1, lisencekey2 ,..................and with entering the multiple lisencekeys(only) seprated by comma should be inserted in this fields. ![]() | |
On a new site I'm making, sessions are not working. They were working previously, and stopped without a single change of the code. Once a login goes through the verification, it runs: [CODE]$_SESSION['uid'] = getIdFromEmail($email);[/CODE] getIdFromEmail is a function I built to get the user's ID from their email address. … | |
can anybody tell me what format of date 1311048886 is? how we insert and select in database. | |
Please someone should help me before I faint. I have been working with this login script and am getting this error on a server: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/utimate/public_html/PhpPractice1/index.php on line 32. When I test it with wampserver, I will get this … | |
Can anyone explain me how to find a point on circumference. The data i have is radius and the coordinates of circle center. I tried to get it by using (x-a)^2+(y-b)^2= r^2 formula but i get stuck. I'm not asking for solution but for explanation. | |
Is it possible to make an array of doubles like a c-style string to make a bigger number? Or is an array of chars a special thing to a compiler? | |
plz i have question that is statistical which is course that i still missed .. how i can make code for median , mean,strdDevition , mode else presented as class and object i will realy thanks for whom will help me ,, | |
I'm new to C++, and I've been picking it up really well, but when it came to making my own function, I hit a problem. I've looked and I cant find the problem, its probably something really stupid but I cant find it. Heres the code, its really simple. I'll … | |
Dear Coders var amount1=12,345,678.10 var amount1=87,246,125.00 I want to sum amount1+amount2 as 99,591,803.10 Please help | |
Why do we have to suffix long literals by 'L' or 'l' even though we have specified the datatype ? Does it serve any special purpose? | |
is the following program correct for the title 1/1!+1/3!+1/5!+.....+1/n! [CODE]#include<iostream.h> #include<conio.h> class series { int i,n,sum,fact; public: void input() { cout<<"enter the number of terms"; cin>>n; } void processing() { if(n%2==0) { cout<<"the number is invalid"; } else { i=1,sum=0; while(i<=n) { sum+=(1/factorial(i);); i+2; } } } int factorial(int lim) … | |
Hi I have a form that amends current values in a MySQL database. This works fine in FireFox, but does nothing in IE when you click on the Save button. [CODE]<input type="button" value="SAVE" onclick="submit();" />[/CODE] Is what I am using What am I doing wrong? Thanks | |
Hi I have written a c++ code. It works well frequently but sometimes I see strange errors especially about out file streams. For example, this time I dealt with this messages: 'GABC.exe': Loaded 'G:\GABC\Debug\GABC.exe', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll' 'GABC.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', … | |
Hello, I need to implement a simple project: create a basic web-site to read online stream from my web-camera using its IP address. BUT I´d like to use my Arduino microcontroller and WiFly shield without using a laptop. Could please someone give an advise - links to related tutorials or … | |
Hello :) I have written a os in C and assembly, but my os is only a text based os. How can i make it into a OS with GUI ? | |
i want to go back to main menu while hitting escape key in my programme. for that i have make a function. [CODE]void exit (char[]) { if(char==27} { exit(0); } } [/CODE] but i have many user inputs which are of type int,float,char..... so i have tried, [CODE]while(kbhit!=27) { //coding … | |
Hi guys.. I need advice on writing function in a multi-threaded envionment Lets say I have a function which squares an integer. [CODE] int Square(int num) { // May do other things which might take long time to complete. return num*num; } [/CODE] This function is called in threads eg … | |
I've simplified it quite a bit but it's still not working. PHP: [CODE] <?php $a = array('data' => 'Hello'); echo json_encode($a); ?> [/CODE] Here's the JQuery Code: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; var outR = outputResults alert("JSON String:" + jsonString.zipCode); if (location === "living") { … | |
I want to build a program for my c language project.What i need to do is that the user should enter the number of students,number of questions,correct answers,each students answers answers and then the program should calculate the number of correct answers,and their standing,the most wronged question . the problem … | |
Hi, I've been working on a project that needs to list all the drives on a computer (it's kind of a file explorer, but without using the standard one provided by windows). I've searched and found the function [URL="http://msdn.microsoft.com/en-us/library/windows/desktop/aa364972%28v=VS.85%29.aspx"]GetLogicalDrives()[/URL], which does exactly what I want. However, the return value is … | |
hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique [CODE]srand((unsigned)time(0)); int number= (rand()%9999+1000);[/CODE] , I also need to put … | |
Hii everybody I was building RPC based server-client application I have a struct called event contains int type long int time I have a function in a server that `return (*event)` event * log_1_svc(event *argp, struct svc_req *rqstp) { static event* result; result = (struct event*)malloc (3 * sizeof (struct … | |
So my teacher asked us to make a problem. This was just passed to me by my classmate and this is the problem: [QUOTE]flow chart problem: a. Create a flowchart that will determine the sum of two numbers and if the sum is greater or smaller than 50. (0-50 less … | |
For some reason, when I do an output.put, it is not doing anything. [CODE]#include "stdafx.h" #include <fstream> #include <Windows.h> using namespace std; void main() { fstream input, output; int in1=0, in2=0, x=0, k=0, l=0, max=0; input.open("input.txt", ios::in); output.open("output.txt", ios::out); while(input.good()) { input>>in1; input>>in2; for(x=in1; x<in2; x++) { k=x; l=0; while(k!=1) … | |
how would i stop a user from entering a letter when they should be entering a number? [CODE]#include <iostream> #include <cstdlib> #include <cstdio> #include <cstring> usin namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char nAns; do{ int nPly1; int nPly2; int nPly3; int nPly4; int nPly5; int nPly6; int … | |
Hy Guys! PLease Help Me on the following problem. How can i do the next thing? I want to know what's the data in a textfile's line. If i'v got the line number. For example: [COLOR="Green"]variable line_number = 5 In the c:\test.txt on the 5th line the data is "Washington" … | |
I am writing a program that manipulates text file using console application. What I want to do is to delete 1 specific line based on the ID entered by the user. For example: DR-01|Coke|25.80 DR-02|Sprite|25.80 DR-03|Sarsi|25.80 DR-04|Coke|25.80 When the user entered DR-02, the result would be like this: DR-01|Coke|25.80 DR-03|Sarsi|25.80 … | |
First, I did search the forum and I found a few topics about this but none of the information seemed to be applicable to what I'm doing. Anyways. What I'm working on now is a basic telephone directory. a Directory text file contains the names of all of the subdirectories. … | |
Could someone help me to convert this Scheme Code to Objective-C? (define-type RCFAE [num (n number?)] [add (lhs RCFAE?) (rhs RCFAE?)] [id (name symbol?)] [fun (param symbol?) (body RCFAE?)] [app (fun-expr RCFAE?) (arg-expr RCFAE?)] [with (id symbol?) (named-expr RCFAE?) (body RCFAE?)] [if0 (cond RCFAE?) (then RCFAE?) (else RCFAE?)] [rec (id … | |
Hey everyone, I recently make a simple test site on my local server to login as an admin and redirect to an admin based page as well as to log in as a user for the regular user page..When I made the test site..it seems to work fine but when … | |
I am using MySQL to store the RSS feed contents that are updated every few hours. I truncate the database once a day. But during the day, whenever same feeds are updated every few hours I get duplicate entries piled up. Is there any PHP script that I can run … | |
I have this example php string: [CODE]$string = "@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no ";[/CODE] now $string idented just to easy view: [CODE]@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no[/CODE] I want to know … | |
As the title states I'm building a calculator. I've got two arrays, one for holding the values input by the user, and the other for holding the operators. Addition seems to work just fine, however subtraction, multiplication, and division are still putting up a fight. I believe it's just logic … | |
hey guys i have an array in php and it contains some records twice, trice or so. I only want to list those records once while fetching array elements. eg. "entry 1" comes five times in the array then i want to display it only once and then next element. … | |
Hey guys. Im having some problems with python. I need to create a function that takes in two arguments where the first is a sequence(string) of letters. The other is also a string but of integers, that tells me start and stop that I want to cut out from the … | |
Hey I have been kicking myself with this problem for a week now and i was wondering if anyone can help. I am implementing cURL to fetch source code from a website. I am using fairly common code to do so. If I implement the functionality in my main.cpp, it … | |
plz... can anyone help me by giving code for calculating max error of u=(5xy^2)/z^3 | |
I am having trouble displaying Hungarian letters that are read from a database. [URL="http://otletbarkacsbolt.hu/test.php"]Here[/URL] is the output and here is the code [CODE] <?php mySQL_connect("localhost","[SNIPPED]","[SNIPPED]") or die (mysql_error()); // connect to mySQL echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("otlethu1_aru") or die (mysql_error()); //connect to otlerhu1_faaru database echo ("Connected … | |
i need to print the file names of all files having .txt extension of a given directory after converting to uppercase letters. The input (directory name) should be given as command line argument. The script will also check whether sufficient arguments are passed or not and whether the argument is … |
The End.