199,114 Archived Topics
Remove Filter ![]() | |
Hey, I have a search feature that searches for words in my database. I am currently storing all searches that users make in a table called `search`. I need to list the top 10 words that are searched for the most, excluding common words like "the, and, or, etc". Because … | |
So I'm trying to have a relatively simple script. I want to just have one entry in the SQL table and when new information is entered just overwrite that same entry. For the table I have the primary key as the variable ID. I'm not sure how to just extract … | |
break; The break is used to (1)terminate a case in the switch statement. (2)Force an immediate termination of a loop. sample prog. void main() { int a; printf("1. Happy\n"); printf("2. Sad\n"); printf("Enter Your Choice.."); scanf("%d",a); switch(a) { case 1: { printf("You are happy."); break; } case 2: { printf("You are … | |
Hi, I'm new to the community and to C. i have no programing background what so ever but i have been reading books on it. I am trying to use a for loop to print out the folowing ******* (space)******* (space)(space)******* (space)(space)(space) ******* I wrote the program #include <stdio.h> int … | |
Hello all, I started a new project wich function is restoring a corrupted DB. I started with making a backup of the original db and then trying to restore it again. But when executing my code i get following error [CODE]IErrorInfo.GetDescription failed with E_FAIL(0x80004005)[/CODE] Anyone got an idea how to … | |
Okay, here's the senario: I want the form to hide when I click on the minimize button, then the notify icon will show up on the system tray. I have this piece of code: (ntfLibSMS is the name of my notify icon) [CODE=vb.net] Private Sub LibSMS_Resize(ByVal sender As Object, ByVal … | |
There is an a problem on declaring variables on MYSQL stored procedure.The code I used I used is shown below. [CODE]DELIMITER $$ CREATE /*[DEFINER = { user | CURRENT_USER }]*/ PROCEDURE `emp`.`third_SP`() /*LANGUAGE SQL | [NOT] DETERMINISTIC | { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES … | |
Your help would be most appreciated. I'm dong this jquery ajax GET right. Although it submits and sends as a $_GET and is processed fine by process.php for some reason it is not reflected in the url. [CODE]jQuery('#results-submit').click(function() { jQuery('#waiting').show(0); jQuery('#container').hide(0); jQuery('div.carpark').remove(); jQuery.ajax({ type : 'GET', url : 'process.php', dataType … | |
So I have a file I wanna put its content in an array and that needs malloc or new. I do that on a large project, it was working fine but i guess some changes were made to this project and now that malloc causes a crash and "char* array … | |
Hi, here is the question: I have 2 textfields in my JSP: [CODE] <s:textfield name=" ...." /> <s:textfield name=" ...." /> [/CODE] Now I went to browser and did: View Source Code, and noticed that around the above tags, there were auto-generated tags that put the above fields into 2 … | |
[code] import java.util.*; import java.text.*; import javax.swing.*; class Lab4Part2{ public static void main (String[] args) { String ex1; Double num, F; final int a=0, b=0; JFrame myWindow=new JFrame(); myWindow.setSize(500,400); myWindow.setTitle("Calculator"); myWindow.setVisible(true); myWindow.setLocation(600,200); ex1=JOptionPane.showInputDialog(myWindow, "Enter an expression"); F=Double.parseDouble(ex1); num=(a+b); JOptionPane.showMessageDialog(myWindow, "The sum is "+num); } } [/code] I need some help … | |
Greetings! Hi, I'm a vb starter. I've inserted an adodc data control into a form. [CODE]With adodcIncoming .Recordset.Find "p_id = " & "'" & txtPatientId.Text & "'"[/CODE] Above is a code snippet. After this block of codes, I'd like to check if p_id = txtPatientId.Text is found or not, how … | |
My program requires that the user input values for an array do not exceed a declared final int variable. To control this I wrote this code to catch and throw exceptions in order to prevent computer from crashing the program. There are two conditions to be handled. (1) Exceeding array … | |
Hi I am using the following query: [CODE]"SELECT * FROM members WHERE name LIKE '$searchKey%';"[/CODE] Where $searchKey is a variable that contains the string to be searched. The problem is that the code only searches until it has found a space and even if characters after space match the value, … | |
I am going to try to explain this the best I can I didn't develop the original version of this, or the part that rights it to the database. in our company, there is a program that takes PDF files and stores them in our mysql database as blobs. The … | |
Hello everybody, really need some help getting this code to add up even and odd numbers from a set of integers. But it also needs to default or continue through if input is incorrect (i.e.- $,@,#,3.4) and so on. Here is what I have so far. Thank you. [CODE]#include <iostream> … | |
hi every one, i need your help in my php code.Currently i m developing one social site. i had develop php code code for getting recent update from friends. my error is for not printing recent update from friends. i had tried my best but it's not working. i m … | |
I have this 'code' which I wrote as new kind of art form, both as story and code. As program it is little stupid in way of expressing things, because it is writen thinking of human who reads the code. It is supposed to be impressive in that it is … | |
In MS Access you can set the background to a specific colour when the field has the focus. This is done through "conditional formatting", using the "Field has Focus" feature. How is that done in VB.NET? | |
Hey! guys, i need help figurering out how to make this program ran. Jack has decided his student organization is going to sell Oktoberfest shirts at Oktoberfest. In order to compete with other clubs, he wants to offer a 10% discount to anyone who buys 5 or more shirts. Also, … | |
Hello Guys/Gals, Can someone please help me with this PHP code problem. I just uploaded some new WP Themes and when I try to view or activate one of them I keep getting some error messages. I haven't changed anything in this code, all I did was copy & paste … | |
Hi.... I have a datepicker that contains an alternate key of an Access Table with a autokey primary key. [code] Private Sub DateTimePicker1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles DateTimePicker1.Validating Dim d As Date = DateTimePicker1.Value If d < Today Then MsgBox("Gelieve een datum in de toekomst te … | |
Hello everyone, Im new at this site, and I hope I can get some help for my assignment. I have been asked to do the following: Build a pyramid using PHP and MySQL and depends on how many rows. For now I have made the following in my mysql: blocks … | |
my database on sql server 2005. my application is completely working in my computer. but on other machine sql server 2005 login error.sql server does not allow remote server. please how can i load my application on other computer. | |
I haved created a registration form by create user wizard. Now what i wanted is dat after 2 day of registration user should have locked out automatically. what shoule i do for this? | |
Hi, I have a php file session.php: [CODE] <?php require_once("functions.php"); session_start(); ... ?> [/CODE] I tried to include this in one of my php scripts, but it shows me a warning: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\cjenovnik1\uredi_profil.php:1) in E:\xampp\htdocs\cjenovnik1\includes\session.php on … | |
I have a problem with updating records in a database table. Background: The user can fetch data that belongs with an image. The data is displayed in a form. In this form the user can add/change data and then save this to the database. This part works fine. My next … | |
Hi, I need some help completing a dynamic form done in asp. I will put the code shown below: Things that need to be considered: 1. Sending this form via email, and output will show after user types his/ her input. 2. Radio buttons are constructed-- so the message and … | |
Hi, I'm working on a multiplayer internet game. I decided to use UDP protocol, as it's faster than TCP. The problem is that UDP doesn't have an established server-client connection which makes it impossible for me to send data from server (with public ip) to a client (with non-public ip). … | |
i am trying a case statement that will input different results based on the town a user enters in a form .the code in the form is [CODE]<html> <body> <form action="relay.php" method="get"> town:<input type="text" name="town" /> <input type="submit" /> </form> </body> </html [/CODE] while that one for case is [CODE] … | |
Hello, Please help! I"ve created a form with three comboboxes and a datagrid. I've connect the comboboxes to the database and they all work but when i try and fill the datagrid based on the final selection from the last commbobox but it will not populate the datagridview..Help! [CODE] cmbVendor_MouseClick … | |
Request for following excerpt's explanation. [URL="http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm"]http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm[/URL] [QUOTE]Except in certain contexts, an unsubscripted array name (for example, region instead of region[4]) represents a pointer whose value is the address of the first element of the array, provided that the array has previously been declared. An array type in the parameter list … | |
Hi, I've just downloaded GNUstep onto my Vista machine, installing the GNUstep MSYS System, GNUstep Core and GNUstep Devel components mentioned on theGNUstep website ([url]http://www.gnustep.org/experience/Windows.html[/url]). I installed into the standard folders but when I try to open the shell for GNUstep the window flashes up and disappears again. I've checked … | |
Hi, I am writing a program in VB6 where I'm adding an "Import/Export" option to the file menu. Starting with export, I basically need to find all files matching a particular filename and zip and export them to a folder. Currently I am simply finding all the files (with different … | |
Hello, Is this function "EscapeCommFunction" is correct to set RTS signal? Here is my code. I want to set on RTS before sending data to rs232, and set off RTS after sending data. // RTS on. EscapeCommFunction(*hComDevice, SETRTS); // Sending data to port. fWriteStat = WriteFile(*hComDevice, txbuf,(DWORD) iTxPosition,&dwBytesWritten, NULL) ; … | |
Write a program that generates a pyramid of numbers from a users input (kbReader = new Scanner(System.in)) for example the number 5 is inputted and the wats printed is... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 help? | |
Ok, I know there's missing code from the top but it's stuf that doesnt matter and I didnt feel like modifying it with dummy data to post the full PHP page here. Anyway, the below code produces this: [url]http://www.myu2sig.com/currentusers2.php[/url] If you page around you will notice that it always shows … | |
Hey i have a filename in this format RECORDddmmyyyy on my PC. I want to include it into mysql table.I solve the problem of getting date but still have one issue,how to pass it to the database. char filename ="RECORD" i append later on the date to it as well … | |
This is the code of my key listener for a game.The keys move a plank upwards and downwards for two players.The problem is when one player keeps a key pressed then the other key event does not execute.what i want to do is that both players should be able to … | |
Ok so to give you a brief summary of whats going on our original assignment was to make a password directory that adds, saves, looks up, and removes a name and password that are connected together in an array. So now we need to alter the code so it works … | |
Im trying to insert items into a BST from a txt file. For arguments sake the data file is just the integers 1 2 3 4 5 6 7 8 9. When i try to do a inorder traversal, all that is outputting is the first and last number. I … | |
Hey guys, im getting a null pointer exception... but i dont know what is wrong. Im trying to get data from a hashmap, and place it in a swing tabel. [CODE=java] ArrayList planes_array[] = null; //planes_array[0] = new ArrayList(); for(int i=0; i<planes.size(); i++) { ArrayList tmp_array = new ArrayList(); tmp_array.add("1"); … | |
Hi guys, I am writing project for bank operation in MFC, before running my application i have to check the username and password. But i have some problem in my code, my main frame window is closed after enter username and password.Any one tell me the reason..... [CODE] class CLoginDialog … | |
Hi all! I am trying to manage and understand dates with c++, but the output that I am having does not help much. Basically I would like to adjust a localtime that can be seen in the string "s_prueba_time" to a UTC time (in my case -2 hours in summer … | |
[CODE]import javax.swing.*; import java.text.*; public class Postage3{ public static void main(String args[]){ double weight, cost, count; int choice, choice2; DecimalFormat df = new DecimalFormat ("0.00"); choice2 = 1; while(choice2 == 1){ weight = Double.parseDouble(JOptionPane.showInputDialog("Enter weight of postage according to ounces")); if(weight <= 1){ cost = weight * 0.30; } else{ … | |
Hi, I have an aspx form that is meant to add a new prescription for a doctor system. I've created the database and dataset needed, but the problem is that the doctorID and patientID has to be able to select from the database, not entered in as a plain text. … | |
Hi, there i didn't even know is that how its called but can you help me and tell me what is that LLIST from the structure into the type function and why its used in this case: [code=c] typedef struct node { int data; struct node *next; /* pointer to … | |
Sorry if this is repetative but still struggling with this. i wish to multiply 2 long integers together. if the result is outside of int64 range i want the loop to break otherwise i want to keep the result and increment the second number. have tested this, but when the … | |
How to connect a listbox to another listbox by their index? can someone help me with this? some codes please. thank you! | |
I have a Java form where I need to be able to switch a drop down with a text box using Javascript. The change would be made depending on the radio button choice the user makes. The drop down is the default form element and radio button A is checked … |
The End.