199,114 Archived Topics
Remove Filter ![]() | |
does anybody know a mysql query that i can use in my php document that will return the number of rows their are in a table? thanks, i cant find it in the MySQL mannual | |
If anyone manages to help me fix this i'll be more than happy. :) SO my problem is this, i have a drop-down menu of different times of day. e.g. 00:00; 00:15; 00:30; 00:45; 01:00; 01:15 up to midnight. What i want to do is load the drop down with … | |
When my code (below) is executed, a error message is triggered which says "The operation completed successfully." To give this some context, hFileMap is valid; I have checked this with my debugger, and other operations can easily be performed correctly on this handle that yield correct results. The only weird … | |
hello , i want to ask is there any function that gets the mode of an array without using pointers ???plz tell me if there is | |
So I got this assignment to combine two arrays without using strcat(). The two arrays must be passed to function as parameters. The arrays need to be merged into one array in the function with dynamic memory allocation and then the new string needs to be returned back to main. … | |
Hi, How do I sum all occurrences of a number in a file? I have a file with a bunch of numbers, each on it's own line: 5 3 11 3 7 3 5 5 11 7 7 ... How do i sum them up so that the output will … | |
Hello I created the following project to show you guys how I plan to do things. But my main project will be bigger and will have multiple classes. I'm just trying to get this to work properly so I know I'm using good practice when coding. ok, lets begin :), … | |
Why am I not able to edit my unix file though i have the permissions -rwxrwxrwx? :( | |
![]() | I have a script called setuptex that is run on a terminal as [CODE]. ~/context/tex/setuptex[/CODE] I wanted to execute it from a bash script file instead of typing it each time on an interactive terminal. Since the dot operator and the source builtin command are similar, and I wanted a … |
Help yet again guys. I'm having trouble getting the table underneath the <h3> tag "Delivery rates" to show in the right place. Also the "Delivery Rates" is not showing either. This is starting down at line 86. I've tried adding <p>/</p> elements as my book mentions but they do not … | |
I add connections in server explorors. Then, I use AdventureWorks Person.Contact to set up a query by searching peter and mary ,but how to add it on form 1 ? and I type part of their names and by the way how to link a "VB label of text" or … | |
I am just writing a simple file browser. It works without problems when i point to a specific directory but throws "UnauthorizedAccessException access to the path .... is denied" when i point to drive "C:\\" or "D:\\" appreciate any help. [CODE] If Not txtToSearch.Text = Nothing Then ListBox1.Items.Clear() FC = … | |
plzz help me........... i want to list all the sub directories,files(including subdirectory files) in a particular drive(C,D,E,etc). | |
Hi,i'm new here..and need help for my calculation problem..pls tell me,what is the connection between this 4digit numbers..exp : 8910,0556,and 2570..how i calculate this 3 sets of numbers to get eighter 3540,6749 or 0676..canyou solve it for me..thanks | |
Hey guys and gals I am really struggling with this program. I have been working on it for about a week now and every time I think I am getting somewhere it seems like it flops and I get frustrated and start over. I would appreciate it if anyone could … | |
I keep getting a"Can't find symbol" error and code will not compile. Assignment already late and need help ASAP. [CODE]//Inventory Program Part 3 //IT215 week 6 class Inventory { String itemNumber; //stores item number String name; //stores name int stockQuantity; //stores quanity in stock double pricePerunit; //stores price String departmentName;//Department … | |
Hi there. I am early in learning PHP and have been reading your forum with great interest and also admiration for how great you all are helping out newbies and even looking over their code for them. And you're so logical and organized in your explanations. It's a beautiful thing … | |
I'm attempting to solve this for myself as this is homework but I can't get past the hurdle. I have an array that dynamically holds the pixels of an image (chars) in its second dimension (first being the image number). I first initialize my array variable... [CODE] unsigned char** imgSet; … | |
Am trying to write a program that read some question and answer in a text file and after displaying it in another text file and i want to make use of [COLOR="Red"]struct[/COLOR] in my program. How do i go about it using rand() to generate the question. Anyone one with … | |
Hi everyone! I really need help with this big program. I got stuck! I tried to compile but it didn't work. I think i still miss some parts of the program needed, but i cant figure it out. Please help me! Thank you in advance! Here is what i need … | |
I am absolutely HORRIBLE at passing functions, and even more so with passing arrays. I'm trying to pass my "grades" array to the other functions, but I know I have to do it by reference since I can't return it. Can someone help shed some light? [code]#include <iostream> #include <fstream> … | |
I need help with a C++ problem π= 4(1/1- 1/3+ 1/5- 1/7+ 1/9- 1/11+ … 〖(-1)^n /(2n+1)+ …) How many terms of series (1) you need to use before you get the approximation p of π, where: a) p = 3.0 b) p = 3.1 c) p = 3.14 d) … | |
I am a budding game programmer trying to get into the industry programming for PS3, Xbox 360. The main problem I see is the need to demonstrate my skills to a potential employer, but without access to Dev kits for the PS3 or Xbox 360, doing this directly is impossible. … | |
If I was to set a wildcard in my subdomain (*.example.com) to redirect to www.example.com, would that affect any pre-existing subdomains (for example, blog.example.com) or would it only redirect things I haven't set? | |
Hi, I am having a problem in using radio checkbox to change the color of a graph. The main Idea was to add checkboxes to a graph and also add different shapes to the graph code which was given. The code I tried is the following : [code]import java.applet.*; import … | |
Hi guys, I really need some help with this, I've spent hours looking for a solution. I have 4 classes of which 2 are important right now. 1. The user enters his username in the JTextField userF, if I print that userF.getText() in the class where userF is created I … | |
I had a small issue. Can you pls check this... I have two tables TABLEA,TABLEB. TABLEA -------------- col1 col2 col3 TABLEB -------------- cl1 cl2 cl3 If col2 in TABLEA = cl2 in TABLEB, then i need to update cl3 in TABLE B with col3 in TABLE A. I tried running … | |
I have a file txt file with the contents [TEX]10031James Cameron2346789Spanish TownSt.Catherine12 Clover CrescentDeluxeSinglePassport[/TEX] I want to read from the file baesd on a seraching fro the id number and returning the datat to a class. But it seems I can't read from the file. Heres is the code below. … | |
i creeat a jar file,i used system.out.println to display records on screen.but the problem when i click on jar file nothing is displayed.it is displayed only when i am opening command prompt and entering java name of file.so result is displayed on console (msdos) but i want result to be … | |
def scary(filename): infile = open(filename, 'r') content = infile.read() infile.close() for i in ';",.()[]{}\/0123456789@#!$': content = content.replace(i, ' ') words = content.split() d = {} for word in words: if word in d: continue else: d[words] = words lst = [] for n in d: lst.append(n) lst.sort() outfile = open('dictionary.txt', … | |
I am having a problem sending my form to MySQL on my application page (when you click GameTime! it should send the data to a MySQL table.)-http://www.facebook.com/apps/application.php?id=157666347603790&v=app_157666347603790 It sends the form data here: [url]http://bit.ly/91oi88[/url] however, it just won't seem to work in facebook. Obviously there is something wrong with my … | |
Please help me. I am having trouble implementing the breadth first search algorithm for the classic 8 puzzle problem. I have some code if anybody can help. Or is there any tutorials or examples that you can link to me? My problem is that it only solves about 5 different … | |
Heres the assignment. 1. Declare a string, e.g. char str[81]; 2. Input a string from the keyboard (spaces included) using the (while statement while( while (str[i] = getchar() != '\n' ) adjusted so that it only inputs a certain number of characters ( in the above example that would be … | |
I am working on a website in ASP.NET and I need to run a JavaScript function on page load from a content page and I also have a user control that needs to have some JavaScript executed on page load. I'm new to JavaScript and I'm not completely familiar with … | |
Hi guys, I've got an idea but I'm struggling to understand perhaps how one would go about implementing a solution. Basucally I've got a .NET or more so C# UI that loads plugins using reflection. this all works fine but now I'm wondering if its possible to load the C# … | |
[code]public class Test { public static method1(int n, m){ n += m; method2(3.4); } public static int method2(int n){ if (n > 0)return 1; else if (n == 0) return 0; else if (n < 0) return -1; } }[/code] | |
Hi i need the Best and complete tutorial to learn DB from begining(from basic to end) .. can anyone suggest or provide materials for it.. | |
Hello It's one year that I use G++, now every time that I try to compile somethings I see always: g++ error: process: No such file or direct I use Ubuntu and I always used to compile a file (ex. hello.cpp) g++ ./hello.cpp -o hello and after ./hello I tried … | |
[code=c] // ----------------------------------------------- mySquare( y1) // rcv'ing dbl = 4 { double x1=1 ;// valid, but impossible to reach. printf("\n SQRD incoming Y1: %d",y1); // shows 4 printf("\n SQRD return y1*y1: %d",y1*y1); //shows 16 x1 = (y1*y1); // ??? printf("\n SQRD return X1: %d",x1); //shows 0 ! return x1; // … | |
I am trying to calculate the height and width of a char array? The char is like an Ascii art of a card. And what I am trying to do is calculate how long the width is before the '\n'(newline), and how long the height is till the null terminator. … | |
hi i am trying to explicitly link a dll to my console application however LoadLibrary() keeps returning with error 126: the specified module could not be found the file is in the same folder as the exe, and i've tried moving it to system32 and it's the same error, so … | |
I need to know if i can take a user inputed string such as [code=python]name = raw_input("Enter Name:")[/code] and take the word inputed and break the string apart by letters for example: If the user enters "joe" i will get "j", "o", "e" is this possible? also i need to … | |
Hello guys! I'm trying to learn the Boost regex library for a more-convenient means of error-checking and the asio library to allow a fairly portable-means of manipulating data over TCP/IP. My goal is to retrieve the file information from a website (basically http layer). My first problem is determining the … | |
I hope I'm doing this right since it's my first post. I have a hash table (HList, vector) of lists and I want to use bubble sort to sort my list of entries (HashEntry,class). It compiles fine and temp is a valid list, but my temp.end() is a bad pointer. … | |
I m a computer engg student & m absolutly unable 2 undrstand c++. Cn any1 sggst sme buks or ways 2 stdy C++??????? | |
I need to keep track of the number of times a user visits a website. I have the code done but I don't think I am counting the correct way as the dynamic web page keeps showing the same number of visits. Any tips would be so helpful! [CODE]#!/usr/bin/perl use … | |
hey.... I'm new to c++.. i have done a program to fine the permutations of a given string....( both with and without meaning).. now i want to compare each permuted string with the dictionary and display the words which gives meaning...now i want to compare the permuted string with a … | |
[CODE]public static Integer calcs(String postFix) { StackInterface<Character> stack = new LinkedStack<Character>(); // instantiate Character stack Integer result = new Integer(0); Node<Integer> num1, num2; Integer int1 = new Integer(0); // declare address to each variable object Integer int2 = new Integer(0); num1 = new Node<Integer>(int1, null); num2 = new Node<Integer>(int2, null); … | |
hello i have made a program that connects to multiple servers and handles packets from multiple platforms (ie irc and some others) what i want to do is make a plugin system that will use my original program for connection purpose then have the plugin system be something like that … | |
Hello all, I have same problem. in javascript i called php fun using <?php fun1()?>. it run successfully. But i want to pass variable to that function which is a value of input text box. i.e var tt=document.getElementById('cname'); and i want to pass that tt value to php function. How … |
The End.