199,114 Archived Topics
Remove Filter ![]() | |
I have a problem when creating the Personal Finance Software in my group. It's part of my group's assignment. The EnterExpense() function only creates one line instead of many (if the user wants to continue entering more info). The ViewInfo() function can read the file, but cannot load the text … | |
So I decided to learn Python as my first programming language... So far I kinda like Python(when i say so far, I mean just now i started it just now), I'm using www.codeacademy.com as a tutorial(more on studying the basics first) and so I'm just wondering will I be able … | |
I would like to know if there is a class wich generates RANDOM words which have sense(are in use in the daily language in englis). I am making a project where uppon a given random generated word i would like to collect letters for that given word so once i … | |
I was wondering if somebody could explain this to me. I am trying to find numbers that are NOT divisible by other numbers. Originally i wrote: if i%3!==0 however it came up with an error and said it was invalid syntax Instead my code now reads if i%3!=0 This works … | |
Hello, I was revising for my exam and can't think what would go in this space... What do you guys think it is? Images can be stored as bitmaps. A bitmap is a description of the bits that make up an image. Each pixel is represented by a number that … | |
I have a javascript function that works fine when it is included in a <script></script> statement in the header of my php file, but when I move it to a separate .js file, it throws two errors. The function is function calculate() { var i var optCount = <?php echo … | |
So my code to test a prime number is as follows: PrimeTest(): test = input ( "What number would you like to test? " ) test = int(test) true = 0 divisor = 0 for divisor in range (2, 10): if ( (isinstance( test/divisor, int )== True) & (test/divisor == … | |
I want to uploade image and also want to store in database.Please anyone help me and tell me the code or share some link of uploading image. thanxx | |
Good day, I need help with my code. It's very simple and I was compiling it successfully at school, but at home I'm having problems with it. Here is the code. http://gyazo.com/dc78a310f529374338a244227b56215f and #include <cmath> #include <iostream> #include <conio.h> using namespace std; int main () { float a, b, c; … | |
this is my code for binding data from data base to text box protected void Page_Load(object sender, EventArgs e) { label.Text = System.DateTime.Now.ToLongDateString(); //// /// date label label.Text = System.DateTime.Now.ToLongDateString(); appSession = (String)Session["applicantEmail"]; lblusername.Text = (String)Session["applicantName"]; lblusernamepic.Text = (String)Session["applicantName"]; String str = " SELECT tblPersonalInfo.firstname, tblPersonalInfo.lastname, tblPersonalInfo.fathername, tblPersonalInfo.country, tblPersonalInfo.city, tblPersonalInfo.phoneno,tblPersonalInfo.mobno, … | |
i successfully designed and filled my Crystal report via code not via wizard. i added Crystal report via addNEWITEM i added dataset in aap_code via addNEWITEM i added datatable into dataset via addNEWITEM Via code i made report and filled dataset and table with data Run and display. Successfully done. … | |
i have this ajax script <script type="text/javascript"> var url = "GetAutoData.php?svreg="; // The server-side script function handleHttpResponse() { if (http.readyState == 4) { if(http.status==200) { var results=http.responseText; document.getElementById('divAutoInfo').innerHTML = results; } } } function requestAutoInfo() { var svreg = document.getElementById("getautomobile").value; http.open("GET", url + escape(svreg), true); http.onreadystatechange = handleHttpResponse; http.send(null); } … | |
i wanna use fileupload and write this image to access database. How can i do this with c#? Thanks. | |
Write a program that will get/input 10 employees data, then input time started to work hours then minutes, then employee should input time finished work hours then minutes. then find how many hours 1 employee worked and the average time worked by all employees. use arrays. | |
Does anybody know where I can find a c++ object oriented library for my c++ project where in short I can set each pixel on each frame to a specified color and saving the result to a .avi file preferably compressed. I know this sounds simple in theory but I … | |
im trying to get the values of the text field displayed even after inserting the data into the database but im not doing it right because this error "<br /><b>Notice</b>: Undefined index: basic in <b>C:\xampp\htdocs\CashFlow\income.php</b> on line <b>77</b><br />" is shown inside the text field instead. There was one thread … | |
#include <stdio.h> #include <stdlib.h> double average(int arrx[6], int *ptr); int main(void){ int arry[6]= {2,5,4,5,6,7}; int count=0; double avg; avg=average(arry,&count); printf("The average is %.2f\n",avg); printf("Number bigger than average is %i", count); return 0; } double average(int arrx[6], int *ptr){ int c=0; int sum=0; double a=0; for(c=0;c<6;c++){ sum=(double)sum+arrx[c]; } a=sum/6; for(c=0;c<6;c++){ if(arrx[c]>a){ … | |
I want to open an Instance of a form in MDI Container here is my code I just want an instance of a form to Edit records in the database Private Sub BtnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnEdit.Click Dim Emp As New Employee() Emp.MdiParent = Me … | |
Let's say that i have an array of objects. So, I need to delete the object at the given index and make sure to compress myObjects and update currentObject. Also, I have to verify that the given index exists in myObjects. This is what I got: NOTE: I will just … | |
MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the Brush object's Finalize method. As we know, local variables are destroyed automatically when the control flow goes out of the … | |
hi guys, i just want to create a javascript confirm script if the file will overwrite the current file with the same filename or with a file already existing. if yes: ask to overwrite if no: back to edit file page function overwrite() { var r=confirm("The same file name existing. … | |
Hi, I have a quick question. I am making a hang man game for project (I am at university as a computer science major), I have completed most of the game but have run into one small issue which has been given me a big problem. Right now I am … | |
**I have a half complete coding which basically comes down to a gui interface. The problem is that I don't know how to get it working as ticket vending machine with fixed rates and fixed amount of cash being able to put in. So, far, I've done up to calculating … | |
I am working on this editDistance program in Java, but I cant figure out how to return the new strings..... The program is returning the editDistance, but everytime a char doesnt match I want to delete it out of the string, in the end when I call printDistance(), I want … | |
Having trouble getting pyhon to repeat things for me. What I wanted to test was python's random.sample. So say I have a list myList = range(1, 15) I can for a single time do this import random >>> myList = range(1,15) >>> random.sample(myList, 3) [10, 6, 11] >>> I would … | |
Would anyone know of a C++ library which can enable me to encode and decode Ascii base 85 encoding? I'm having trouble finding one on the web. Thanks | |
First off, thanks for any reply and help. This is a table div in php I guess. I need this to generate an email. I saw this first line somewhere online and I'm not sure whether or not this would defintely generate a response email. You dont really need to … ![]() | |
I have created this drop down menu. And I am having same dropdown with same "id" & "class" names, several times. In this case in my demo I have shown 2 same of. Now when I click the "more actions" (bottom dropdown), the dropdown appears in the top drop down. … ![]() | |
#include <string> #include <iostream> #include <vector> using namespace std; class Person { public: Person(); Person(string n, string a, string tel, string em); string getName(); string getAddress(); string getTel(); string getEmail(); virtual string whatAmI(); private: string name, address, telephone, email; }; Person::Person() { } Person::Person(string n, string a, string tel, string … | |
it's confusing, see: 1. I added a dataset in app_code folder and then added a dummy datatable (field names similar to one in database), so it is visible to Crystal report in ADO.net datasets list. 2. Dragged all field names from Datatable to Crystal report. 3. Now as i added … ![]() | |
I have a search script that searches my database for a particular property address, but I have a problem displaying all the records ... my script is displaying only one record no matter how many records exist in the database with the same property address. I have two tables in … ![]() | |
Hello, I have a little problem. This is what I want to achive: I have 2 mysql tables (categories, channels), the channel table has a cat_id in it. I want to update/edit a product and place it in another category but the code that I've made shows just one catedory … ![]() | |
I think this is a javascript query rather than css. The script opens and resizes images centering div on the screen. I have inserted function opendiv(id) so that one can go forward and back through the images on the webpage. This part works except that the images no longer center … ![]() | |
Hi, I am new to writing code and am doing a programming assignment for a class that has to be separated into different functions. I figured most of it out, but can't seem to get the validation part to work at all. could someone with more experience than me please … | |
To get and set various variables inside structs in C++The main struct object should be a pointer.the structs have got so many member function to get and set it variables from the user.finally the structs should be protected in such a way that no two users can change the details … | |
I have been using Visual basic 6.0 for one year. 1-I want to know that what is difference between visual studio and vb 6.0? 2- What is difference between vb 6.0 and vb.net? 3- Now i want to use vb.net. So tell me how can i install vb.net? and from … | |
I am using VB.Net 2008 Express Edition, I created project its works fine, Now I want to add Word File that Project and When run Setup File (from Publish) on another computer that Word file also autocopy with this project, Is possible to do this..? How I code to open … | |
Hello everybody. I recently started a python temperature conversion program and seem to be stuck. Im fairly new so I tried several things such as a fuction to convert temperature and and if and else statement and both combined. My code lets me input a temperature but then doesn't convert … | |
Based on the loan application records of a bank and the example of query, write a program that determines whether a loan applicant is to be approved or disapproved his/her loan application. Criteria of an application to be considered are assets, income and the loan value. Applicant with assets > … | |
<?php $dbc=mysqli_connect('localhost','root','','sam_telephone'); $query="SELECT * FROM master_name"; $result= mysqli_query($dbc,$query); $display=mysqli_fetch_array($result); echo $display['f_name']; /// its show me the result which is fine // but when i apply while loop it does not show any thing. while($y = mysqli_fetch_array($result)){ echo $y['f_name']; } // $y['f_name'] should give me a result becuase it showing me … | |
Hi Via the cpanel that my host provider has I can use PHPMyAdmin. This has the usual admin functions such as the ability to export the data from a specified table into Excel. My client needs to be be able to do this - but from the website. I have … | |
Hi again, We all know jQuery can really spice up a website, so what would plugins could I try to make my pages even more exiting? (ie. typeahead.js) Thanks! | |
I'm trying to display in a web page all the images stored in a database. THis is my code, but it only displays the first picture: [code=php]<?php include "cysylltiad.php"; $result = mysql_query("SELECT * FROM files ORDER BY fid"); while($row = mysql_fetch_array($result)){ header("Content-Type: {$row['type']}"); echo $row["content"]; } ?>[/code] where content is … ![]() | |
Would you help me to learn PHP. Give the some tutorials for PHP. ![]() | |
I am attemping to paginate for a public salaries database I am building for my newspaper. I have the code figuring out that it should only display X rows, however, each page displays the same rows. I also have noticed that clicking the links I've created for Previous/Next Page only … | |
I was wondering is there any way to put my e.Graphics.DrawString() method into a variable(object) so that i can do some actions aftewards. The thing is that I ve got my words falling and rotating on the form. I ve also got a object wich is a Image which moves … | |
I just want to create an application where the user click on the "check for Update" button, My application start to check update. Uptill this I hav done so. I use this Code for this: Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("pastebin link") Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr … | |
I create application (Notepad) and finished too. Last thing i am missing. That whenever I open the application 'Adv. Notepad.exe' double click the exe file on desktop I open with my project file but when i try to open again at that time I just get focus to my main … | |
Good Day. I am currently running into a problem. I have 2 activities. My first activity launches the second one. Once the second one has done some work it calls the finish() method in order to destroy itself. Then my previous activity pops up which is what I would like, … | |
Hello. I am trying to make a program that involves buttons from GUI and I need help on how to open a JPG image file from a button click. Can someone show me a sample code on what to do and a brief explanation on what to do? Thanks. |
The End.