199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for erum

I have just one tables in database and three stored procedure (IUD)..and i m using EF for db integration MVC 4 ..as soon as i insert data in db ..it just display as it as (call it select * from tbl1) ..what if i m going to select data from …

Member Avatar for alisnikol
0
207
Member Avatar for bLuEmEzzy

Guys what is wrong with my code? Why it gives me an output "hi"! Can you explain it to me. Please. Thank You! <?php $a = "Unemployed"; if ($a == "Employed, Locally" or "Employed, Abroad"){ echo "hi"; } elseif ($a == "Unemployed"){ echo "hello"; } ?>

Member Avatar for bLuEmEzzy
0
120
Member Avatar for VengefulToast

Hello, I am wondering how I would access an element on a List? Is it something to do with the iterator? list<Element*> _children; _children.push_back(child); _children.push_back(child); For example, how would I access the "children" of this list? Thank you.

Member Avatar for VengefulToast
0
127
Member Avatar for Mubsahir Ijaz

Write a program that declares an array of 20 doubles and reads the values from the user. Now your program should compute the average of these numbers and then tell for each number whether it is above, below or equal to the average

Member Avatar for misi
0
186
Member Avatar for karmstrong

I have a list in python that I am printing to the screen. The current format is Option Key: [0, 3, 6, 8, 8, 5, 2, 0, 7, 1, 9, 5, 0, 7, 7, 4, 2] I would like it to be Option Key: 0 3688 5207 1950 7742 I …

Member Avatar for vegaseat
0
482
Member Avatar for James_43

Hi everyone, I am still quite new to HTML and PHP. I have a form in HTML pointing to a PHP script that sends an email. But it doesn't work - please tell me where I am going wrong! The HTML is: <div class="main-content three-fourths"> <h1>Get in touch</h1> <p class="lead">We'd …

Member Avatar for Kyle Wiering
0
479
Member Avatar for samsungfanb0y

How does a person go about adding an item to a queue within a gui? I have a textarea and a textfield.

Member Avatar for JamesCherrill
0
79
Member Avatar for Suzie999

Hi. In my application I'm using Excel to get some data into an array from a worksheet. Here is my method. public string[,] WorksheetToArray(string path, bool visible = false) { oExcel oXL = new oExcel(); // here new icon appears. if (oXL.Error > 0) { MessageBox.Show("An Error Occurred" + "\r" …

Member Avatar for DaveAmour
0
249
Member Avatar for New Jack

My project is seperated into two files(a head file and a implementation file). But when i run the codes it comes the errors as follows: // my codes are as follows: //first file (first_homework.cpp) // //second file(first_homgwork.h.cpp) ![second_file.png](/attachments/small/4/6ca3bf23448c644fcb97b2f9d86316eb.png "align-left") I will appreciate it if anyone can be capable to give …

Member Avatar for New Jack
0
261
Member Avatar for Suzie999

Hi guys I'm wondering if this possible in some fashion? I'm trying to create a settings object, and pass it around my forms in project. Ultimate goal is to have my application title, which will appear on all forms title text, in app.config or user.config. Program.cs namespace TestApp { static …

Member Avatar for DaveAmour
0
214
Member Avatar for mattyd

Hello. I am beginning the process of coverting all of my MySQL to MySQLi. I have been doing much research on this but find it a bit confusing. I have two questions at this point regarding the matter: 1) What does it exactly mean to "escape" a string and where …

Member Avatar for deceptikon
0
411
Member Avatar for phoenix254

[home page](http://pastebin.com/DHWcW3aU) [css sheet](http://pastebin.com/LFgnjXkt) can u tell me which is mistake i did ?

Member Avatar for phoenix254
0
398
Member Avatar for ramsiva

I am struggling to remove white spaces, any body help me var dt1="11 : 30 : am"; I want the result var dt1="11:30:am";

Member Avatar for Troy III
0
130
Member Avatar for Emma Etigu

hi guys I need assistance with SQL insert statement to an access database. I want to insert values to a particular table if the text box value is less than 0. below is the sample code. dim value4 as integer if integer.try parse(textbox4.text) then if value4 <=0 then dim cmd …

Member Avatar for DaveAmour
0
294
Member Avatar for XxAaronxX

Hey Guys, Ive been having a bit of trouble with a program which rolls dice for the game risk. Ive been able to implement number of dice choice selection for both attacker and defender, and to get them to roll the results. The part I am trying to implement now …

Member Avatar for XxAaronxX
0
472
Member Avatar for HuePig

Hi, I have an `unsigned char c[16]` and I need to read 2 char at a time and put those in an index. Heres what I have so far. std::istream& function(std::istream& aIStream){ for (int i = 0; i < fSize; i++) { //this is not working.. // I tried static_cast<char*> …

Member Avatar for マーズ maazu
0
249
Member Avatar for Tycellent

Hey everyone, I'm trying to convert some values to ASCII characters. I understand that this is possible through means of something like this: std::cout << (char)0x31 << std::endl; // prints 1 std::cout << (char)0x4C << std::endl; // prints L However, my problem is that i have char array that contains …

Member Avatar for マーズ maazu
0
299
Member Avatar for overwraith

So the other day I was just experamenting with some code, just for fun, and I ran into some difficulties. So I suppose my question is why the following code does not write to the original bigints array. I am sure I am doing something dumb, but please bear with …

Member Avatar for overwraith
0
312
Member Avatar for mark103

Hi guys I'm using the script `add_address.php` to output a list of email addresses from the `message` box to allowed me to split the email addresses to add to each comma. I want to output the email addresses from the `message` box to the `text` box in the `send.php` script …

Member Avatar for DaveAmour
0
203
Member Avatar for Deidredup

I am looking for a script which will allow me to place a vbulletin login box on a non vbulletin page. There are couple of scripts, but they are for older versions. I am using v3.6.8 Does anyone know where to find one for 3.6.8? The closest I could find …

Member Avatar for Fadli_1
0
3K
Member Avatar for AQ

Hey guys i need some help.. Here is my code given below + the question statement.. The problem is simple i just wanted to ask what and how i can use variable to calculate average in array questions.. Problem Statement: "Write a program that declares an array of 25 integers …

Member Avatar for AQ
0
235
Member Avatar for phoenix254
Member Avatar for phoenix254
0
102
Member Avatar for shahera.arafat

hi ^_^ I want to write a code to set an (error) text in the Jtextfiled if the number contains more than 1 dot (eventHandling)! but my code actually didn't concatinate with the next digits I've enterded ,for example:(2. ) and stop ! so what is the right solution ?!! …

Member Avatar for shahera.arafat
0
254
Member Avatar for kayleigh0411

I am creating a doubly linked list and printing a backwards function. Everything is working great in my code, but when the function is printed in reverse, I need it to say NULL at the end, as it does going forward. When I put puts("NULL") (line 193) it splits up …

Member Avatar for kayleigh0411
0
281
Member Avatar for Emma Etigu

hi people how do I select a specific row in a data grid view to be updated. the row contains item number, item name and price. thanks

Member Avatar for Emma Etigu
0
335
Member Avatar for Tcll

As the title implies, what I want to do is create main.py and have it open a window. after the window is open, I want to edit main.py, and when finished editing, hit File -> Reload in the window's menu bar. what's expected is for the window to update with …

Member Avatar for Tcll
0
12K
Member Avatar for vegaseat
Member Avatar for vegaseat
0
242
Member Avatar for fthmad

I was designed a database model for my social network project. It has follower system. If you follow him the follower can see the status. All these operations are for one page. (This page is name **user_wall.php**) Its has a GET value and this is **userName**. For this case about …

Member Avatar for fthmad
0
561
Member Avatar for Kent55

I am making a game where a user has to move a character around a grid and collect passengers. I have managed to construct this grid using some CSS and jQuery however I now need to add a player to the grid and have them move one square at at …

Member Avatar for DaveAmour
0
352
Member Avatar for shahera.arafat

hi everyone :) I have a problem here >>which I can't add 2 numbers >> and I don't know what is the solution for that !!>>it always gives me an empty result !and that is because (num2) always parse a (null) value ! so how can I edit the value …

Member Avatar for shahera.arafat
0
301
Member Avatar for CodeWarrior14

I'm writing a program tha calculates linear regression, one of the values that are generated is the r (linear correlation coefficient) value. However, my algorithm doesnt work. I implemented the r value from the formula located at [Click Here](http://mathbits.com/MathBits/TISection/Statistics2/correlation.htm) Here is my code: long double LinearRegression::calculate_r() { long double r; …

Member Avatar for CodeWarrior14
0
441
Member Avatar for ruhestorer

Hi, I have a problem with exercise 51 from sql-ex.ru, please help. Thanks in advance. # Short database description "Ships" # The database of naval ships that took part in World War II is under consideration. The database has the following relations: Classes(class, type, country, numGuns, bore, displacement) Ships(name, class, …

Member Avatar for SOURABH_2
0
1K
Member Avatar for ramsiva

my index page <script type="text/javascript"> $(document).ready(function(){ $("#first_name").blur(function() { var first_name = $('#first_name').val(); var fathermobile = $('#fathermobile').val(); if(first_name=="") { $("#disp").html(""); } else { $.ajax({ type: "POST", url: "detail.php", data: 'first_name='+ first_name +'fathermobile='+fathermobile, success: function(html){ $("#disp").html(html); } }); return false; } }); }); and my detail.php <?php include("include/connect.php"); if(isset($_POST['first_name']) && isset($_POST['fathermobile']) ) …

Member Avatar for ramsiva
0
248
Member Avatar for newcoder310

I have a `jsp` page where I enter a username and click on a submit button. On clicking this button, I post the username along with a hidden target page value to the other application. The other application does its processing and issues some cookies and redirects to the target …

Member Avatar for DaveAmour
0
169
Member Avatar for saxxyblack

If I need to repeatedly create a picturebox of the same image, I understand that one way of doing so is creating an array of pictureboxes and then making one more visible every few seconds, but the image of the picturebox must be pathed to an image on your computer. …

Member Avatar for saxxyblack
0
529
Member Avatar for ahmedsa

Hi guys i have problem this code send email based on timer every 5 minutes it working ok but my problem i need to determine first rcord updated not inserted and send email this is starting work this is my code Sales.SalesClass SalesClass1 = new Sales.SalesClass(); DataTable dt = SalesClass1.ShowSalesData("Data …

Member Avatar for DaveAmour
0
247
Member Avatar for PrabuT

Hello I need some help. I'm trying to opening a file and sorting then displaying the results in a listbox. When I run the program I get the error "Index (zero based) must be greater thatn or equal to zero and less that the size of the argument list" Here …

Member Avatar for Santanu.Das
0
698
Member Avatar for toomutch

Hi, I have a dgv displaying records from an SQL database. On load, the dgv is filled, the dgv selection cleared and the 'action' buttons set to enabled=false. When the user selects a row (cellclick action) the 'action' buttons are enabled. When the action button is clicked the dgv is …

Member Avatar for Santanu.Das
0
181
Member Avatar for LukeJWhitworth

Hello Guys, Simlple problem and I am hoping for a simple solution! My software saves all my randomly generated product keys to a text file. It saves this using the code below. My.Computer.FileSystem.WriteAllText(My.Computer.FileSystem.SpecialDirectories.MyDocuments & "\TempValuesForAKG.txt", PTB.Text, True) That works fine. I then try to use the Print Document control and …

Member Avatar for Santanu.Das
0
810
Member Avatar for raul2329

Warning: require_once(EzOptions.php): failed to open stream: No such file or directory in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 Fatal error: require_once(): Failed opening required 'EzOptions.php' (include_path='.:/usr/lib/php') in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38

Member Avatar for edbr
0
143
Member Avatar for rose_2

how do i write function that accepts unlimited arguments? i know in java we write it in this way `funcName(int ...)` ..so what's the way to write it in C++

Member Avatar for rose_2
0
134
Member Avatar for Doogledude123

I'm painting a grid on the JPanel and trying to scroll the grid with a JScrollPane. I have a feeling the scrollpane is getting the actual size of the panel, instead of the size including what is not being shown. Something along those lines at least, I can't quite wrap …

Member Avatar for mKorbel
0
1K
Member Avatar for TekknoDraykko

Hello all: I'm teaching myself Android, using Android Studio, and when I try to run the emulator, it doesn't start up. In otherwords I see the mock device, but the start (home?) page does not appear. I've waited the customary 3-5 minutes and I've even tried creating different emulators, but …

Member Avatar for TekknoDraykko
0
281
Member Avatar for man.chester.581
Member Avatar for rose_2
Member Avatar for rose_2
0
229
Member Avatar for cool_intentions

Hello Guys, Am having a new assignment and a new problem. I should make C# application witch shows drive letters in combo box, directories and only .txt files in tree view, and I should be able to open text file from tree view in text box using Open button. I …

Member Avatar for abdulmoaiz
0
2K
Member Avatar for idmanner

Hello Everyone Im trying to call my paint method inside my ball class but cant seem to get it to work.Repaint wont call paint nor update Any help would be greatly appreciated public class Bounce2 extends Applet implements ActionListener,AdjustmentListener, Runnable { //Create and initialize objects private static final long serialVersionUID …

Member Avatar for JamesCherrill
0
283
Member Avatar for karmstrong

In python if I know the volume label of a USB mass storage device is there a way to get its. Drive letter Windows Mount Point Linux Mount Point OSX Originally I was thinking either the sys library or the os library. i ahve found another library called PYUSB. Still …

Member Avatar for vegaseat
0
5K
Member Avatar for Suzie999

Code: Form2 ConfigForm = new Form2(); ConfigForm.Width = 300; ConfigForm.Height = 148; ConfigForm.ShowDialog(); What I get is http://s3.postimg.org/hyiqmmacj/Test_App2.jpg Which is totally wrong size. What it's like in designer, and what shows if I just use ConfigForm.Show() is. http://s3.postimg.org/x5yq6z277/Test_App1.jpg Does anyone know why this ocurrs, and how to fix it? Thanks …

Member Avatar for Suzie999
0
160
Member Avatar for Doogledude123

I have a GUI with two JSpinner's and a Spinner Model attached to each of them. When changing one value, the other changes. I suspect this is because I'm using the same model. This is obviously not what I intend to do, is there a better way than creating another …

Member Avatar for JamesCherrill
0
142

The End.