199,114 Archived Topics
Remove Filter ![]() | |
Hi guys, Needing some help here please. I have a 'Save button' setup on my form which seems to be working perfectly. It allows vales to be taken from text boxes and then presented on a datagrid view and also saved to the underlying databse. **The Code for this save … | |
Hey everyone, So I have another admin redirect problem. I have a file for user functions and login check/if exists..ect so the other redirect set of PHP paramaters won't work and all I want to do is redirect a user to access a page based on user_level. Whether the user_level … | |
after i add all the reference on my vb6 project and everything loaded successfully when i press on report button to view the report i face this error msg: Logon failed Details: ADO error code ox80004005 Source: Microsoft OLEDB Provider for SQL Server Description: [DBNETLIB][Connectionopen] sql server doesnt exist or … | |
I need to fix the code. Once a war event takes place, no points are assigned however in the next deal whoever wins (be it the player or computer) should get double points. One point for the war and the second point for the next deal that was won as … | |
My requirement is, when i press on button 1)it should check whether the textbox is blank it should show alertbox to enter value and stay on that page. 2)if value is correct than check value and display message on next page. i have developed two files they are as following. … | |
Well I know how to upload image (.gif, .jpg, etc) resized, resample, add link to database fetch link and display images on webpage. But now I need to be able to upload documents on server, add link in the database and be able to display those documents on the web, … | |
Hi all, I have a form on my program, and I have two comboboxes that I want to fill with data from columns in my database. I've tried three or four different ways that I've found searching around the web, but none of them seem to be working. They don't … | |
Hi, This is my first post, I usually find solution by searching this forums However, I been working on my problem for 6 hours with no solution. Here what I'm trying to do I have a class that extends as JPanle also it implements ActionListener I'm trying to add JScrollPane … | |
As a first part of really using Windows Azure I'd like to use C# running on Azure to verify the license code of a program I'm about to issue the upgrade for. I'm planning on porting the whole thing to the cloud, but to gain experience I'd like to license … | |
Define a class called ‘twoInt’ with two public integer fields a and b In the constructor of ‘twoInt’, initialize the a and b to be 1 and 2 Create an instance ‘mytwoInt’ in the main method Write a method ‘swap’ (not the method of the class ‘twoInt’) and pass the … | |
hi. i have some questions..howtowrite a program that convert numbers to their equivalent words? example. 123 become one hundred twenty-three in 3 different language. | |
i was watching [this video](http://www.youtube.com/watch?v=jTSvthW34GU&list=EC9D558D49CA734A02&index=2&feature=plpp_video) about type conversion and what the compiler does while converting from small byte formats to large byte formats(and vice versa) etc etc, and tried to write a code for it... but seems that function calls in my code are getting completely bypassed... once again, here … | |
hi, i need help with bubble sort. i am not sure what are variable j and variable sort are for? public static void bubble_sort(int unsorted[]) { int i = 0; int j = 0; int sort = 0; while(sort == 0) { sort = 1; j++; for(i = 0; i … | |
I recently had an accoutn with godaddy and found they did not support FFMPEG so I cancled that account, now I want to use a local server on my computer for testing so I do not have to pay for hosting. My question is how do I get a Mysql … | |
I am new to Vb.net and I'me trying to store data to the sql databse using text fields. Everything seems ok but i've tried several connection strings but they wont work.Could somebody give a hand, please? [COLOR=green]Private[/COLOR] [COLOR=green]Sub[/COLOR] btnSubmit_Click([COLOR=green]ByVal[/COLOR] sender [COLOR=green]As[/COLOR] System.Object, [COLOR=green]ByVal[/COLOR] e [COLOR=green]As[/COLOR] System.EventArgs) [COLOR=green]Handles[/COLOR] btnSubmit.Click [COLOR=green]Dim[/COLOR] conn … | |
if im doing a dll in dev c++ ..... and doing a dll in c++ but using visual studio 2010 is both of them gonna be the same?? i mean..ermm..if the computer doesnt have the visual studio will they be able to run my dll project which using c++ language... … | |
I have a project to create a pointer based linked list. I am having a problem with the contains() indexOf() and lastIndexOf() methods. I am not able to compare iter->item!=o. This is my ArrayList.cpp. I will follow it with ArrayList.h and Country.h (the ArrayList uses a typedef of the Country … | |
I am trying to implement a function sameMonth from a class to compare two user entered months. My class is declared in a header file "Date.h": #include <iostream> using namespace std; class Date { private: string month; int day; int year; public: Date(); Date(string aMonth, int aDay, int aYear); void … | |
Can anyone help me with this constructor problem? In main: instantiate one date object (date1) using the default constructor just to see that the constructor works, print the month, day, and year of date1 using the getters get input from the user and use the setters to set the values … | |
Trying to write a for loop to insert buttons into the array. This is the code to create an array that can hold 7 values: JButton[] buttons = new JButton[7]; String[] buttonText = {"Circle", "Square", "Oval", "Smiley", "Swirl", "Start", "Stop"}; This is the for loop I'm not sure about to … | |
I am having trouble with this code: <!DOCTYPE html> <head> <title>AJAX Chat Test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- Script --> <script src="jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready( function(){ $("#chats").load("feed.php"); $("#post").submit( function(){ return false; } } ) ); </script> </head> <body> <!-- Messages display here --> <div id="chats"></div> <!-- Post the … | |
When we define a variable name using #define in macro like: #define BUFFER_SIZE buff 5, and then in our main function declare a variable which has the same name like: int buff=8, Does the second buff overwrite the first one? I mean generally is a macro definition considered related to … | |
#include <stdio.h> #include <stdlib.h> int main() { int a=0,b=1,c=1,d=0,e=0,x,n; printf("enter the limit: "); scanf("%d",&n); while(d<=n) { d=a+b+c; a=b; b=c; c=d; e=a+b+c; for(x=d+1;x<d;x++) { if(x<=n) { printf("the non tribonacci series is: "); printf("\n %d",x); } } } return 0; } actually how to do this it doesnot print the values | |
Trying to change the size of the shapes over time. Making them bigger as they move upwards and to the right, and making them smaller as they move downwards and to the left. This is the class that contains the move method: import java.awt.*; import javax.swing.*; import java.util.Random; public class … | |
I need to retrieve the Date only from Microsoft SQL Server and insert into Listview the code that i used was this SqlCommand cmd4 = new SqlCommand(); SqlConnection cn = new SqlConnection(); cn.ConnectionString = ("Data Source = LOPEZ-PC\\SQLEXPRESS;Initial Catalog=softwareengineering; Integrated security= TRUE"); cmd4.CommandText = "SELECT * FROM [rawinventory] "; cn.Open(); … | |
Hi guys I been programming in c++ for past 2 years and is fairly good with it. First of all I dont need the code or anything but need some resources which i can use to get the basic idea so I can start developing. Had been googling for the … | |
Hi :-/ I have a java function that I want to call inside my JSP page. My function has got parameters.Now the problem is I cannot call it using JavaScript and if I put it inside <% %> tags it just executes while loading the webpage itself. I need to … | |
So I'm beginner starting software enginering studies here condition: Given number n ( n<=9999) need to identify if this n is palindrom(ex. 7777,8228,0220...). Need to write in c++ language.thanks | |
This is me with another project for beginners :) The Project as stated by ZZucker about 2 months ago: "Given the length of three sides, write a function that checks if it is possible to create a triangle." I could solve it with an annonymus function like this: is_triangle = … | |
im writing a program that creates a dynamic array then input numbers(not exceeding 100). i used *new int* to create the array. im running into the problem that it only allows 21 numbers to be entered, then does sort,mean. could anyone explain where im going wrong setting up the array … | |
I had absolutely no clue where to post this but I figured since it crashes on the C++ side, I'd ask here. I have the following code: Java side (Loads My C++ DLL just fine.. Passes it a ByteBuffer so that I can write to that): import java.io.IOException; import java.awt.*; … | |
Hello When I click on Register button I get this error - Message: Object expected Line: 20 Char: 1 Code: 0 URI: http://localhost/goodlogin/registerform.php This is my registerform.php code - <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>register</title> <script type="forms.js" type="text/javascript"></script> <script type="sha512.js" type="text/javascript"></script> </head> <body bgcolor="black" style="color:white;"> <FORM ACTION="register.php" METHOD="POST"> <h1>welcome … ![]() | |
Dear Experts, I have a situation , I am sure about the best approach for it. I have a database application that is designed to handle both SQLServer database and Oleddb "Access mdb" database. the issue is that during application start up , the application detects the configuration file and … | |
Hey all, I have a folder called 'templates' in my root dir (../templates/). When a PHP form is submitted I want to copy a folder out of 'templates' called 'template1' (../templates/template1) and paste it into the root directory but with the new name of 'username123'. How can I copy, rename … | |
#include<stdio.h> #include<math.h> void getColorCode(char colorCode[]); long getResistorValue(char colorCode[]); int i,ch; long r_value=0; char ans; char j; char code; char colorCode[3]; int colorValue[3]; int main (void) { /* clrscr(); printf("\n\t\t\t\tRESISTANCE CALCULATOR"); printf("\n\t\t\t\t"); for(i=1;i<11;i++) { delay(10000); printf("*"); }*/ printf("\n1. START"); printf("\n2. QUIT"); printf("\nEnter your Choice(1-2):"); scanf("%d",&ch); clrscr(); switch(ch) { case 1: printf("*****************************************************\n\n"); … | |
Bellow is what i have so far on my assignment. I need some help getting this application working. Thank you for your time! /** General Assignment: Review the grading policy on the CSCI 181 syllabus. The course grade is determined by the weighted average of six components with two possible … | |
How can i draw a 1 line border or frame around code using an " * " , searching the net i have seen techniques using loops and various functions but i cant grasp the concepts being used, even a link to a indept tut on this would be a … | |
Could someone please give me an idea of why I get a nullPointerException when I run this method in my main program. Every list has a variable, first, to store the address of the first node of the list. I assign current1 to the first node of list1 as a … | |
I need to read and write an XML file which may contain '€' symbols. So, to start I run this code: from xml.etree import ElementTree as ET optionstree = ET.parse("test.conf") where "test.conf" is the following XML file: <?xml version="1.0" encoding="UTF-8"?> <test>12€34</test> and I get this error: File "<pyshell#7>", line 1, … | |
String testHTMLContent = testhtml+productlogo; Message message = new MimeMessage(session); message.setFrom(new InternetAddress(usern)); message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to)); message.setRecipients(Message.RecipientType.CC,InternetAddress.parse(ccaddr)); message.setSubject(sub); //message.setText(body); // setDebugMsg("Attempting to send..."); Transport transport = session.getTransport("smtps"); MimeMultipart mimeMultipart = new MimeMultipart(); MimeBodyPart msgContent = new MimeBodyPart(); msgContent.setContent(testcontent, "text/plain"); mimeMultipart.addBodyPart(msgContent); MimeBodyPart query = new MimeBodyPart(); query.setHeader("Content-Type", "text/plain"); query.setContent(queryString, "text/plain"); mimeMultipart.addBodyPart(query); MimeBodyPart htmlPart = new … | |
Prove that there is a positive integer that can be written as the sum of squares of positive integers in two different ways. For some reason this is not clicking in my head and I can not figure it out. Any help will be greatly appreciated and I would appreciate … | |
Hello, I have a lot of files uploaded with wp-admin in uploads folder. I don't have access to FTP, however, I need to download those files stored in uploads directory. Is there a way of doing it? Like - a wp plugin or something. Thanks | |
... The name of program is i think it is function and structured programming waa hard to explain ahmm.. if you input a number 1 temperature must be goes in program then after that i need to input an exit like "ARE YOU SURE YOU WANT TO EXIT?" then Y … | |
    The name of program is i think it is function and structured programming waa hard to explain ahmm.. if you input a number 1 temperature must be goes in program then after that i need to input an exit like "ARE YOU … | |
I am just trying to submit two input fields, username and password. I am not able to do that because my code won't submit my data to the PHP database. The code is below, also please note I am trying to use ajax: getData.php <?php $db = mysql_connect('localhost', 'wont tell', … | |
Hi there, What i'm trying to accomplish is: These two methods: f(x : double) : double post: return x integral(og : double, bg : double, step : double) : double post : return (f(og) + f(og+stap) + … + f(bg)) * step So I can call those two in my … | |
I think I am getting bad data because I have my pointer doing the wrong thing, I just don't know exactly how to fix it. Any help is greatly appreciated! output: Number: 4669840 Name: Value: 3.76441e-039 Number: 4218312 Name: Value: 6.52879e-039 Number: 2686408 Name: Value: 6.52879e-039 Number: 128 Name: Value: … | |
hi everybody i just need to know what is the function of preg_split and that which is inside of brackets: $keywords = preg_split ('/[\s]+/',$keywords); | |
![]() | Hi I want to know the if `GD2` run the same as `JQuery`? For example for `JQuery` you need this: `<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>` for the code to run. But for `GD2` you need a package but I haven't download it yet. I just want to know the **Pro** and **Cons** between … ![]() |
**THIS CODE RETRIEVES DATA FROM THE DATABASE. PLEASE HELP ME DEBUG. I AM EXPERIENCING ERROR CALLED INDEXOUTOFRANGE IN: ** **HERE IS MY CODE:** Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Try Dim oradb As String = "Provider=OraOLEDB.Oracle; Data Source=TRAVELMATE-PC/XE;User Id=cj;Password=me;" Dim conn As New OleDb.OleDbConnection(oradb) … |
The End.