64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jennifer_48219

Just want to check my code to see if I wrote them right. If wrong please correct me Create a cfif block that checks for the condition: IsDefined("url.productid") AND NOT IsDefined("form.productid") --- so I wrote [code]<cfif IsDefined("url.productid") AND NEQ IsDefined("form.productid")>[/code] Create a ciff block that checks for the condition: if …

Member Avatar for iqbalhosan
0
81
Member Avatar for infernodeep

Hi, I have a dynamically generated form, and each listing contains a checkbox named 'del'. The users checks the 'del' checkbox next to each listing they wish to delete, and click the submit button. If there are multiple listings/checkboxes on the page, then the script I have works quite well, …

Member Avatar for infernodeep
0
189
Member Avatar for clouddragon

hello, I have to write a program that draws a chart from dictionary entries. I am able to make a draw a chart however it is unsorted. How can i get it sorted. Please help asap. THANKS in advance. [CODE]from random import shuffle from graphics import * def main(n): win …

Member Avatar for vegaseat
0
168
Member Avatar for NycNessyness

Hello guys. I wanted to know how I can go about writing what is selected in a Jcombobox to a datafile. This is an example of what I'm trying to do but when I compile i get an error. How can i correct the line "output.writeUTF(number.getSelectedIndex());" [code=java] String[] numbers = …

Member Avatar for masijade
0
105
Member Avatar for Metalsiege

I've heard that pointers can be a pain in the butt to implement and now I know.. Basically, I'm supposed to input a last, first and middle name. Then compute the size needed for a dynamic array to hold the full name. After that dynamically allocate the array, check DMA …

Member Avatar for Metalsiege
0
86
Member Avatar for phantom715

I have a basic program that access a local Access database, reads data from it into a datagrid, and then allows me to manipulate it by using textboxes. I can add, delete, and search for records. I want to remove the textboxes from the equation completely. Is there any way …

Member Avatar for Jx_Man
0
102
Member Avatar for hwilliford

I've added a treeview control <asp:TreeView.....> to a web application. The control is nested within a form tag, which itself is nested under an HTML div tag. It looks like this: [code=ASP] <div id="sidebar"> <form id="form1" runat="server"> <asp:TreeView id="TreeView1" runat="server" DataSourceID="XmlDataSource1".......> </form> </div>[/code] The control works fine except that the …

0
92
Member Avatar for veledrom

Hi, I am trying to install Oracle 9i but when it comes to Java Runtime Environment, it asks me path for it. I have JRE installed in my Computer. What else do i need to proceed this installation? Thanks

Member Avatar for veledrom
0
439
Member Avatar for Jennifer84

I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values. The problem is that if I have drawed a graph and change some values and draw a Graph again, the …

Member Avatar for Jennifer84
0
117
Member Avatar for ccandillo

I am still reading the learing python o'reilly book and not sure the best way to approch my problem. Given c:\dir1\dir2\dir3. I want to zip all files in dir3 if those files are older than 30 days using 1 zip file (ie. dir_3_files.zip). If all files in dir3 are older …

Member Avatar for woooee
0
1K
Member Avatar for FaMu

hi, I have this method [code=java] public void record() { Scanner input = new Scanner( System.in ); int sid; for ( int counter = 0; counter < length; counter++ ) { System.out.println("Student " + (counter+1) + " Record"); System.out.println("****************"); System.out.print("Enter SID: "); a[ counter ] = input.nextInt(); sid=a[counter]; if (isUnique(sid)) …

Member Avatar for FaMu
0
148
Member Avatar for begin02

Problem: here's the code. [code=pascal]program fun; Uses wincrt; var y:integer; ans:integer; function User(input:integer):integer; var x:integer; ans:integer; Begin readln(input); ans:=1; if (input>0) and (input<100) Then begin ans:=ans+input end else begin x:=User(input); halt; end; User:=ans; End; Begin ans:=User(y); writeln(ans); end.[/code] when run all work perfectly. when i entered 99 i got the …

Member Avatar for Duoas
0
104
Member Avatar for veledrom

Hi, I use VB6 with Oracle database. I also use Adodc and datagrid for retrieving data from database. If i do search with [inlinecode]Select.....Where name IN(LIKE) '" & Text1.text & "'[/inlinecode] does return nothing. I have to type exact value be searched. Why do you think that IN or LIKE …

Member Avatar for veledrom
0
90
Member Avatar for jimbox123

hey everybody I'm taking a computer class right now and one of the projects I need to do is create a very simple pizza-ordering menu. At this pizzeria, there is only one kind of pizza you can order: regular (cheese) with no toppings. Your choices are what size of pizza, …

Member Avatar for vegaseat
0
1K
Member Avatar for savinki

I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; …

Member Avatar for Salem
0
95
Member Avatar for kevin wood

is it possible to add a number to a number that is stored in mysql db without extracting the stored number first. i have a count and i am updating the count periodically but i would like to know if i can update the count while it is in side …

Member Avatar for nav33n
0
80
Member Avatar for kevin wood

after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page. i have set the query up like this [CODE] <?php $rand = rand (0, 100); $query = "SELECT broad1 FROM images_broad"; …

Member Avatar for kevin wood
0
139
Member Avatar for paul1145

[code] 'language = Visual Basic 6 Public Sub CreatePlayList(ByRef songs() As String, ByVal name As String) Dim i As Integer Set listCollection = frmMusic.wmplay.playlistCollection Set list = listCollection.newPlaylist(name) frmMusic.wmplay.currentPlaylist = list For i = 0 To UBound(songs) Set wmpMedia = frmMusic.wmplay.newMedia(songs(i)) frmMusic.wmplay.currentPlaylist.appendItem wmpMedia Next End Sub ' I believe the …

Member Avatar for paul1145
0
200
Member Avatar for Fungus1487

Basically i have a wizard so a user can setup the web app correctly when installed. This requires them to enter details on a server which houses their database. I would like to return a list of current paths in the local network for ease which they could select etc …

Member Avatar for majestic0110
0
227
Member Avatar for kevin wood

i have created a table to store the number of a count which i need for some subtraction at a later date. when i try to get the information out of the table instead of getting the number 5 i am getting resource id # 5. the table has been …

Member Avatar for kevin wood
0
72
Member Avatar for boudie

Formdocs has given me the following code. What I am trying to accomplish is make the form undeleteable without a password. While the code kinda works all you have to do it select cancel and you can delete the record. any Ideas other than go back to class and pay …

Member Avatar for Jx_Man
0
85
Member Avatar for CodeBoy101
Member Avatar for GLT

Hi, Im trying to work out a way for users to be able to add new columns to tables in an SQL Server database through Dreamweaver. I have tried using stored procedures but i keep getting errors. The user will choose which table they wish to add a column then …

Member Avatar for GLT
0
130
Member Avatar for menelaussa

Can some one help me to write this in asp? Is it possible? [code=ASP.NET]<asp:TemplateField HeaderText="Release"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Release" )%> </ItemTemplate> <EditItemTemplate> <asp:TextBox runat="server" id="txtRelease" Text= '<%# if (bdirty) then DataBinder.Eval(Container.DataItem, "Release" ) else GetDefaultRelease()%>'/> </EditItemTemplate>[/code]

Member Avatar for menelaussa
0
89
Member Avatar for VernonDozier

Some similar recent threads have reminded me that I've been wanting to ask this for a while. I would like to declare a 3-dimensional array that uses contiguous memory so that I can calculate memory offsets from the base array element ([ICODE]x[0][0][0][/ICODE]) and use pointer arithmetic to access any array …

Member Avatar for Prabakar
1
2K
Member Avatar for ryy705

Hello, I noticed that on some forms the password is not echoed after the user submits the form and the page reloads(this could because of errors or any other reasons). Why is this? Is there a valid security reason? Or is it just overkill? Thanks in advance.

Member Avatar for ryy705
0
76
Member Avatar for FreezeBlink

Just noticed an odd little problem. Instead of explaining it, take a look at this IDLE run: [code]>>> ================================ RESTART ================================ >>> class test: eggs = True >>> var1 = test() >>> var2 = "text" >>> type(var2) <type 'str'> >>> type(var2) == str True >>> type(var1) <type 'instance'> >>> type(var1) …

Member Avatar for Ene Uran
0
264
Member Avatar for msupstream

Hi, I am currently using a C++ library (live555) to which I have added my own subclass, and this work is my first experience with C++. I need to get access to a pointer that is a private pointer in the parent class. Because I am using an exisiting library …

Member Avatar for msupstream
0
197
Member Avatar for mustafaneguib

hey guys, how are you all. i am having a little problems in linking my files. i am using gcc compiler. the command line that i use is g++ -c player.cpp to create the first object file player.h [CODE=c++]class Player_Type { private: int id; string fname; string lname; string team; …

Member Avatar for mustafaneguib
0
166
Member Avatar for djMot

I cannot get my locally installed Apache 2.2 to execute a .php if simply passed the folder. For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, …

Member Avatar for djMot
0
147
Member Avatar for joshmo

I want to declare my linked list as external in my header file..so that my head and current pointers are globals..i have done something like this but i dont know where the problem is..i want the values of head and current to be initialized and used by all the other …

Member Avatar for joshmo
0
204
Member Avatar for Alex Edwards

Hello, I'm having an issue with a line of code that really doesn't seem that it should be giving me an error. Before posting, I've googled this error and looked at related links with no help whatsoever. Most of the "solutions" were for correctly-placed brackets or different names (since some …

Member Avatar for Alex Edwards
0
2K
Member Avatar for yap

Hello I have older c functions which I want invoke in new cpp program: [code=cpp] // Example of old c function void c_function(int** x, int r, int c) { int i, j; for (i = 0; i < r; i++) { for (j=0; j<c;i++) printf("%i ", *(*(x+i)+j)); printf("\n"); } } …

Member Avatar for yap
0
287
Member Avatar for bigpig

I can echo the variables from my require_once file outside of a function, but inside a function they are empty (i.e. it's as if they were never parsed by require_once at all). Even adding a seperate require_once in the function will still echo empty variables.

Member Avatar for bigpig
0
140
Member Avatar for tanha

Hi, I wan to know where the MySQL variables stored? when I execute the [CODE]show variables; show status; [/CODE] I see many more variables, so I want to know the place they are stored in? and the file name too?

Member Avatar for mwasif
0
93
Member Avatar for ryy705

Hello, Is it okay to save credit card data in the database. I know it will be password protected but still, it will be a disaster if someone ever hacks in. How do real world companies(mine is school project) save their customer's credit card information? Thank you in advance.

Member Avatar for djnzak
0
488
Member Avatar for vs49688

I am writing a launcher program for some software. How can I get the value from HKEY_LOCAL_MACHINE\SOFTWARE\Argonaut Software\Croc2\1.00\InstallPath and store it as a string? Thanks in advance.

Member Avatar for vs49688
0
85
Member Avatar for Janulka

I use MS Sql Manager 2008. I need to extract some diagrams from my database. I tried to use reverse engineering in Visio but there is some problem with compatibility Visio drivers with my DB. Have any idea how to set up this and get the diagram(s)? Anyway I found …

Member Avatar for peter_budo
0
97
Member Avatar for ckehrer

Hi I am new to ASP.NET and to programming in general. I am trying to pass values from two drop down lists which will be display in a lblResult. My page load looks like this: [code=ASP.NET]protected void Page_Load(object sender, EventArgs e) { { ddlCompany.Items.Add(new ListItem("ABC Company", "0.15")); ddlCompany.Items.Add(new ListItem("XYZ Inc", …

Member Avatar for ckehrer
0
95
Member Avatar for Flixter

I have some problem with putting object in vector her's the code [code=cplusplus] #include <iostream> #include <vector> using namespace std; class Pair { public: Pair(int a, int b) {x=a; y=b;}; int get_x() {return x;}; int get_y() {return y;}; private: int x; int y;}; int main() {vector<Pair> set(); Pair* a1 = …

Member Avatar for Flixter
0
151
Member Avatar for Jade_me

i try to make fibonacci pattern but i confused. there are anyone give me a hand for this example?please.... thanks in advance..

Member Avatar for Dajwalker
0
108
Member Avatar for yara1

hii again sorry i ask much but i need help and i learn this my error massage:: Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\admin\logink.php:9) in C:\xampp\htdocs\admin\logink.php on line 24 <html> <head> <?php extract($_POST); if (isset($_POST['userName']) && isset($_POST['password'])) { $userId = $_POST['userName']; $password = …

Member Avatar for Ole Raptor
0
95
Member Avatar for november_pooh
Member Avatar for november_pooh
1
91
Member Avatar for handytxg

Hi, I'm new here and need help with if problems. [code] int main(int argc, char *argv[]) { list<char> charList; vector<vectordata> myvector; if (argc != 4) { printf("Syntax : euro file\n"); return 0; } cout << argv[1]; if ( argv[1] == "e" ) { loadList2(charList, argv[2]); //printList(charList); loadList(myvector); encode(charList, myvector); printvectordata(vectorresult, …

Member Avatar for handytxg
0
96
Member Avatar for Angler

GIVE ME YOUR CODE Not really. Anyways, I'm looking to create a program that simulates dialog. Why? For my own personal amusement of course. *pets evil cat* I've been jumping around languages until I find one that works. All I've learned is that I suck at every one of them. …

Member Avatar for Angler
0
112
Member Avatar for assgar

Hi I would like to put a list of ids in an array and loop to select data from a table using "IN" in the where clause. I am not having any success getting this to work. Any suggestions? Note:I am using Mysql database, apache, linux/Windows <? //array with list …

Member Avatar for assgar
0
121
Member Avatar for Kavitha Butchi

Hello All, Is there a way how we can pass a PHP variable whose value has been retrieved from MySQL database to the next page? Initially I tried this which didnt help me anyway. [code=PHP] // if user login information is CORRECT then redirecting them to the user home page …

Member Avatar for Kavitha Butchi
0
223
Member Avatar for ibocaj

I program board and card games in VB6 Prof on WinXP system. I am also a linguist familiar with several European languages, including Russian all of which I can use in Office 2000. Most languages in Roman(Western) script have accents and I use Character Map to produce what I need …

0
146
Member Avatar for ally1002

hello, i'm fairly new to oracle, but i pretty much get it. anyway i've created a table using this code : [CODE]create table BanquetReservation( ResNo SMALLINT NOT NULL, Restriction varchar(30) not null, ResType varchar(10) not null, DateOfEvent Date not null, NoOfPeople SMALLINT NOT NULL, EndDate Date, StartDate Date, SSN CHAR(9) …

Member Avatar for ally1002
0
152
Member Avatar for jennifer_48219

Hi everyone, I am using the for loop function. I feel that my code is correct but something is wrong. I check for brackets and semicolon and they are in the right places and the right amount. Can someone look at my code and let me know why it is …

Member Avatar for jennifer_48219
0
89

The End.