64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for umandajayo

hello friends, I am try to get database values from while loop. but It gives me [B][COLOR="Red"]Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource[/COLOR] in /home/empower.md/www/index_ujbee_file_uploard.php on line 32[/B] here this is my code... [CODE] require "connect_ujbee_file_uploard.php"; require "todo.class_ujbee_file_uploard.php"; // Select all the todos, ordered by position: …

Member Avatar for rajarajan2017
0
82
Member Avatar for sujimon

Hi, I am using Forms Authentication in my VS-2005 website. In case of wrong credentials or while explicitly requesting protected pages the website is able to redirect user to login page. However, when correct login credentials are provided the application is not able to redirect the user to the desired …

Member Avatar for dnanetwork
0
155
Member Avatar for patrick k

I was wondering if anyone could help me a little bit with a problem I encountered on Project Euler. The specific problem at hand is to find the 10,001st prime. I have implemented what I think to be a version of the Sieve of Eratosthenes. When I modify the problem …

Member Avatar for GreenDay2001
0
129
Member Avatar for SoulMazer

Hi, I'm new to C++ and I'm having trouble with this dang linker error. The full error is as follows: [quote]Error 4 error LNK2001: unresolved external symbol "public: static class std::list<class Node,class std::allocator<class Node> > NodeManager::node_list" (?node_list@NodeManager@@2V?$list@VNode@@V?$allocator@VNode@@@std@@@std@@A) Nodes.obj Error 5 fatal error LNK1120: 1 unresolved externals[/quote]From this error, I have …

Member Avatar for SoulMazer
0
319
Member Avatar for AngelicOne

How to put parameters within dataadapter? Here's an example of non-parameter query.. [CODE]SqlDataAdapter da = new SqlDataAdapter ("SELECT * FROM Table WHERE column='"+textBox1.Text+"'",con);[/CODE]

Member Avatar for Lusiphur
0
2K
Member Avatar for kurtzky

Hi all. This is the scenario that i have right now. i have a stored procedure created in MS SQL 2000 and is linked to my C# program. The stored procedure contains four select statements (which means it will return 4 tables). In my program, I have four datagrids and …

Member Avatar for kurtzky
0
176
Member Avatar for PixelExchange

Hello everyone. I am attempting to build a "form" using Win32 and C++, which contains all of the necessary elements (drop down menus, radio buttons, and check boxes). The problem is, I can find absolutely no resources as to how I would code a drop down list within Win32. The …

Member Avatar for PixelExchange
0
147
Member Avatar for mpc123

Sorry very very new to php , at the end of my table is the following [code=php]echo $row['ProductUrl']; echo "</td></tr>"; } [/code] i want to have an image show on the page and on click of that image it then go to the product url. The [ProductUrl] from data base …

Member Avatar for metalix
0
103
Member Avatar for suhailansari

Hi I am new to the database concept and I have to make a college project such as hospital management, Transport management system etc. in DBMS. Our college is teaching us MYSQL. Please can anyone advice me as what to use in making these projects. What database type to use …

Member Avatar for griswolf
0
273
Member Avatar for buster2209

I can't items to my combobox I am under the impression the code is; [CODE]comboBox1.Items.Add("NAME");[/CODE] but this doesn't work. The program compiles correctly but nothing is displayed in the box. What am I doing wrong?

Member Avatar for buster2209
0
1K
Member Avatar for Lukezzz

Hi, I have a code where I upload a file to a server. The code is shown below. As seen I use a loop to try to connect 10 times if attempts is failing. I have also put this in a try/catch block and at the end, I am showing …

Member Avatar for Lukezzz
0
245
Member Avatar for Musing888

Using the following code I am trying to check the users input string (CAcodes) and checking each one individually by assigning each element in CAcodes to a list (CAcode). A for-loop checks the conditions to make sure that the conditions for each code are met. The main for-loop tests several …

Member Avatar for TrustyTony
0
296
Member Avatar for nssltd

Hey well i am using microsoft visual c# 2008 professional edition and i seem to be having trouble using the cursor. The cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my windows default cursors to …

Member Avatar for nssltd
0
255
Member Avatar for nssltd

Hi well i posted a earlier thread but no one has replied in three days i have one reply, but it's not what i wanted. he cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my …

Member Avatar for nssltd
1
364
Member Avatar for cjmartin

I have tried a few different ways to to highlight the text in a jcombobox when it receives focus but none have work. Any have a code example that could help? Some examples I have tried: [CODE] private void fromComboBoxFocusFocusGained(FocusEvent event) { JTextField field = (JTextField)fromComboBox.getEditor().getEditorComponent(); field.selectAll(); } [/CODE] [CODE] …

Member Avatar for cjmartin
0
503
Member Avatar for QWaz

Hi, I am pretty new to php and am not sure if what I am attempting to do for a client is possible. Hoping to know if anyone knows if it is and a solution? I want to: - upon registering a new user create a new folder using their …

Member Avatar for sourcebits
0
133
Member Avatar for tieren

Dear Gurus, I am trying to insert information into three tables then send an email. The purpose of the code is to place uniform orders within a company with multiple stores. Each store must be able to place orders according to job function as well as order accessories available for …

Member Avatar for tieren
0
140
Member Avatar for Naveed_786

Dear All, I am designing a crystal report in VB.NET I have designed a crystal report i want to pass parameter from a textbox but when i pass parameter or without passing parameter run the report it pulls all the records from the database please help my code is as …

Member Avatar for Oxiegen
0
207
Member Avatar for Lukezzz

Hello, I use a a flashcontrol in the Form application. If I have Flash installed on the computer, the control plays the movie fine. If I uninstall the flash from the computer, I receive this error when opening the form. I have tried to put this code inside a try{} …

Member Avatar for cgcgames
0
176
Member Avatar for iamcreasy

Can anyone tell me how to compile "mingw-util 0.3"? I am a little confused, when some article says "use make command and it is all done".But "make" command in unknown in my command prompt.I have MinGW installed which comes with codeblocks. I need it to compile MySQL driver, to use …

Member Avatar for iamcreasy
0
119
Member Avatar for cpp.coder37

Hi every one. I want to ask a question. Whenever i plugged a usb in my computer i want to save that time when this happen. Means that i want to save when when a usb is plugged in my pc in a particular day. I want to do it …

Member Avatar for sirio.bm
0
83
Member Avatar for mpc123

Please help with this if you can My example code below is part of a table that echos several fields, for this field I need to echo the text of the field which the below example code now does, but i need to make it state N/A if the field …

Member Avatar for Usernamex235
0
1K
Member Avatar for helpme87

So i am trying to make a program that takes the date from windows (this is not where i have the problem). My problem is i want to use that date and create a txt file for each day. For example it would create a file named... 8_4_2010 for today …

Member Avatar for helpme87
0
156
Member Avatar for teedoff

I have a framed page with 2 frames...left and right. The left frame displays a dynamic list and of course when you click on one item in the list, the right frame displays the details of that item. I wanted to be able to use the right frame as an …

0
113
Member Avatar for aabi

hi i m using widos 7 64 bit home edition and want to use borlandC++ taht is not supported by 64bit OS so i install DOSBOX0.74 and try use borlnad in it but seems to me not working as it firstly dosbox can not able to initialize some of it …

Member Avatar for aabi
0
313
Member Avatar for mpc123

Please can somebody help with this. I want a Buy Now image to go to the producturl in the database, at the moment I am just echoing , so it only shows the text of the url in the cell. my code currently is [code=php]echo $row['ProductUrl']; echo "</td></tr>"; [/code] Hope …

Member Avatar for hielo
0
135
Member Avatar for pdk123

Hello All, I need your help to understand , if the following code is ok ? (Baically to have polymorphism of different argument types ) class A{ ... ... public: int function( structA *ptrA); int function( structB *ptrB); } I am getting the compilation error saying the syntax error at …

Member Avatar for pdk123
0
121
Member Avatar for jacg4

Hello guys This time the problem is basic, I want to install Windows Mobile SDK for Pocket PC so I downloaded and opened it, it shows me the first screen of the installation, but when i click next it shows an error telling me that not all of the development …

Member Avatar for jacg4
0
256
Member Avatar for sbrohee

Dear all, I am completely lost and I don't see at all my mistake! I thought this would be a very easy step in the building of my classes. Thanks a lot for your help! In the context of graph theory, I have a class Node. As attribute of this …

Member Avatar for sbrohee
0
355
Member Avatar for PhoenixInsilico

[CODE] my %distAvail; foreach (map(split(/\D+/,$_),<STDIN>)) { $distAvail{$_ }++; };[/CODE] What does [COLOR="#ff0000"]$distAvail{$_ }++;[/COLOR] mean here? The input is set of distances separated by whitespace (or any non-digit character). The book says %distAvail keys are distances and whose values give the number of copies of the key. But I don't understand …

Member Avatar for PhoenixInsilico
0
267
Member Avatar for reibi

Hello all, well sometimes user insert information like "name" in the database because of which it causes problem in the site. So anyone tell me how to resolve this problem. I have already used addslashes.

Member Avatar for metalix
0
210
Member Avatar for nv136

I have a Splash Screen (which is the first thing that loads). and after 10 seconds of viewing the splash screen i want a form to appear... is that hard to do?

Member Avatar for kinwang2009
0
170
Member Avatar for jeeter19

Hi, I am practicing MySQL JOINs and was hoping I could get some insight on how to do a particular problem. I am using the World database, it has a table called City with name, population, country code. It also has a table called Country, with Code and Name. What …

Member Avatar for jeeter19
0
97
Member Avatar for venkat123

Hi, Can anybody tell me how to access hard disk partition information or MBR content through Visual C++ Programming? Suggest me how should i do programming and which API i should use for this purpose. Bye.....

Member Avatar for xuancong
0
3K
Member Avatar for Allophyl

I have the line [code=c++]#include <algorithm>[/code] at the top of a file, and the line [code=c++]nth_element(minRollArray,minRollArray+n,minRollArray+numSets);[/code] in one of the fuctions in that file. However, when I try to compile it I get the error error C3861: 'nth_element': identifier not found at that line. I would expect this if I …

Member Avatar for Allophyl
0
557
Member Avatar for watery87

Hi guys, am currently creating a client/server program. However im having trouble reading from a text file. Im not sure whether fgets or fread is better in my case. Basically my program requires user to input a country, and the program will display its details out.My question is, what method …

Member Avatar for watery87
0
479
Member Avatar for sathya8819

Hi, I would like to know if it is possible to obtain a color picker in c#, something similar to the properties dialog box in .NET. My application requires choosing the color dynamically. I know that there is a ColorDialog control, but I assume that the color picker is far …

Member Avatar for dotmeatpack
0
136
Member Avatar for DaveTran

I'm using a dictionary to store my Foo classes. [CODE] class Foo { int i = 0; public void Update() { i++; } } Dictionary<string, Foo> fooDictionary = new Dictionary<string, Foo>(); [/CODE] The dictionary contains [CODE] fooDictionary.Add("MrFoo", new Foo()); fooDictionary.Add("MrsFoo", new Foo()); fooDictionary.Add("BabyFoo", new Foo()); [/CODE] How can I iterate …

Member Avatar for Teme64
0
117
Member Avatar for Nandu Das

I installed c++ and started to write a new simple program.But i got a warning "Function should return a value". The source code is correct and the directories are also correct. What should I do? Pls help....

Member Avatar for $urya
0
71
Member Avatar for nbaztec

Basically, I didn't know where to put this so I choose the Super of the 2 Languages. Our lecturer gave us an assignment to lay out diff. b/w C & C++, which started with a rather dirty spurge of concepts. He stated: In C program , the MAIN() should NOT …

Member Avatar for mrnutty
0
578
Member Avatar for PixelExchange

Hello everyone. I already know the C code required to use SQL statements within C++. Using mysql_real_connect, I was able to establish a connection to a remote MySQL server. The problem is, even though mysql_real_connect did not RETURN NULL, (meaning that a connection to the mysql server was established) I …

Member Avatar for PixelExchange
0
218
Member Avatar for blueman:-0

how i can print something , i was write it in textarea , labele , any thing by printer alike word ?

Member Avatar for blueman:-0
0
69
Member Avatar for qqwushi12345

Write a program that reads in a positive integer N and calculates and displays the sum of the first N even integers. For example if N is 6, the program should display the value 42, which is: 2+4+6+8+10+12=42. Caution: You need to write a program to do the addition. If …

Member Avatar for Allophyl
-1
1K
Member Avatar for PixelExchange

Hello everyone. I have tried to fully install MySQL on Windows Server 2003 for a few days now, with no success. There are two things stopping me from completing the install: 1) I forgot the initial password that was used for the root user 2) Every time I get to …

Member Avatar for PixelExchange
0
144
Member Avatar for nadskap2

Hey there everybody! Me and a couple of others are currently making a CMS but we got a problem :( Here is the code: [code=php] function ImportSQL() { $conn = mysql_connect($_POST['host'] . ":" . $_POST['port'], $_POST['user'], $_POST['pass']); mysql_select_db($_POST['vision_db'], $conn); $db_content = @file_get_contents("../sql/Database.sql"); $query = mysql_query($db_content); if(!$query){ return mysql_error(); }else{ return …

Member Avatar for Excizted
0
205
Member Avatar for cristi08
Member Avatar for Zagga
0
2K
Member Avatar for usiyalla

hi want to learn javascript and i'm using ubuntu 9.04.i have google chrome and fire fox with enabled javascript. All things are good but when i write a js file and open it in browser but nothing happening html code loads but js not any hint why .

Member Avatar for usiyalla
0
221
Member Avatar for Shikhin

Hi All, I am a newbie and am traking a course in Aptech for C++. Now my instructor asked me to make a program to create, display and insert nodes in a circular link list. I have made the following code: [CODE]#include "stdafx.h" #include <iostream> #include <stdio.h> #include <new> class …

Member Avatar for Shikhin
0
182
Member Avatar for burgercho

I am making an application for blackberries and wanted to make use of touch capabilities on touch capable phones. Is there a way to do this without making two separate projects (like I would in c with preprocessors that check the compiler)? An idea of what I'm trying to do …

Member Avatar for burgercho
0
193
Member Avatar for nocookies92

I'm trying to create a string array, but the compiler keeps giving me an error message on the lines I assign a value to each index of the array. Here's the code: [CODE]String[] greeting = new String[4]; greeting[0] = "Why, Hello there!"; greeting[1] = "Welcome."; greeting[2] = "blah blah blah"; …

Member Avatar for nocookies92
0
124

The End.