199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daravindm

hi friends. i need a help how to enable and disable multiple textboxes corresponding a button click belwo i will show u the image ![catalogsearc](/attachments/large/3/catalogsearc.JPG "catalogsearc") when i click the check box i want to enable these text fields.. hw it possible please provide a sample codes or give me …

Member Avatar for subramanya.vl
0
224
Member Avatar for d_rev

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 …

Member Avatar for WebStone
0
233
Member Avatar for kimika

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

Member Avatar for VernonDozier
0
208
Member Avatar for k22mac

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 …

Member Avatar for NP-complete
0
289
Member Avatar for M4ver1k

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

Member Avatar for M4ver1k
0
171
Member Avatar for Ancient Dragon

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?

Member Avatar for TnTinMN
0
2K
Member Avatar for Hers2keep

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 …

Member Avatar for BitBlt
0
152
Member Avatar for ssh9411

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 …

Member Avatar for ssh9411
0
3K
Member Avatar for eoop.org

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 …

Member Avatar for eoop.org
0
191
Member Avatar for DanErik

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 …

Member Avatar for diafol
0
229
Member Avatar for futureeconomist

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 …

Member Avatar for futureeconomist
0
5K
Member Avatar for ComputerFirstAde

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 …

Member Avatar for ComputerFirstAde
0
361
Member Avatar for Clanstrom
Member Avatar for nitin1

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

Member Avatar for nitin1
0
144
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
3K
Member Avatar for HunainHafeez

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 …

Member Avatar for HunainHafeez
0
1K
Member Avatar for Dani

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 …

Member Avatar for Dani
0
102
Member Avatar for lewashby

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 …

Member Avatar for woooee
0
237
Member Avatar for Octet

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 …

Member Avatar for GliderPilot
0
732
Member Avatar for moone009

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 …

Member Avatar for moone009
0
5K
Member Avatar for ulrik m.

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

Member Avatar for nitin1
0
308
Member Avatar for Resentful

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

Member Avatar for Larry_Singleton
0
151
Member Avatar for cussel

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

Member Avatar for diafol
0
186
Member Avatar for scaiferw

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 …

Member Avatar for diafol
0
196
Member Avatar for timwhelan

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 …

Member Avatar for timwhelan
0
201
Member Avatar for marnun

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

Member Avatar for marnun
0
267
Member Avatar for crazydevelopervish

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 …

Member Avatar for crazydevelopervish
0
129
Member Avatar for mehnihma

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 …

Member Avatar for adam_k
0
140
Member Avatar for mrkm1188

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 …

Member Avatar for mrkm1188
0
181
Member Avatar for cortland.boudreau

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

Member Avatar for cortland.boudreau
0
127
Member Avatar for MrBoye

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 …

Member Avatar for Lucaci Andrew
0
266
Member Avatar for andyhunter

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.

Member Avatar for stbuchok
0
94
Member Avatar for mousa.khaleel13

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 …

Member Avatar for AleMonteiro
0
4K
Member Avatar for rpv_sen

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 …

Member Avatar for JorgeM
0
180
Member Avatar for gameguy91

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

Member Avatar for pritaeas
0
107
Member Avatar for *sharath*

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 …

Member Avatar for *sharath*
0
219
Member Avatar for harinath_2007

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.

Member Avatar for harinath_2007
0
348
Member Avatar for cookiejarvus

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 …

Member Avatar for stultuske
0
199
Member Avatar for subramanya.vl

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

Member Avatar for stultuske
0
84
Member Avatar for daniel36

can anybody tell me event name for check box for using in jquery.such as for drodown it is 'onchange' .thank you.

Member Avatar for daniel36
0
66
Member Avatar for daniel36

is it possible to convert 09 to 9 by any function?if yes,please tell me.It is required to me.Thank you.

Member Avatar for daniel36
0
109
Member Avatar for syria718

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

Member Avatar for bhavya_best
0
3K
Member Avatar for akileshb

How to pass password using scp in commandline SCP <filename> <user>@<Toserveraddress>:<path> Here i want to use password also , how can i use ????

Member Avatar for Taywin
0
360
Member Avatar for daniel36

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.

Member Avatar for daniel36
0
110
Member Avatar for anmolvatsa

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 …

Member Avatar for ptduran
0
151
Member Avatar for neewb

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 …

Member Avatar for Gonbe
0
244
Member Avatar for rachelmorg

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

Member Avatar for rachelmorg
0
144
Member Avatar for javaprog200

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 …

Member Avatar for javaprog200
0
219
Member Avatar for Venter

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 …

Member Avatar for pritaeas
0
136
Member Avatar for SPRINGHEEL

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

Member Avatar for pritaeas
0
204

The End.