199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SpottyBlue

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 …

Member Avatar for richieking
0
279
Member Avatar for dark_falzar

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 …

Member Avatar for ryantroop
0
337
Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
284
Member Avatar for bryann

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 …

Member Avatar for Lardmeister
0
116
Member Avatar for aVar++

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 …

Member Avatar for aVar++
0
207
Member Avatar for NewHeart42108

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 …

Member Avatar for pritaeas
0
260
Member Avatar for bnn678

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 == …

Member Avatar for bnn678
0
374
Member Avatar for johni700

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

Member Avatar for ddanbe
0
184
Member Avatar for vladimir.bednoi

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; …

Member Avatar for Moschops
0
277
Member Avatar for muhammad.waleed.9699

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, …

Member Avatar for johni700
0
256
Member Avatar for HunainHafeez

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. …

Member Avatar for johni700
0
164
Member Avatar for accra

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); } …

Member Avatar for gabrielcastillo
0
227
Member Avatar for xaxproy

i wanna use fileupload and write this image to access database. How can i do this with c#? Thanks.

Member Avatar for JorgeM
0
67
Member Avatar for Lawrence Motshegetsi

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.

Member Avatar for rubberman
0
96
Member Avatar for cwarn23

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 …

Member Avatar for rubberman
0
407
Member Avatar for nadiam

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 …

Member Avatar for nadiam
0
297
Member Avatar for sing1006

#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){ …

Member Avatar for Moschops
0
187
Member Avatar for chdboy

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 …

Member Avatar for deceptikon
0
3K
Member Avatar for iTechnnn

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 …

Member Avatar for JamesCherrill
0
171
Member Avatar for priyamtheone

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 …

Member Avatar for Momerath
0
214
Member Avatar for kanoy83

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. …

Member Avatar for kanoy83
0
2K
Member Avatar for infiniteloop56

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 …

Member Avatar for JamesCherrill
0
388
Member Avatar for Hollyin

**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 …

Member Avatar for JamesCherrill
0
266
Member Avatar for tricket_7

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 …

Member Avatar for JamesCherrill
0
397
Member Avatar for flebber

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 …

Member Avatar for flebber
0
223
Member Avatar for daino

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

Member Avatar for daino
0
1K
Member Avatar for ruif3rro

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 …

Member Avatar for LastMitch
0
350
Member Avatar for trishfernan

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. …

Member Avatar for LastMitch
0
114
Member Avatar for kruschev

#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 …

Member Avatar for Krimeplay
0
362
Member Avatar for HunainHafeez

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 …

Member Avatar for LastMitch
0
160
Member Avatar for theresel

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 …

Member Avatar for LastMitch
0
181
Member Avatar for dalilice

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 …

Member Avatar for LastMitch
0
385
Member Avatar for furlanut

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 …

Member Avatar for LastMitch
0
140
Member Avatar for 12344321

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 …

Member Avatar for 12344321
0
177
Member Avatar for idnurr

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 …

Member Avatar for rubberman
0
133
Member Avatar for Saboor880

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 …

Member Avatar for Deep Modi
0
397
Member Avatar for pc20912

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 …

Member Avatar for pc20912
0
504
Member Avatar for pythonnewbie16

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 …

Member Avatar for HiHe
0
941
Member Avatar for Guled_1

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 > …

Member Avatar for Ancient Dragon
0
105
Member Avatar for arifkutty

<?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 …

Member Avatar for arifkutty
0
210
Member Avatar for ebanbury

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 …

Member Avatar for ebanbury
0
192
Member Avatar for mattster

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!

Member Avatar for rhodoscoder
0
127
Member Avatar for twmprys

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 …

Member Avatar for diafol
0
591
Member Avatar for jahid32
Member Avatar for diafol
0
151
Member Avatar for kyleo92

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 …

Member Avatar for kyleo92
0
289
Member Avatar for castajiz_2

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 …

Member Avatar for castajiz_2
0
142
Member Avatar for DM Galaxy

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 …

Member Avatar for DM Galaxy
0
302
Member Avatar for Deep Modi

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 …

Member Avatar for Deep Modi
0
227
Member Avatar for sirlink99

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, …

Member Avatar for peter_budo
0
138
Member Avatar for stevewilliams02

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.

Member Avatar for HiHe
0
328

The End.