199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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"; } ?> | |
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. | |
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 ![]() | |
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 … | |
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 … | |
How does a person go about adding an item to a queue within a gui? I have a textarea and a textfield. | |
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" … | |
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)  I will appreciate it if anyone can be capable to give … | |
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 … | |
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 … | |
[home page](http://pastebin.com/DHWcW3aU) [css sheet](http://pastebin.com/LFgnjXkt) can u tell me which is mistake i did ? | |
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"; | |
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 … | |
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 … | |
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*> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ?!! … | |
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 … | |
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 | |
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 … | |
Just wanted to know if anyone on DaniWeb is using or at least experimenting with Go. | |
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 … | |
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 … | |
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 … | |
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; … | |
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, … | |
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']) ) … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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++ | |
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 … | |
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 … | |
how can i access the contacts on the device then show it in list | |
how can i make swapping for 2 variables in more than 2 ways ?? | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … |
The End.