199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jessurider

can anyone tell me how here the count of [B]st[/B] is [B]incrementing[/B] like this[B] 2,4,6,8,10 and not like 1,2,3,4,5 [/B] how could i get the count of [B]st[/B] to increment as [B]1,2,3,4,5[/B] [CODE] PrinterJob printJob = PrinterJob.getPrinterJob(); Book book = new Book(); for(int i=0;i<5;i++) { book.append(new IntroPage(), printJob.defaultPage()); } [/CODE] …

Member Avatar for Jessurider
0
282
Member Avatar for tubby123

Hey, i found quite a few methods to [B]ADD TWO NUMBERS WITHOUT USING THE + OPERATOR[/B] , but this one is extremely weird. What does this printf statement mean ? What is %*d ????? [CODE]#include< iostream > using namespace std; int main() { int a,b,sum; scanf("%d",&a); scanf("%d",&b); sum=printf("%*d%*d",a,a,b,b); printf("\n"); printf("%d\n",sum); …

Member Avatar for tubby123
0
167
Member Avatar for murugavadivel

Getting Error after installing Turbo C.... how to rectify this problem.... Reply to this E-mail id: [email removed] ERROR: Sorry, unrecoverable internal error. Press ESC. EXCEPTION 13:general protection fault at 036F:3253 error code 0000 ax=0000,bx=0000,cx=0005,dx=0000,di=0000,si=0001 ds=069F limit=FFFF segment# 004D C:\TC\BIN\TC.EXE es=0000 limit=INVL segment# cs=036F limit=3881 segment# 001A C:\TC\BIN\TC.EXE ss=069F limit=FFFF …

Member Avatar for Salem
0
372
Member Avatar for tikoti

Hi all! I get the following error while trying to compile this code /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/bits/stl_numeric.h:116: error: must use .* or ->* to call pointer-to-member function in `__binary_op (...)' I am quite stunned because I've used before in a similar way Can any body give me a hint? Thank you in advance! …

Member Avatar for tikoti
0
276
Member Avatar for klemme

[B]I have one select list, which is populated from the DB like this:[/B] [CODE] <select name="position" id="position" onChange='itemdisplay(this.value)'> <option value="<?php echo $til_subject; ?>"><?php echo $current_subject; ?></option> <?php while($row=mysqli_fetch_array($result)){ echo '<option value=' . $row['id'] . '>' . $row['linknavn'] . '</option>'; } echo "</select>"; ?> // Next to this list i have …

Member Avatar for Stefano Mtangoo
0
179
Member Avatar for mohana88

Hi, I would like to install a windows application without manually removing the older versions. But it is showing an error stating that "The application has been already installed from another location". Wat should I do to install both the versions with different names? Thanks and Regards, Mohana88

Member Avatar for sknake
0
133
Member Avatar for kemplu

Hello, I'm new in java and must make a dummy server client connection (webserver) that check if the client has the actual software (actual version) and send links (in .txt or something else, if any update available). I'd like to make a program as simple as possible. I am using …

Member Avatar for kemplu
0
244
Member Avatar for riseguim

[CODE=php]<?php session_start(); if(!isset($_SESSION["username"])) { header('Location: login.php'); exit; } ?>[/CODE] I have this code on the page I want to be password protected. Everything is working perfectly fine on Firefox, but in Internet Explorer it doesn't load the content of the page once the login information has been verified. Any suggestions? …

Member Avatar for karthik_ppts
0
181
Member Avatar for adobe71

How can i insert password from textbox in database in encrypted form and match from database to login.

Member Avatar for sknake
0
86
Member Avatar for f_atencia

Say I have the following code: [CODE] poNode = poEvent.target ? poEvent.target : poEvent.srcElement; [/CODE] Is there a way I can force Internet Explorer to use the poEvent.target object?

Member Avatar for Troy III
0
418
Member Avatar for MrBlack

[CODE] Session.Abandon(); Session.Clear(); Session["user"]=null [/CODE] i m trying to clear a Session but these methods are not working..how can i clear this Session plz help me.. thnxx

Member Avatar for prit005
0
84
Member Avatar for lastgame2007

it doesn't have any error but also i doesn't update in my database? <head> </head> <?php include('connect.php');?> <body> <?php mysql_select_db("dbusers",$connection); $result=mysql_query("UPDATE tblinfo SET idno='$idno', name='$name', address='$address', birthdate='$birthdate', contact='$contact', email='$email' WHERE 'index'='$id'"); $result = mysql_query($update) ?> </body> </html>

Member Avatar for faroukmuhammad
0
142
Member Avatar for Ajuddy

i dont why i can't access my servlets. i have followed the configuration to the end but still cant get through. the following are my .xml files. well i dont have a problem accessing the server, but the problem is my servlets wont run i keep getting "the requested resource …

Member Avatar for Ajuddy
0
637
Member Avatar for DILO3D

i have a text file contents as below. ++ myhost1 menu = sanjay title = sanjay host host =192.168.0.247 ++ gateway1 menu = Gateway1 title=gateway host=192.168.0.227 i need a php code to remove these lines. ++ gateway1 menu = Gateway1 title=gateway host=192.168.0.227 Can any one help me plzz ? thanks …

Member Avatar for DILO3D
0
6K
Member Avatar for user45949219

Hey all! This is my first post on Dani's Web but I have long before used it as a resource for understanding different problems I have encountered with Python. I have only just started learning Python so please excuse my lack of understanding on this problem. [CODE]counter = 0 nameList …

Member Avatar for TrustyTony
0
155
Member Avatar for dwinn

Hello everyone, I am developing a form in VB.Net and ASP.Net that enables a user to grab data from a SQL Server 2005 Express database and display the data on the screen depending on the search criteria that they provide. What would be the best way to go about doing …

Member Avatar for dwinn
0
220
Member Avatar for balaji44

Hi, I am new to XSL. I don't know how to loop through XML and filter duplicates using XSL. I tried several ways but i could hot get it done. Here is my requirement. My XML --------- [code] <?xml version="1.0" ?> <X12Summary> <Unit volume="10" Amount="100"> <Identifier Name="Customer ID" Value="12345" /> …

Member Avatar for bibiki
0
195
Member Avatar for varoluscu_prens

Dear friends of daniweb.com; An annoying problem has been arisen in muy php code. Here is the code : [CODE] $doc = new DOMDocument(); $doc->load("http://localhost/xampp/tsbs_yellow_pages/run/databank.xml"); $xPath = new DOMXPath($doc); $nodeList = $xPath->query("/Root/User"); [COLOR="Red"]//Everything is normal up to that point I think[/COLOR] $phase; $length_of_phase; $areaPointer=99; $i=0; //In these "if" blocks , …

Member Avatar for iamthwee
0
2K
Member Avatar for dangari

My java application has been running smoothly for the last 2 years in one linux server. Recently, we moved it to another linux server and it's then that it started giving the error as shown below: [CODE] java.sql.SQLException: Prepared statement needs to be re-prepared at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573) …

Member Avatar for dangari
0
3K
Member Avatar for MasterGberry

So I am operating a website using the PHP Invision Power Board system, and it's kind of old. There are 10,000s of lines of code in it that are custom, and re-writing the website is probably more work then its worth at the moment. I want to take the URLs …

Member Avatar for pdhanunjaya
0
124
Member Avatar for pritesh2010

hello everyone , I'm facing a problem in inserting data in TEMPORARY table. i can do it by simple query easily. but i want to do through [CODE] for Ex. i have bunch of query which i'm executing through SET @QueryText="Select ID from employees limit 5"; //it contains bunch of …

Member Avatar for pritaeas
0
217
Member Avatar for ashes22

I have a Telerik MVC Grid where I have a column as " select " , " edit" forwhich I have used Format Property to show Links to my ActionMethods . Now I want to show the selected Row text in Bold when someone clicks on " Select" / " …

0
101
Member Avatar for Dadkhah

Hi. I need a function for PrtScr button, means: I called a function then this function can PrtScr button works, without pressing the button. And save this image in directory. Tnx for your attention Best Regards Dadkhah

Member Avatar for Dadkhah
0
95
Member Avatar for xanawa

Could you please tutor me on how to make this connection? (using visual studio 2008) @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DBRestaurant.mdf;Integrated Security=True;Persist Security Info=False;User ID=annamarie;TrustServerCertificate=False;User Instance=True"

Member Avatar for k.d.m
0
117
Member Avatar for arsalanghouri

please tell me where am i wrong [CODE]try { OleDbCommand cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "insert into purchase(pdate,bill id,ritem,suppname,smobno,qty,rate,amount,payment,balance) Values('" + dateTimePicker1.Text.ToString() + "','" + textBox15.Text.ToString() + "','" + textBox7.Text.ToString() + "','" + textBox12.Text.ToString() + "','" + comboBox2.Text.ToString() + "','" + textBox14.Text.ToString() + "','" + textBox13.Text.ToString() …

Member Avatar for kapojian
0
206
Member Avatar for 7kemZmani

Here is simple form contain multiple checkboxes options and textarea input: [CODE] <form method="post" name="form1" action="<?php echo $editFormAction; ?>"> <table> <tr><th colspan="2">BREATHING CIRCULATION</th></tr> <tr><th>#</th><th>Instruction Name</th></tr> <tr><td><input name="InstrCheck[]" type="checkbox" id="InstrCheck" value="Respirations normal rate"></td><td>Respirations normal rate</td></tr> <tr><td><input name="InstrCheck[]" type="checkbox" id="InstrCheck" value="Respirations effort normal"></td><td>Respirations effort normal</td></tr> <tr><td><input name="InstrCheck[]" type="checkbox" id="InstrCheck" value="Breath Sounds-normal"></td><td>Breath Sounds-normal</td></tr> …

Member Avatar for webdesigns12
0
109
Member Avatar for naru vaishnaw

here is my code for message i want to show message with avatar .i'm unable to create it any one help me for displaying message with avatar my message system [CODE] <?php require "database.php"; $userfinal=$_SESSION['MM_Username']; // get the messages from the table. $get_messages = mysql_query("SELECT message_id FROM messages WHERE to_user='$userfinal' …

Member Avatar for Shanti C
0
120
Member Avatar for jovillanuev

Hi All, When I run this script using bulk insert i got an error message but when I try the first 6 records there is no problem. can anyone give the reason and what is the problem? [CODE]Use chrisMartin Bulk Insert SampleTable_Jonel FROM 'c:\planning\ProductRecoveryDataFeedytd_3.csv' --Sheet 1 With ( DATAFILETYPE = …

Member Avatar for Eagletalon
0
307
Member Avatar for sknake

I wanted to export a list of all email addresses I had corresponded with and was unable to find a free product to compile the list so I came up with this. You could take it a step further and scrape additional email addresses from the message body. As far …

Member Avatar for Rajwin.aravind
0
341
Member Avatar for ztdep

Dear friends: I want to use the code block under open suse 11.4 system. But i do not know how to install it. I downloaded severay binary packages in the code block websiet, but none of them can work. Could sombody help me and give me a link about the …

Member Avatar for mike_2000_17
0
82
Member Avatar for DarkPyros

Hey, this code accepts data (type int) into a 4 by 4 array. im using 1234 as an example when entered, the data would be stored as: 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 the code the rotates it once to …

Member Avatar for DarkPyros
0
168
Member Avatar for complete

I have a regular expression (regex) question... How would I use regular expressions to remove the contents in parenthesis in a string in C# like this: "SOMETHING (#2)" The part of the string I want to remove always appears within paranthesis and they are always # followed by some number. …

Member Avatar for kvprajapati
0
176
Member Avatar for bgx90

Hello. Does anyone know why strip_tags() is apparently returning an empty string in the code below? If I get rid of the strip_tags(), it works, but with strip tags, it displays the message about no ticket number being entered. I'm just sending it "http://[omitted].php?ticketNum=1", so there aren't even any tags …

Member Avatar for bgx90
0
388
Member Avatar for Stefano Mtangoo

I'm impressed with Aptana Studio 3 and it is wonderful. I have decided to go back to eclipse after years of using Netbeans. In NB I was having option of [B]separating my files from project meta data [/B]but I cannot find how to do it with AS. Also in Netbeans …

Member Avatar for ulyssey
0
289
Member Avatar for hughesadam_87

Hey everyone, I'm getting familiar with TkInter, and while it's a cool program, I'm having a hell of a time with keeping all the classes straight. As of now, I'm trying to build a program with a menubar and some other widgets. I can get the program working if I …

Member Avatar for hughesadam_87
0
217
Member Avatar for west456

Need help on this not for sure what I am missing I get a couple of errors!In included both the .h and .cpp information. [CODE] // Make sure the header file it not added more than once #pragma once #ifndef MYTIME_H #define MYTIME_H #include <iostream> using std::ostream; using std::istream class …

Member Avatar for Lyandor
0
551
Member Avatar for mbarandao

hello: I'm trying to modify the following query so that it only select rows where [code]90 - DATEDIFF(CURDATE(),date) as days_remaining[/code] is greater than negative 15. (days_remaining > -15) [code]$query="select servicearea, date, customerid, clientID, 90 - DATEDIFF(CURDATE(),date) as days_remaining from servicesrendered where servicearea=' Oil Change ' and DATEDIFF(CURDATE(),date) > 79 group …

Member Avatar for mbarandao
0
104
Member Avatar for Joshua Kidd

Hello, I'd Like to do the Same thing as in this post I posted a while back. But in a Listview Control [url]http://www.daniweb.com/software-development/vbnet/threads/369754[/url] But there is no Selected rows... There is an Item Active But that did not work. And I cant find this anywhere else. Can someone help? Thanks, …

Member Avatar for Unhnd_Exception
0
92
Member Avatar for Kesarion
Member Avatar for m4ster_r0shi
0
557
Member Avatar for Roy Gourgi

Hi, I have a table with 10,000 records but I only want to read 250 at a time. I know the row number of the 250 records that I have to read and so I want to avoid reading all 100,000 records each time. For example, if I want to …

Member Avatar for sknake
0
216
Member Avatar for icehiro

I'm quite new to programming and I've just started Java, I'm not sure about why my program is stuck in a loop - [CODE] import java.util.Scanner; public class Tplayer { static int numplayer; static int startvalue; public static int dice1; public static int dice2; public static int bet = 20; …

Member Avatar for sirlink99
0
167
Member Avatar for yapaarachchi

I want java code for image aligning.Actually I want to produce image, using several same images.Can anyone give me help??????

Member Avatar for sirlink99
0
96
Member Avatar for Nexgr

Hello, I create a bst with the following code: [CODE]class BinarySearchTree { public: struct tree_node { string code; float min; float max; tree_node* left; tree_node* right; }; tree_node* root; BinarySearchTree() { root = NULL;} bool isEmpty() const { return root==NULL; } };[/CODE] The tree is sorted according to the min …

Member Avatar for Nexgr
0
152
Member Avatar for Pari13

Hello All Developeres, Please Read Below Senario. I have one table Supposed "Emp(EmpID,EmpName)" Now There is data with Name "testName1" and "testName2" in EmpName Field Now I need query which fetch all record in asceding order for EmpName Field and Record with "testName1" and "testName2" will must display at [B]last[/B]. …

Member Avatar for adam_k
0
121
Member Avatar for Istw

Hello boys.. I'm here for an advice.. I have table 'users' with : ID , USER.. And 'activities' with : USER_ID , activity.. I want to select the USER_ID from 'activities' to find the user ID in the 'users' table.. I am using the VB database.. On php i know …

Member Avatar for adam_k
0
145
Member Avatar for mogaka

hi you all, I am creating an application which requres generation of random keys cosisting of 4 numbers(0-9). However, i realized that at some point,the random numbers repeats themselves. how can i avoid this repetition.the numbers form the primary key of a column in sql database table.

Member Avatar for adam_k
0
77
Member Avatar for Fa3hed

Hello Everybody prop lame i am making a access sql helper and for writing the insert this code [CODE] Dim i As Integer TextBox6.Text &= "Insert Into " & ComboBox2.Text & " (" For i = 0 To ListBox1.Items.Count - 1 TextBox6.Text &= ListBox1.Items.Item(i).ToString() & "," Next TextBox6.Text &= ")"[/CODE] …

Member Avatar for adam_k
0
137
Member Avatar for Fransh

Guys Help Please I have a textbox that needs to add up values from 3 other textboxes. I dont want to use the afterchange method on the other 3 textboxes. Is there a way i can assign or run a method that does the calculation throughout runtime. Like what excel …

Member Avatar for adam_k
0
140
Member Avatar for danarashad

I am having a weird issue. I am using cfautosuggest, when I type child into the search box the cfc should return "Other Minor Child in Custody,Grandchild, Great Grandchild", but it doesn't. The weird part is when the query runs I do a dump in the cfc and it does …

Member Avatar for arrgh
0
153
Member Avatar for zifina

is there a way to have the text in a label scroll horizontally,if the text do not fit into the label... please help...

Member Avatar for zifina
0
3K

The End.