199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for r3su3l0

Good day to all. I have an existing vb project and my back end is ms access. I changed my database to MySQL and SQL but the problem is I don't have any idea how to connect my VB project to MySQL and SQL throuch ODBC. Your help is very …

Member Avatar for r3su3l0
0
44
Member Avatar for kako13

Hi, I'm trying to update a file with an information in a binary tree. However my algorithm is working only for one NODE. Any suggestion will be appreciated! [CODE]void Arbol::updateFile() { Nodeptr p = miArbol; // myTree Recorrer(p); cout << "File updated!" << endl; cout << endl; } void Arbol::Recorrer(Nodeptr …

Member Avatar for kako13
0
148
Member Avatar for guest7

Hi, I wish to delete the first 3 lines from a file. Following is my code which goes into an infifnte loop. [code=cplusplus] int main() { vector<string> text_file; fstream fout; int count = 1; fout.open("tempfile.txt"); assert(!fout.fail()); string temp; while(!fout.eof()) { if(count <= 3) { getline(fout,temp); count++; } if(count > 3) …

Member Avatar for Ancient Dragon
0
108
Member Avatar for shadowfire36

i got my code to finally compile but, now im getting 5 linker errors that i have no idea why im throwing them the errors are: [code=cpp] football.obj : error LNK2019: unresolved external symbol "public: void __thiscall Football::SearchMatches(struct Match * * const,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?SearchMatches@Football@@QAEXQAPAUMatch@@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function …

Member Avatar for Ancient Dragon
0
156
Member Avatar for BBaller1211

I'm new to Swing, and still relatively new to Java as a whole, and am having trouble with my first Swing program. I'm trying to make a simple Pong game - it will display the title screen with a "Play" button on it that when pressed starts the game. Here …

Member Avatar for BBaller1211
0
82
Member Avatar for jaasaria

hi guyzz, i wanted to have two connection using access and mysql in my proj. my access was my main db connection and what ever data in my access will store directly in mysql db when their is internet connection... I declared 2 fuction connection but my problem is the …

Member Avatar for jaasaria
0
134
Member Avatar for Sephy

So basically i got to make program where you can add rows, inside those rows numbers and count in each row and all rows pair number sum. This far im done and everything is working. Now part which don't want work. I need make option to make rows longer or …

Member Avatar for Duoas
0
112
Member Avatar for OmniX

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to …

Member Avatar for OmniX
0
92
Member Avatar for Yogesh Sharma

I try the foll. code--- protected void Button1_Click(object sender, EventArgs e) { int i; for (i = 0; i <= ListBox1.Items.Count - 1; i++) { ListBox1.Items.Remove(ListBox1.SelectedValue.ToString()); } } But it's not working.

Member Avatar for Jx_Man
0
281
Member Avatar for OmniX

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near." Now this is a really stupid error. (yes that sums up the error S T U P I D) I am making an update to …

Member Avatar for OmniX
0
68
Member Avatar for salman1354

Hi All, Quick question... I have a structure for a specific type of vector: struct SParticle { float Position; float Velocity; float FcnVal; float LocalBest; float LocalBestVal; } But now I need to define 30 objects for this structure. Is there an easy way for doing this or should I …

Member Avatar for salman1354
0
107
Member Avatar for Metalsiege

Hey everyone. I've been working on a homework assignment to simulate a weather station responsible for recording hourly temps and reporting an average temp. I'm supposed to be passing an array to different functions to first get the temps and input them into the array. Then, compute the average temp …

Member Avatar for Metalsiege
0
204
Member Avatar for rayman341

I am working on porting C++ code to Delphi and I am only having a problem with the correct conversion of memmove() statements in the C++ code. If you or any one you know could help me to convert this C++ code to Delphi I would be thankful. // Move …

Member Avatar for Duoas
0
537
Member Avatar for oku

Hello everyone, just got a query regarding calculating I'm building a form and depending on how you fill it in you are given a score, currently i am using if/else statements. Here is an example $age is taken from the database after the form is completed (persons age) $mc is …

Member Avatar for oku
0
138
Member Avatar for help22222

Write a C++ program that prints the attendance sheet of students in a class ordered by either their names or by their ID’s. The instructor will enter the number of students in the class; the students’ names [First Last] and their ID’s which will be entered as integers, and then …

Member Avatar for Ancient Dragon
0
310
Member Avatar for sjinadasa

Hi, This is my first post in this forum and it is a 'help me' post :) Anyway, I took a beginners class in C Programming and at the completion of the class we were assigned to do a project. The project is designing a billing system for a supermarket. …

Member Avatar for jephthah
0
107
Member Avatar for monstro

Given all that I hear about the problems with global variables, is it possible to declare a windows CRITICAL_SECTION object as a member of a base class that will not be created for each derived class? I want to implement an instance counter that is threadsafe, so I thought about …

Member Avatar for monstro
0
199
Member Avatar for nony0905

[code]#include<stdio.h> #include<conio.h> #define MAX_ROWS 10 #define MAX_COLS 10 void add(int a[][MAX_COLS], int b[][MAX_COLS], int result[][MAX_COLS]); void displayValues(int(*)[MAX_COLS]); void diff(int a[][MAX_COLS], int b[][MAX_COLS], int result[][MAX_COLS]); void main() { int val; int i,j; int choice; int cols,rows; int operation; int table1[MAX_ROWS][MAX_COLS]; int table2[MAX_ROWS][MAX_COLS]; int result[MAX_ROWS][MAX_COLS]; clrscr(); printf("Press 1 to enter values for …

Member Avatar for Prabakar
0
145
Member Avatar for m_shanak

hello, i just asking if any body can help me to make a marquee display data from mysql data base like this web site [URL="http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm"]http://www.aljazeera.net/NR/exeres/F06E0D8B-BE98-445A-9752-8E7EA9DAD30F.htm[/URL] thx v. much

Member Avatar for nav33n
0
274
Member Avatar for purepecha

[code=cplusplus] //I have a problem, i trying to get the total prime numbers for each row on the output. //I jus getting the total prime numbers from the firs line 1 to 100 // my task is to get the total prime number from 1 to 100, 1001 to 2000.....49001 …

Member Avatar for Prabakar
0
114
Member Avatar for kevin wood

i have created this piece of code to retrieve the path to a file from a mysql db, the file exists and can be displayed directly from the sql query. the code looks like this [CODE]$query = "SELECT broad1 FROM images_broad"; $result=mysql_query($query); while($row=mysql_fetch_array($result)){ $image_path="{$row['broad1']}"; }[/CODE] i now want to display …

Member Avatar for kevin wood
0
147
Member Avatar for sweetleilani

Hi. I'm a newbie to php and have created a login form that does not use an sql database. After inputing all the code I've tested it in IE and it doesn't work properly. If I leave the username and password blank but hit the submit button, it takes me …

Member Avatar for jana36
0
92
Member Avatar for InfinityArc

hi i am trying to make a function for calculating the commercial boat fee, so if a boat is commercial, the program will add additional fee to the total sum, and if its not it won't add anything to it. i got the function to run, but all i am …

Member Avatar for InfinityArc
0
133
Member Avatar for HB25

Dear Friends I have finished the Data dictionary table for my assignment but I cannot figure out my (Composite and Foreign) Keys. I am attaching my physical data dictionary table with this massage. I would be very grateful if someone could identify them for me and update the table for …

Member Avatar for HB25
0
233
Member Avatar for kevin wood

i have store an image on the server from a file upload with a random number attached to it. i have then stored the random number in a mysql db for use on other pages to display the images. the problem i am having is that the image will not …

Member Avatar for kevin wood
0
75
Member Avatar for phploveisgood

Please I need some help! When I am developing, these code below works fine: [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/aktuelle seite/index.php') { $style_home = 'style="background-color: #6C674F"'; } ?> <ul> <li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>[/code] But, when I put on the server : [code=php]<?php if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php') //"bobo" is the name …

Member Avatar for amigura
0
294
Member Avatar for ze-m!nd

Hey everyone, I'm trying to make a C++ program that inputs data into a web page. For example make a program that takes an input and enters it on the google search box and presses the enter button for you! Can anyone help me? Any codes or ideas where to …

Member Avatar for jephthah
0
117
Member Avatar for vanessia_1999

Hi everyone, I am so new to javascript and it is really giving me a micrain. It looks easy but tend to be hard. Atleast for me since I am a beginner. I need help please. I need to make work with the element getElementById I have tried numerous way …

Member Avatar for vanessia_1999
0
129
Member Avatar for shadowfire36

well my struct is fix but i have new errors i hve never seen before : here are the errors [code=cpp] football.cpp(194) : error C2664: 'void Football::SearchMatches(Match *,int,std::string)' : cannot convert parameter 1 from 'Match *[2000]' to 'Match *' football.cpp(205) : error C2664: 'void Football::SearchMatches(Match *,int,std::string,int)' : cannot convert parameter …

Member Avatar for shadowfire36
0
140
Member Avatar for TheFueley

I'm trying to work out what should be a simple composition example. For some reason I can't compile this project though. I get three errors when I try to compile. Errors listed below. Where am I going wrong? 1>c:\documents and settings\user\my documents\visual studio 2008\projects\name\name\ssn.h(5) : error C2011: 'SSN' : 'class' …

Member Avatar for TheFueley
0
178
Member Avatar for Najid
Member Avatar for ray_broome

Hi, I've got a form with a few text fields, and only today I noticed that when i tried copying some text from an email and pasting it into one of the fields, after submitting to the database (and printing the query), i noticed that the name sent had something …

Member Avatar for rgviza
0
192
Member Avatar for Jennifer84

I am readin a .txt file Line for Line and what I am interested to do is to identify that if the Line do contains any characters as Letters, text, symbols. Exceptions is things like: '\n' ' ' etc... so "" wont be possible here ? So I am trying …

Member Avatar for Radical Edward
0
91
Member Avatar for rami2005

hi i have aproblem i have atable in database and the table has three colums branch_no branch_nnnno distance 1 2 5 1 3 7 2 1 5 2 4 10 3 5 15 4 5 5 i need aprogram by vb.net that find the shortest path between any two nodesw

Member Avatar for rami2005
0
153
Member Avatar for maydhyam

Hi All, I have a form with a submit button that enters the registration data into the MySQL DB...is there a way for a notification to be sent to the System Administrator notifying her about the registration?

Member Avatar for maydhyam
0
79
Member Avatar for maydhyam

Hi, Can anyone tell me what is wrong with my code? I am trying to have an email sent to the email addy hardcoded informing the the email receiver that the info was sent into the DB...and when I do add a user, no email was sent...only the registration data …

Member Avatar for maydhyam
0
174
Member Avatar for maydhyam

Hi All, I think I'm lost..... Here's my problem, I have a searchUser.php which allows the user to enter the Employee ID and submit (which searches for the user). The result is displayed from the chunk of code below. I want to allow the user to append a particular field, …

Member Avatar for maydhyam
0
120
Member Avatar for servis

i am extemly newbie and don’t know whether I should post my problem here or somewhere else, however… i have following problem in one of my php-mysql application header link through browser is, "http://localhost/test/reply.php?id=852" and query is as follow, [ICODE] $name=$_POST['name']; //from the name form $q_id=$_GET['id']; $sql="INSERT INTO `test`.`reply`(`rid`,`tid`,`name`)VALUES(NULL,'$q_id','$name')"; $result=mysql_query($sql);[/ICODE] …

Member Avatar for rgviza
0
4K
Member Avatar for amjadamjad20

HI First I apologiz ‎ about my bad language Be cuz my language is not English I have this problem in my project code And I try to solve it but I cannot This is in the part of main [CODE]int main () { Queue<primaryPatient> primaryQueue;//create object from class Queue …

Member Avatar for Duoas
0
106
Member Avatar for princeanthony

Please write echo statement from html statement below; <a href="javascript:ajaxpage('test.htm', 'contentarea');">test</a>

0
73
Member Avatar for guest7

Hi, I wish to do the following things: a) Append the first three lines from the file "file1.txt" at the end of another file "file2.txt" b) Run a program "prog1.cpp" which uses the file file2.txt. c) Delete the three lines appended at the end of the file "file2.txt". and append …

Member Avatar for Duoas
0
96
Member Avatar for Rahul17

I have written this code in Jsp file . [code=JSP]<% Connection con=null; Statement st=null; PreparedStatement ps; String nm=request.getParameter("tnm"); String loc=request.getParameter("tlc"); try { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/rahul","root","root"); st=con.createStatement(); try { ps=con.prepareStatement("insert into dept(deptname,location) values(?,?)"); ps.setString(1,nm); ps.setString(2,loc); ps.executeUpdate(); out.println("Value inserted "); } catch(SQLException e) { out.println("sql is not executed"); } } catch(Exception ex) { …

Member Avatar for jwenting
0
133
Member Avatar for rayman341

typedef struct iphdr { u_char ip_hl:4, /* header length */ ip_v:4; /* version */ u_char ip_tos; /* type of service */ short ip_len; /* total length */ u_short ip_id; /* identification */ short ip_off; /* fragment offset field */ #define IP_DF 0x4000 /* dont fragment flag */ #define IP_MF 0x2000 …

Member Avatar for rayman341
0
470
Member Avatar for twgood

I have an assignment on currency I turned it in, and it is not right by no menas. I had no loops in any module, can anyone explain how to do a loop?

Member Avatar for allen.jes
0
118
Member Avatar for Ravinx25

can i use animated gif instead of bitmap images on the background of my forms? or can i post animated gif on my forms? can anyone tell me how this can be done? need your response thnx in advance.

Member Avatar for Ravinx25
0
54
Member Avatar for neerajpareek

I, i am beginner in VB programming. I am developing a software using Vb as front end & database in foxpro. Can anybody help me to connect entered text in textboxes to database. How it is saved in database & retrieval. I am using DAO tool. Neeraj Pareek

Member Avatar for abhishek_jammu
0
166
Member Avatar for Ole Raptor

Hello I have been working on this script for a little while. All is working good(get all information into the xml). But I am needing to have the php code add an image to the xml for download. If anybody as any ideas i would greatly appreciate it. I have …

Member Avatar for Ole Raptor
0
97
Member Avatar for Kraai

I am helping a website owner to transfer a site to new servers. All site files have been uploaded onto the new server, only thing left is the database. In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this …

Member Avatar for Kraai
0
542
Member Avatar for henpecked1

I have some questions, some might seem kind of dumb, but we're studying overloading operators and inheritance/polymorphing. I'm having trouble finding some references on some things to show me how to do this stuff or why I'm doing it a certain way. what kind/type of binary operators can I use …

Member Avatar for Radical Edward
0
117
Member Avatar for realone

pls can anybody help with how to insert a bracket into a string after the count of 3 characters in vb6

Member Avatar for debasisdas
0
81

The End.