199,114 Archived Topics
Remove Filter ![]() | |
hi can someone give this a quick look over and tell me where im going wrong [CODE]#include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> void main() { struct Rainfall{ char city[20]; int month; int rainfall; }; Rainfall Rainfallarray[18]; int count=0; FILE * readfile; readfile=fopen("CityRain.txt","r"); if(readfile==NULL) { printf("CityRain.txt failed to open."); exit(1); } printf("CityRain.txt Opened\n"); … | |
hi, i am working on windows 7 platform,please tell me how to install and configure third party packages,to use that package in some other python program Thanks mukthyar | |
I am taking a database course and we are required to create some SQL queries. So don't give me the answer if possible. Just let me know what is wrong with this code: [INDENT]SELECT p.pat_id, p.pat_first_name, p.pat_last_name, p.pat_dob, ph.phys_last_name, s.service_desc, v.visit_date FROM Visit as v LEFT OUTER JOIN Visit_Service as … | |
I would like to auto-generate a column which has a mixture of both numbers and alphabets. Like AA01 or AC24. I want to start at AA00 until AA40. From here i will go to AB00 until AB40, and do likewise for other subsequent alphabets until the last one which will … | |
Hello All, I am fairly new to Java programming (only a couple of months) and completely new to graphics in Java (couple days). Below is the relevent paintComonent function I wrote. Basically it draws a circuit based on a few member variables. This part works fine. The problem I am … | |
Hi I m Having a Problem in retrieving records. I want to get nth maximum value in a column. I have tried it using top select top n ColumnName from tablename where(select top n-1 ColumnName from tablename order by columnName desc) But i m getting all the n records. Any … | |
We have 4 tables with field types like NVARCHAR and SMALLINT and we have 4 tables in the same database with VARCHAR and SMALLINT. The all reside i the same MSSQL2008R2 database with a database collationtype LATIN_GENERAL_BIN. If we run a simple query on the VARCHAR tables it comes with … | |
I was looking for a piece of code to show all users logged on to my system. What I mean by that is: only 1 person is ever truly logged in at my house, but there are sometimes other users "logged in" with programs running under their account. This is … | |
I'm trying to create a win forms application where a user can fill in events that will happen each day of the year. The textboxes will be generated by a script. The textbox needs to be given the ID of the day and month so it can be found when … | |
Hi everyone, Thanks for viewing this post. I have a question about SQL. May i know how to remove rows that have NULL value in one of the colums. SELECT name, grade, age FROM education If let say grade 1 of the rows is NULL, how do i remove that … | |
i want try to update the value of record from table1 where the value i need is from table2 like: table1 [CODE]Item_id | Quantity 0001 | 100 0002 | 200 0003 | 300[/CODE] [CODE]table2 Item_id | Quantity 0002 | 100 0003 | 50[/CODE] [CODE]when the query run.... i want the … | |
In my application some stored procedures are not working properly in current database of SQL Server. I have taken backup of database 2 weeks ago and all stored procedures are working in backup database. I have checked the properties of current database and backup database both are same. After restoring … | |
![]() | [CODE]<?php if (isset($_POST['submit'])) { if ($_POST['lang']=="") { echo "Dictionary name can't be emptry!"; } else { $name=mysql_real_escape_string($_POST['lang']); include('db.php'); [B]$check=mysql_query("SELECT * FROM information_schema.tables WHERE table_name = '$name'"); echo $count=mysql_num_rows($check);[/B] if ($count>0) { echo "That dictionary name already exists!"; } else { $go=mysql_query("CREATE TABLE IF NOT EXISTS $name ( `id` int(11) NOT … ![]() |
Can anybody plz help me.. i need to find all the users who are grater than 10 days old. table name users ,fild contain with registration dates.to store date i used DateTime.Today with C#.Can any body give me a sql query to slow this | |
Hiii All :D How are you doing ? i'm such a beginner in Java ! however , i made this code i don't know how much professional is it but , I need to use Jfream when I deal with user and Jframe to print wherever I'm using JTable ! … | |
![]() | Hi I am trying to customize the superfish (jquery) menu. Does anyone have experience working with this? [url]http://users.tpg.com.au/j_birch/plugins/superfish/[/url] Cheers. ![]() |
Here is the condition,i have a table with the records for every months per year. I would like to retrieve the records only for three months per year. Lets make this clear, the records would be around Jan~Mar or Apr~Jun or July~Sept or Oct~Dec. Current date is 1-May-2011, so the … | |
Hey. i have a table that has the columns of A,B,C,D and another table that one of the coulmns the VALUES of A,B,C,D i am trying to subquery the 2nd table at the coulmn that stores the abcd. and the result act as a column name for the 1st table. … | |
Hi all, I am currently working with some c++ code on an ARM processor. The issue i am having is that when my application hits a segfault i am unable to get any information as to what caused it. My dev machine is ubuntu 10.04 LTS and i am using … | |
hi, i have in a table"visitdate1, visitdate2, visitdate3 and visitdate4" i also have in this table address fields of "housenumber, street, city, zip" i want to run a query which shows me the amount of visits to a house. should these be stored in different tables? thanks | |
Hello everyone, I am trying to call gnuplot in c++ code using pipe in linux. There is no errors during compilation, building and excecution. However, window with the plot does not appear. Below is the code. [CODE] FILE* Gplt = popen("gnuplot -persist","w"); fprintf(Gplt,"plot '/home/mk/nh1.dat' using 100 with lines"); pclose(Gplt); [/CODE] … | |
HI, I am looking for faster input and output method for the C other than just normal scanf and printf modules. Please elaborate by simple example. thanks :) | |
Dear All, I have form where I add dynamic html element as below. In the php code via ajax I have built the full drop down list. So when I post the form in IE when I do like this $masterID=$_POST['masterID']; I am able to capture the form value. But … | |
Dear All, I have a drop down list. Based on the selection I will create more drop down list depending on the selection of the first drop down list. Example if first I select the value as 3 then three drop down list will be created below. Thus now my … | |
Hi i am using .net 2.0 & a window application which is connected to sql server there is checkbox in the application. i want to bind the checkbox with database field which is bit type 1 or 0 please tell how to ? thanks in advance | |
Hi all, I have two dropdownlist (country and city dropdownlists) taking their data from access database, in order for filtering the data shown in gridview. I want city dropdownlist get notified and change whenever a country selected from country dropdown list I mean, wheneever user selects a country, I want … | |
Hey guys.. could someone please help me with.. What wrong with this: [CODE] echo "<td width='25%'><img src='images/Lock.png' title='" . $row['username'] . "' - '" . $row['password'] . "'></td>";[/CODE] i Get only the username.. Cheers, Sagive | |
I trying compile my program but it all time write error: stray '\32 ' in program , I have there some graphics instruction, I think its error with directx but Im not surre. If somebody want i can send him my source. | |
some subdirectories will display correctly and other wont... Also these are the folders i have [B]website[/B] [LIST] [*][B]admin[/B] [LIST] [*]add.user.php [*]index.php [*]login.php [/LIST] [*][B]css[/B] [LIST] [*]styles.css [/LIST] [*]footer.php [*]header.php [*]newsletter.php [/LIST] 1. [url]http://localhost/xampp/website/newsletter.php[/url] correct sub...[url]http://localhost/xampp/website/newsletter.php[/url] wrong sub...missing /admin after website [url]http://localhost/xampp/website/add.user.php[/url] wrong sub...missing /admin after website 2. [url]http://localhost/xampp/website/admin/[/url] wrong sub...[url]http://localhost/xampp/website/admin/newsletter.php[/url] … ![]() | |
Good Morning, I am trying to create 2 arrays out of a list. Here is the code that I use: [CODE]int* move_x= new int[10]; int* move_y=new int[10]; void D::printpath(){ int i=0; list<state>::iterator iter2; for(iter2=path.begin(); iter2 != path.end(); iter2++) { cout<<"["<<iter2->x<<" , "<<iter2->y<<"]"; move_x[i]=iter2->x; move_y[i]=iter2->y; i=i+1; } }[/CODE] It gives an … | |
Hi, I have found it hard to search for the solution, so as my last resource I'd like to show my problem to you. It basically comes down to that I have an array, a dynamic one. Each index of that array holds a set of coordinates (how many, I … | |
I'm a new at C++ and need some help with this code. I searched but maybe because I'm not familiar with the correct vocabulary for C++, I couldnt' find an answer for this. What I'm trying to do is pass a string into a function that is looking for an … | |
My MASKFORMAT is "##:00" which allow rounded hours but can I include that ## can only contain [0-23]? what would that code look like? [code] private PropertyChangeSupport propertySupport; public static final String PROP_TICKING_PROPERTY = "clock is active"; //public static final String MASKFORMAT = "##/##/#### ##:##:## UM"; public static final String … | |
Hi DaniWeb, I'm currently writing a client server program. I have my client and server sending data and everything fine. But I'm trying to get my client to reconnect. E.g if I get the server to kill the clients connection how can I get the client to realise it is … | |
Hello Everybody, I thought it'd be a great idea to share my code with people who s*ck with the same problem, maybe it'll help... :) It still needs security improovements, but since I'm not a Java guru, I'm a little slow with the solution... :) Any help would be appreciated! … | |
i created a list of name using j2me. its like looking for a contact number in our phone that has a textfield to search. i want that when i type the beginning of the name i want to highlight the name that corresponds the search name.. is it possible to … | |
Hi to All, Is this code can be done with link <a hef=''>? [code] <?php echo "<form action='page.php' method='post'>"; echo "<input type='submit' name='submit' value='Go to Page'>"; echo "</form>"; if($_POST['submit']=="Go to Page") { } ?> [/code] in the code above, once the user click the button, the page load and execute … | |
Hi I would like to get the connection string for both 2003 excel (*.xls) and 2007 excel (*.xlsx). I want to read both files depends upon the selection. When I was using this code [CODE] Dim cn As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & a_sFilepath & ";Extended Properties= Excel 8.0;HDR=YES;") [/CODE] I … | |
Hi, I need to have all the letters of the alphabet displayed across my tabpage, with each letter clickable. Can someone pls help me; I can't get this right, I only have the letter A displayed: [CODE] Label[] lblalpha = null; lblalpha = new Label[26]; string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char[] … | |
Hi everyone. I have a few question to ask regarding email notification in c#. I have the following codes: [CODE] SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); message.To.Add("alex@hotmail.com"); message.To.Add("alex2@gmail.com"); message.Subject = "Test"; message.IsBodyHtml = true; message.Body = "<html><b>Hello World!</b></html>"; smtpClient.Send(message); [/CODE] While in my web.config I do … | |
hi im new to python and programming, and I have just learned loop and nesting statements. I dont understand how to create functions and all that. could anyone come with some good suggestions to make my crappy script better? here is my script: [CODE]print 'choose option' print 'a) fortune telling' … | |
I am trying to get to the "Wireless Network Connection" which we can normally get to by right clicking on that pc icon in the system tray & selecting the "View Available Wireless Networks" option. Is it possible to bring up that window through code using Windows SDK? I tried … | |
Hi I want to create text box array at desing time.It means i want to create text box like Text box1[1],TextBox[2],TextBox[3].How do u create it in desing time in C#. Thanks Tank50 | |
Hi there, I am writing a program that is taking a number and finding its cube roots and then prints out whether the result is an odd or an even number. I have written the following code but for some reasons it is not giving me the right answer. Could … | |
I keep getting undefined with this script... I [CODE]document.getElementById(new_id).style.top = Top; //Works Fine document.getElementById(new_id).style.left = Left; //Works Fine document.getElementById(new_id).style.backgroundColor = Background_Color; //Works Fine document.getElementById(new_id).style.border = Border_Width+" "+Border_Type+" "+Border_Color; //Works Fine new_code = document.getElementById(new_id); //Doesn't Work!!!! document.write(new_code.value);[/CODE] I style the element correctly, but when I want to write it I keep … | |
i am new to PHP programming.. I cant access phpmyadmin and its says "You don't have permission to access /phpmyadmin/ on this server." when i tried to use the ipaddress of my computer instead of localhost... how to fix it can anybody help me??? | |
I am trying to do some simple form validation in a JSP. But the javascript just does not work....as if its just not there. Dont know what is amiss. Here is my code [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> … | |
I have a union named un. I have a un* named up that is the address of a un named u1 (bear with me). The pointer works fine, but I can't pass it to a function. Any alternatives? Here is some code to illustrate (please tell me if there is … | |
I create a form wizard (previous and next) and want to use a validation, I have multiple id to be applied on the form as an id. this is javascript for form wizard [CODE]<script type="text/javascript"> var myform=new formtowizard({ formid: '[COLOR="red"]fslide[/COLOR]', persistsection: true, revealfx: ['slide', 500] }) </script>[/CODE] and this is … |
The End.