199,114 Archived Topics
Remove Filter ![]() | |
hi friends. i need a help how to enable and disable multiple textboxes corresponding a button click belwo i will show u the image  when i click the check box i want to enable these text fields.. hw it possible please provide a sample codes or give me … | |
Hi, there people! I have a project I have to deliver but I am at loss on the relevant tech. to use although I am a predominantly vb.net guy. The VB.Net is the 2008 one. I am to deliver a software that would enable an internet cafe do these basic … | |
![]() | #include <iostream> #include <string> #include <iomanip> #include "mainmenu.h" using namespace std; string bookTitle[20] = {""}; string isbn[20] = {""}; string author[20] = {""}; string publisher[20] = {""}; string dateAdded[20] = {""}; int qtyOnHand[20] = {0}; double wholesale[20] = {0.0}; double retail[20] = {0.0}; string searchTitle; int main() { // Declarations … |
I'm working on learning some basic java programming. I have a project that I've been working on dealing mostly with arrays. I have completed the objective, I'm just not sure that I did it in the most effective way possible. My question here is to see if an experienced java … | |
Forgive me if the title was even worded properly. What I'm trying to accomplish is to be able to create an unlimited number of objects for use by struct and quickly realizing that my thought process on how to achieve that is wrong. Here's the related code: struct person { … | |
When my program calls MsgBox it appears in the middle of the monitor. Anyone know how to move it somewhere within the boundries of my program's window? | |
I have a sproc that pulls six years of records for a report. The person who set it up years ago set it up using statically defined years which ended in 2009. I am rewriting this sproc to pull the current year and five years previous. In the process of … | |
I'm having an issue in creating my "Horse Race" program. I'm getting error "subscript requires array or pointer type" in my while(winner==false) loop at if(q==null) { tick[q]++; } and for(int q=0; q<numhor; q++) { if(tick[q]==10) { ... } } in addition to several places in my separate class files, even … | |
Hi, I want to develop a CMS that I can use when I make websites. Want to simultaneously post it online so that people can download it and develop plugins and themes for this. Would like to have it as user friendly as other CMS such as Wordpress, Joomla, Dupal … | |
Hello! Im looking for a new source code editor. Have come to the point where I need something more powerful and professional. The big issue is this: We develop software in PHP. In our code we have language specific strings like: ------------------------------- echo "Enter your name:"; ------------------------------- We would like … ![]() | |
Not sure if I posted correctly. I am trying to do a bubble sort on a 2D array. I want to sort the array by columns. I get it to compile but it doesn't run correctly. #include <iostream> using namespace std; int main() { int array[10][10]; int col, row; cout<<"Enter … | |
Hi Guys, just wondered if anyone knows how to change the focus from 1 textbox to another? i have 2 textboxes and a few buttons, what i am trying to do is select a textbox (either) then hit the button and the value from the button (i.e 1) will go … | |
I just need to know, what is the difference and relashin ship between the two? | |
#include<stdio.h> #include<conio.h> int main() { long double p=778.567; printf("%Lf",p); getch(); return 0; } it's output is : -115403.... something... why is it so ? | |
Hi there fellow daniweb programmers I have problem in running function in javascript <script type="text/JavaScript"> function toggle() { var e = document.getElementById('target_<? echo $id; ?>'); e.style.display = 'none'; } </script> I have button that generated in php code so its repeating itself <li><a id="target_<? echo $id; ?>" href="like.php" onclick="toggle()"><img src … | |
i put a code in my website to redirect user to paypal sandbox , after entering his email id , and storing it in session , in return url of paypal sandbox i mentioned a page but it doesn't work, it doesn't maintaing the session variable, it assigns null to … | |
I'm trying to get PubSubHubbub set up but I'm rather confused. I understand the concept but the implementation is troubling me. To get my feet wet, instead of starting my own hub, I decided to use Superfeedr. I *think* I have it set up correctly, but I want to test … | |
Below is a short program I'M working of from udacity.com but I can't figure out why I'M getting the value 6 from the first call to the function. # Define a procedure, biggest, that takes three # numbers as inputs and returns the largest of # those three numbers. def … | |
I am trying to help prevent SQL injection using mysqli_real_escape_string, I have the following: <?php $Connect = mysqli_connect ('', '', '', ''); if (mysqli_connect_errno()) { die ("Couldn't Connect to the Database"); } $String = "Hello, my name is (*$<>)*$)!*)_£)(!*£$&"; echo $String."<br><br>"; $Escaped = mysqli_real_escape_string($Connect, $String); echo $Escaped; ?> The problem … | |
Error: Cross-thread operation not valid: Control 'TextBox1' accessed from a thread other than the thread it was created on. After doing some research online I found when I add Control.CheckForIllegalCrossThreadCalls = False it works but I feel like that is not the proper way to handle this error. If anyone … | |
The following short program is taken from a book in numerical analysis (by Mircea Andrecut). It's about bisection (very simple): #include<stdio.h> #include<stdlib.h> #include<math.h> double f(double x) { return x*x-3; } double bisection(double f(double), double a, double b) { double epsilon = 1E-7, x; int kmax, k; if (f(a)*f(b) > 0) … | |
Hello, everyone. I've recently switched hosts and the same script I was running in the past is now causing the rest of my MySQL queries to be locked, and it seems the query never completes. The code is: <? $con = mysqli_connect('localhost','user','password', 'database'); $Q = "DELETE FROM `Table1` WHERE `Field1` … | |
> hi guys, i've two array 3d $data and $array_bold, then i want to bold value $data be based value $array_bold, how i can do this??? <?php $data = array( array( '0'=>array( '0'=>'chelsea everton villa liverpool', ), array( '0'=>'milan inter juventus napoli', ), ), '1'=>array( array( '1'=>'madrid barcelona altetico getafe', … ![]() | |
I'm dipping my toe in the water of salted passwords by upgrading an older webapp, and would like to present the rough outline of how my system would work in the hope that those with more experience than I might tell me if I'm going in the right direction; In … ![]() | |
I am trying to turn off a block in drupal using existing code. <?php $node = node_load(arg(1)); $type = $node->type; if(substr($_SERVER["REQUEST_URI"], 0, 13) == '/our-people') { return TRUE; } else { return in_array($type,array('3_column_interior_page', '3_column_faculty_bio_page')); } ?> I wanted to add a page that will not show the block... <?php $node … | |
> Write an EFFICIENT program that reads in the name of a file containing positive integers that are less than 1,000,000. The program prints out the integers in the file, in the order that they appear, eliminating duplicates. So if the file contained 8 3 1 9 2 8 15 … | |
my aspx code <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" > <ItemTemplate> Product_Image: <asp:Label ID="Product_ImageLabel" runat="server" Text='<%# Eval("Product_Image") %>' /> <br /> Item_Description: <asp:Label ID="Item_DescriptionLabel" runat="server" Text='<%# Eval("Item_Description") %>' /> <br /> Price: <asp:Label ID="PriceLabel" runat="server" Text='<%# Eval("Price") %>' /> <br /> Qty: <asp:Label ID="QtyLabel" runat="server" Text='<%# Eval("Qty") %>' /> <br … | |
![]() | HI, I am new to mysql and have two problems. 1. I have two tables that need to have same values from one field , if that values are not same in second table change it to value of first table Frist table is ps_product and they all need to … |
![]() | I have two tables of employee information from two different sources, one from Active Directory and one from our Billing Department. The AD table has the following columns: EmployeeID Surname Givenname Company Office. The Billing Dept table thas the following columns: EmployeeID Company Office First Last. I want to compare … ![]() |
Hello, I'm working on an assignment and I'm having a bit of trouble. Around **line 12** it calls a **world->getOrganism(int,int)** However no matter what value of grid[][] I return it crashes. The if() should be checking to see if that particular grid cordinate is of the ant class. (dynamic_cast<ant *>(world->getOrganism(i, … | |
how to write a program to stimulate a bank transaction. there are two bank accounts : checking and saving. first, askk for the initial balance of the bank accounts ; reject negative balance, then as for the transaction ; option are deposit, withdraw, and transfer. then ask for the account … | |
how do you manually add it when the link is www.somesite.com which i would want it to be added to index.html ? function setActive() { /*current page function*/ $('#menu a').each(function(index) { if(this.href.trim() == window.location) $(this).addClass("current"); }); this works for any pages that are in the navigation menu. ![]() | |
Anyone can please help in this. I need to assign a path for a text file in a variable to be shown later on in html here's my code: <html> <head> </head> <body> <!-- Header --> <header> </header> <!-- End Header --> <!-- Main --> <section id="main"> <script type="text/javascript"> var … | |
Hi Friends I am having a domain with name **domainname.com**, and its working fine. i have create a sub domain named **cds.domainname.com** and i have upload some set of asp.net files. when i was trying to access **cds.domainname.com** it is showing the domainname.com web content. Can any one please help … | |
can any one pleace help me to code this program i have no idea how to do it. it will be very greatful if any one can help me thanks | |
Does any one have any idea of creating a custom component like the below image instead of using the image itself. I know how to create a rectangle (a rounded one using the xml and not in java) which was discussed in the most of the links but i am … | |
Hi folks. I am learning java from past 5 years and constantly upgrading myself and excited to know interesting classes of java. Whats your favourite class in java? Plz share if you find any new interesting inbuilt class that comes in jdk or even 3rd party is also fine. | |
So the mission here is to have all the user input data to display to the display panel. I was able to achieve this, however instead of the info display after I click the display button the info will display after clicking on any of the radio button options. Im … | |
I know that java.long.String is an immutable class. I need to know different ways on to how create an immutable class in java. What are the pros and cons of immutable class | |
can anybody tell me event name for check box for using in jquery.such as for drodown it is 'onchange' .thank you. | |
is it possible to convert 09 to 9 by any function?if yes,please tell me.It is required to me.Thank you. | |
guyss i just want to ask if anyone could show me a sample program on how to count the number of words,letters,and sentences in a file....using the c language.... thanks in advance!! | |
How to pass password using scp in commandline SCP <filename> <user>@<Toserveraddress>:<path> Here i want to use password also , how can i use ???? | |
I have a table with columns id,month,year,user_name,...etc in this table i want to make month,year and username unique.is it possible?IF it is ,please tell me, i required. | |
FOR FOLLOWING CODE <%@language=VBScript%> <%Option Explicit%> <html> <body bgcolor="aqua"> <% Dim myConn Set myConn = Server.CreateObject("ADODB.Connection") myConn.Open = ("DRIVER={Microsoft Access"&" Driver (*.mdb)};DBQ="&"C:\Inetpub\wwwroot\tizagASP\razor.mdb;") myConn.Close() Set myConn = nothing %> </body> </html> I GOT FOLLOWING ERROR The page cannot be displayed There is a problem with the page you are trying to … | |
This program works fine, but I need help with the date validation. I have a regular expression that checks for dash patterns and integers and that is all. Is there some way I can add a date validation that can check for improper dates and leap year? If so, is … | |
Hello, I just have a quick question, I have two while loops that don't quite do what I want while (e == true && num != 1) { do statement } while (e == false && num !=1) { do different statement } if (num == 1) { System.out.println(value); } … | |
Hello, I am trying to understand what a byte array is. public class ByteArrayExample { public static void main (String args[]) { byte[] array = "1".getBytes(); System.out.println (array); } } The output of this program is : [B@44770739 Is this a hexadecimal representation? If any of the members can explain … | |
public function display( ) { $query="SELECT * FROM test ORDER BY RAND() limit 5 "; $result=mysql_query($query)or die("cannot select DB"); $num=mysql_numrows($result); echo "<table>"; echo "<tr>"."<td style='overfolw-hidden;width:400px;'> Question: </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION A </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION B </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION C </td>"; echo "<td style='overfolw-hidden;width:40px;'> OPTION D … | |
Enroller.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace HRSYSTEMPROJECT { class Enroller : IEnroll { #region IEnroll Members public String Enroll(String a,String b ,String c,String d,String e) { return a; return b; return c; return d; return e; } internal string[] Enroll() { throw new NotImplementedException(); … |
The End.