199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for codewalkz

I can't seem to limit the result to a desired number. I have this code: [code]//GET THE TOTAL OF LEVEL 2 $result = mysql_query("SELECT COUNT(*) FROM agents WHERE (sponsor = '1' or sponsor = '2' or sponsor = '3') LIMIT 0,1")or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $lvl2parent = …

Member Avatar for pritaeas
0
145
Member Avatar for ammycoe
Member Avatar for Pranesh_Ashrit

Dear Users, I have used SHA1 encryption method to encrypt password and stored in login table as a blob field. Now, to authenticate the password, i need to decrypt it. I am not able to decrypt. Please help me to decrypt password

Member Avatar for nav33n
0
93
Member Avatar for sahity1a@yahoo.

I need to make a sorting algorithm. The program takes an input file that stores the information into an array: the array has student's name and a personality type. The personality types are: enum values Realistic Artistic Social Conventional Then once it takes an array, it sould divide the main …

Member Avatar for javaAddict
0
101
Member Avatar for jrosh

Can I store a photograph in a mysql table. ? What type it takes...how it is done. Do i have to store only the path??? please explain me.

Member Avatar for MeSampath
0
88
Member Avatar for sleign

ok I know there's a way around this otherwise radio buttons and checkboxes wouldn't ever be used in forms...so I've been trying to figure this one out... I have a dynamic form that consists of an associative array. Each row in this form consists of: name, id, 3 radio buttons …

0
112
Member Avatar for loveisblind

hello. I have a drop down menu that pulls from a mysql database. I know its connecting fine and there is actual items in the drop down menu because I echoed them. However when I look at my drop down box, you cannot see the options! I know the items …

Member Avatar for venkat0904
0
154
Member Avatar for R3Slick

Hello, Im having trouble with creating page that will search a database for the values entered. I have a Search.php file that has this [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Payroll and Timesheet Management Website</title> <link rel="stylesheet" type="text/css" href="styles.css"/> </head> <body> <?php writeHeader(); ?> …

Member Avatar for nav33n
0
311
Member Avatar for srujanasadula

A string variable taking any kind of string has a value "yjava_jboss.log4j_file_appender_pattern_layout='%d .//- %x %-5p [%c] %m%n' " at some point of time during execution. It is to greped on a file that contains with value. I used grep "$STR" <filename> ,where STR during execution takes value as shown above. …

Member Avatar for srujanasadula
0
130
Member Avatar for Cruize_Invades

HI currently I am studying asp.net, how ever I manage to view my image just in my test.aspx page using this code [CODE]<img src="img/image.jpg" >[/CODE] but when i use it on my login.aspx using the same code no image shows up. can anyone help me about this?

Member Avatar for Cruize_Invades
0
70
Member Avatar for devo_99

I have been working on this program to count the number of zero's odd, and even numbers that a user inputs. I have tried different variations and cannot get it to go, I keep getting linker errors and cannot see where the problem is. I am new to this and …

Member Avatar for devo_99
0
211
Member Avatar for shankbond

Hi, Is there some way by which a web application design view should remain the same even if the resolution of the screen is changed? Please reply Thanks

Member Avatar for kvprajapati
0
77
Member Avatar for powersstuff

I am redesigning a CF site vo2maxtesting.net in html and need to move it to the other server with minimal/no downtime or loss of Page One ranking. Could anyone help me with redirecting script and tell me if I need to make up a page for each .cfm page or …

Member Avatar for freshfitz
0
137
Member Avatar for RoyMicro

I have a class which is used as a object for my reportviewer control in C#. The Datatable in that class is used by the control to show a table. I have two issues. 1 How to create a varibale in that class that can be accessed by the reportviewer? …

Member Avatar for kvprajapati
0
113
Member Avatar for fatlip

I am building a site for my hockey league. I have been dealing with CF for a number of years, but would in no way class myself as any sort of expert. I am not sure if I am just having a brainfart, or what with this one! I have …

Member Avatar for freshfitz
0
121
Member Avatar for vkkreddy

Hi, I would like to capture the image using WebCam and store it in database. I am using ASP.NET 3.5, C#, Visual Studio 2008, SQL Server 2008, Windows Vista Business (O.S), IIS 7.0 and IE 7.0. I want to integrate WebCam functionality in my Web Application. My requirement is, the …

Member Avatar for sathishkumar.j
0
567
Member Avatar for PDB1982

I'm working on a program where I need to input a file with 5 candidates names and votes, and output the name, votes, and the percentage of total votes that candidate received, as well as the overall winner. Right now I've been able to create some arrays and output the …

Member Avatar for jonsca
0
136
Member Avatar for Frap

Hi while doing my homeworks, i stucked here .. Writting a program to calculate the factorial of positive integer . here is my code: [CODE] int main () { int x,factorial; cout<<"Enter an integer to calculate its factorial: "; cin>>x; if (x==1 && x==0) { cout<<"\nThe facotrial is: 1"; } …

Member Avatar for donaldw
0
100
Member Avatar for itzaaron

why is only my first class working? when i run this it just asks about the viruses and not the cost of the OS. [CODE]#include <iostream> using namespace std; class OperatingSystem { private: float cost; public: OperatingSystem() : cost(0) {} float getCost() { return cost; } void setCost(float cost) { …

Member Avatar for GrubSchumi
0
87
Member Avatar for astroshark

Hi I manage to create some code to where it will read in a set of exam scores and display their category as well as if they enter an invalid number it repeats the code until the data is valid or until they enter the SENTINEL value but when I …

Member Avatar for astroshark
0
96
Member Avatar for xuexue

pagination works well, it even displays the rows i wanted, however, my problem now is that i cannot access or it does not display the next rows from my database, i think there is some problem with regards to my next/previous/last/first links,, please help me asap, tnx! [code=php] $result = …

Member Avatar for futhonguy
0
245
Member Avatar for Clawsy

Hello, I'm trying to develop a chat application [I]over internet[/I]. First I want to send just strings... later files. I want to have a client that is a java applet that connects to the server - a java desktop application. I waould like to send files later over applet and …

Member Avatar for adams161
0
235
Member Avatar for NewbieProgram

I'm having problems generating CPU turn; preferably with AI, and also draw between player and CPU. [CODE] jButton1.setEnabled(false); boolean Userturn = true; JLabel[] label = new JLabel[9]; label [0] = jLabel1; label [1] = jLabel2; label [2] = jLabel3; label [3] = jLabel4; label [4] = jLabel5; label [5] = …

Member Avatar for adams161
0
760
Member Avatar for PDB1982

How do I make an array to find the largest portion of another array? I am trying to find the candidate that received the largest amount of votes from the following file: Johnson 5000 Miller 4000 Duffy 6000 Robinson 2500 Ashtony 1800 here is my code: [code] #include <iostream> #include …

Member Avatar for Clinton Portis
0
134
Member Avatar for murid

I wonder, what is picture/ image especially JPEG n GIF format ?? Is it lines of bit, byte, or binary ?? thanks...

Member Avatar for mrnutty
0
98
Member Avatar for nonshatter

Hey guys, basically what i'm trying to do is take each line from two text files and store them into two variables, salt and original. I then want to pass these 2 variables to a different method called: crypt(String salt, String original) How would I go about doing this? Many …

Member Avatar for ~s.o.s~
0
113
Member Avatar for sachinarora

hi, i have seen a code through some body on this site and apply it , it was working correctly but it no not on the site know can anyone please tell me the code of it ,the code was about 60 lines long

Member Avatar for kvprajapati
0
98
Member Avatar for sleign

I've been working at this most of the day, trying to figure out how I can accomplish this sort of form, even looking through countless sites for anything vaguely close to what I'm trying to do for help on logic or syntax behind this (to little to no avail, of …

Member Avatar for sleign
0
139
Member Avatar for sim_pack

hello.. i'd like to confirm if the printer function "printer_open()" without parameters opens the printer connected to the user/client computer? or does it look at all network connections including the web for the presence of a printer? thanks..

Member Avatar for sim_pack
0
242
Member Avatar for adams161

Hi, i've started making a simple breakout game with java swing. This is just for fun and to learn more about java and swing. I got a frame and a panel and a mouse listener. I draw a paddle on the screen and it moves as the mouse moves. I …

Member Avatar for adams161
0
105
Member Avatar for mcx76

Hi, I am making php from.Everhting is working fine.I am receving result as below.I want to space before Tel no.Please be advice how i can do. Thank you. --------------------------------------------------- Email Result -------------------------------------------------- General Info Request Name: Khan 1665 Bloor Street Mississauga L4X3T4 Tel:647-290-0000 Email: [email]hanyon@gmail.com[/email] Best Time To Contact:11am Message …

Member Avatar for mindful123
0
213
Member Avatar for John-5-

Hi i'm having some trouble getting my head around this assignment... which is : Design, write and test a program to print a table of factorials. The program should read in two values: a maximum factorial value and a minimum factorial value. It must then print a table, as illustrated …

Member Avatar for mrnutty
0
130
Member Avatar for Trekker182

Hello everyone, I'm trying my hand at the strategy design pattern. I've got most of my code working, however, I keep running into two errors "invalid use of undefined type `struct sortStrategy' " strategy->sort(students); "forward declaration of `struct sortStrategy' " strategy = s;} I did a google search on both …

Member Avatar for Trekker182
0
146
Member Avatar for calina

Hi guys I was wondering whether someone could help me with a slight issue I have. I'm trying to set up a quick poll using AJAX which all works fine when using Firefox but running into issues via IE. [CODE] $(function() { $('.error').hide(); $(".button").click(function() { var userid = $("input#userid").val(); var …

Member Avatar for Practicality
0
164
Member Avatar for ibanez270dx

Hey guys, I've very new to JSP, Java, and Netbeans and I'm having an issue... So I've got an ArrayList of User objects and I'm trying to iterate over the list in a JSP page to display the info. I've included the JSTL 1.1 jstl and standard libraries. Here is …

Member Avatar for ibanez270dx
0
5K
Member Avatar for Darth Vader

I wonder if there is any function that returns the difference in minutes for examples like this: 1300-1515 (135 minutes) 2350-0100 (70 minutes) Is there any timefunction that can have the ability to return the minutedifference ?

Member Avatar for Excizted
0
85
Member Avatar for LennieKuah

Hi there, VB.Net 2003 Window Application DataGrid Paging. Need your help The users instead of using Vertical ScrollBar in DataGrid1 they requested for NEXT and PREV buttons for paging the display on DataGrid. I have added the NEXT Button and PREV Button but doesn't know how to create the script …

Member Avatar for LennieKuah
0
122
Member Avatar for sanna.s

hello...i m new to the web designing field, currently i m working on wordpress themes for my website, the exact link of the theme for which i m working is{*"http://www.press75.com/the-folio-elements-wordpress-theme/"*},the theme "folio elements" has a image slider and when we click on a particular image it gives us the details …

Member Avatar for WHHG_InMotion
0
152
Member Avatar for T-Dogg3030

Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters? [CODE] #include <iostream> #include <fstream> #include <ctype.h> #include <ctime> #include <cstdlib> #include …

Member Avatar for mrnutty
0
305
Member Avatar for Musafir

The function has two parameters, one giving the side-length and the other giving the length of the shortest line. The function should draw as many lines of the spiral that fit inside the window def spiral(lenght,side): for i in range(1,side+1,5): lenght.forward(i) lenght.right(90) I made a start of the code, please …

Member Avatar for woooee
0
116
Member Avatar for davil

I found a great client side image resize solution: [url]http://www.resize-before-upload.com/[/url] but the free version doesn't have form integration, so I copied some ajax code off the internet and integrated it into my PHP - so it just keeps checking for a specific file to be uploaded and then the PHP …

Member Avatar for Airshow
0
591
Member Avatar for Drpills

Hello, I am new to this community as well as Visual Basic. My class was assigned a project that is to use Panning and Zooming of a Image. However the code the teacher supplied us zooms to the Upper Left corner of the image instead of the Center of the …

0
108
Member Avatar for ffs82defxp

I'm making a macro in python and I need some help. Basically, it just loads up 4 line entries from a text file and just attaches those 4 things to the end of a URL, and opens firefox to that URL. It then waits a random time between 3min-8min and …

Member Avatar for ffs82defxp
0
307
Member Avatar for T-Dogg3030

I am trying to do a command line switch with an if statement. The problem I am running into is when I am using a letter, it wont recognize it. When I use a number, no problem. I think there are a few different ways to solve this. Can anyone …

Member Avatar for programmersbook
0
101
Member Avatar for Tech B

I cam up with this when I seen what Johnny Lee can do with a wiimote. Youtube it to check it out, pretty amazing. I realized not everybody has a wiimote or a bluetooth dongle to connect it to the PC, so I used my webcam and python. The webcam …

Member Avatar for Tech B
0
909
Member Avatar for doobiez

[quote] I'm having a problem with constructor. I get an error an error "invalid method declaration; return type required" on line 75 ..here is line 75 TypeOfStudent(int minAge, int maxAge, String name) ..and I've posted my whole code below[/quote] [CODE]import java.util.*; public class Student { private String name; private int …

Member Avatar for masijade
0
151
Member Avatar for ratatu
Member Avatar for ratatu
0
80
Member Avatar for anevins

Hi, i'm learning java and I don't know why I'm getting this error. New Error on line 11 - "Cannot find symbol" [code] int first, second; int first, second; double firstcube, secondcube, power = 3, num = 3, pow; Scanner scan = new Scanner(System.in); System.out.println("Enter First Number: "); first = …

Member Avatar for donaldw
0
114
Member Avatar for alsoumhi

Hi all , I am trying to map a user to a jsp page when he tries to enter to a directory of my application using URL. let say my web directory is called school and it has a directory called pages . now I need to map a user …

Member Avatar for ~s.o.s~
0
314
Member Avatar for j_williams18

Can anyone help me. I have a c++ project to do. The program must simulate a vending machine. I will post what i have so far. a data file must be hardcoded into it which provides the different drinks.[code]#include <iostream> #include <fstream> #include <string> using namespace std; const int SIZE=54; …

Member Avatar for j_williams18
0
610

The End.