64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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, … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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)) … | |
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 … | |
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 … | |
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, … | |
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; … | |
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 … | |
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"; … | |
[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 … | |
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 … | |
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 … | |
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 … | |
Is there a way to convert from an integer to a string? | |
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 … | |
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] | |
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 … | |
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. | |
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) … | |
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 … | |
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; … | |
![]() | 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, … ![]() |
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 … | |
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 … | |
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"); } } … | |
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. | |
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? | |
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. | |
![]() | 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. ![]() |
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 … | |
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", … | |
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 = … | |
i try to make fibonacci pattern but i confused. there are anyone give me a hand for this example?please.... thanks in advance.. | |
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 = … | |
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, … | |
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. … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … |
The End.