64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kako13

Hi, A user go to search.php and input the term. If the user want to search for an exact prhase it add to the search term " " just like Google do. Example: "apple" But when the variable is passed to search_results.php it look like this: [CODE=php] //search_results.php $var = …

Member Avatar for kako13
0
174
Member Avatar for varunrathi

HI EVERYONE, I HAVE GOT A VERY INTERESTING PROBLEM THIS TIME. U HAVE TO FORM A PALINDROME OF AN ENTERED STRING. IT`S NOT THE UASUAL STUFF OF CHECKING WHETHER AN ENTERED STRING IS A PALINDROME OR NOT. IN THIS PROGRAM, SAY IF THE GIVEN STRING IS: "A3BCA" THEN THE PROGRAM …

Member Avatar for yellowSnow
0
193
Member Avatar for Nada_ward

hello I want to take data ( number) from text box on second form ,and break running for first form when second form closed , the first form continue it running this code for first form [code=vb.net] public number As Integer dim numofcondition as form Private Sub button1_Click(ByVal sender As …

Member Avatar for Nada_ward
0
134
Member Avatar for sravan953

Hey guys, I have some trouble understanding global variables, threading, and functions... Code: [CODE] import threading a=1 class myThread(threading.Thread): def run(self): global a print(a) a+=1 t=input("Specify the number of threads: ") for b in range(t): myThread().start() raw_input() [/CODE] [I][B]#1 doubt:[/B][/I] [CODE] class myThread(threading.Thread): def run(self): global a print(a) a+=1 [/CODE] …

Member Avatar for Stefano Mtangoo
0
225
Member Avatar for Dixtosa

hi again!:) when i use urllib.urlretreive(somthing,local_somthing) it crushs cpu,comp. what can i do? sorrry for my english that is code: [code] class UPDATE(wx.Frame): def __init__(self): pass def Download(self): wx.Frame.__init__(self,None,-1,"Downloading",(0,0),wx.Size(500,500)) panel=wx.Panel(self,-1) self.gauge = wx.Gauge(panel, 57, 100,(100,100), size=(250, 25)) wx.StaticText(panel,-1,"downloading please wait..",pos=(0,0)) self.Show() self.geturl("http://vpython.org/contents/download/VPython-Win-Py2.5-5.11.exe","hoho") def _reporthook(self,numblocks, blocksize, filesize, url=None): #print "reporthook(%s, %s, …

Member Avatar for Dixtosa
0
156
Member Avatar for laghaterohan

I am trying to populate another combobox based on the text selected in the first combo box...however , the event protected void ddlcity_SelectedIndexChanged(object sender, EventArgs e) is not firing ? here is my code snippet : [CODE] protected void ddlcity_SelectedIndexChanged(object sender, EventArgs e) { SqlDataReader dr1 = null; SqlCommand command …

Member Avatar for kameswari
0
135
Member Avatar for sackymatt

Hi guys am new on VB6 and would like your urgent help, i have created my POS half way and have created a form for sales, now what i want is when i enter an item code all the other information related to the item diplays at the respective text …

Member Avatar for sackymatt
0
212
Member Avatar for laghaterohan

i have 3 tables Category, CityMaster and Data Next, i Have 2 comboboxes For City and Category. In my Category Table i have Two columns Category and Category ID which is unique for each Category. In my CityMaster table i have 2 columns CityName and CityID wherein each CityName has …

Member Avatar for kameswari
0
92
Member Avatar for ayuscomeyh

i delete a row of data from this [code] ........ <a href="delete.php?id=<? echo $rows['id']; ?>">delete</a> [/code] delete.php [code] <html> <body> <?php include 'recipe2db.php'; // get value of id that sent from address bar $id=$_POST['id']; // Delete data in mysql from row that has this id $sql="delete from recipe where `id` …

Member Avatar for pritaeas
0
58
Member Avatar for avirag

hi...... i m making a window application in which i want to divide my form into 3 panels(left,right, and top) in left panel i have tree view(with some nodes n childs), in top panel i have some pics now i want that when i click on tree view node, so …

Member Avatar for avirag
0
126
Member Avatar for Donish

Hi All! I have this Button_Click event. I want it to create as many set of the specified below controls as User clicks. For example: If the user clicks one the button then only 1 line set of these controls will appear on the PlaceHolder but if the user clicks …

Member Avatar for Donish
0
374
Member Avatar for nrobidoux

I'm trying to figure out how to attach a class with pure virtual <</>> operators to other classes for the purpose of saving/loading the application state. So I started off with: [CODE]class IWriteable { public: IWriteable(): pCls(NULL) {} IWriteable(void *p): pCls(p) {} virtual ostream& operator << (const void * &p) …

Member Avatar for nrobidoux
0
132
Member Avatar for ayuscomeyh

add.php [code] <?php include 'recipe2db.php' ?> <div align="left"><img src="Cookie Banner edited.jpg" width="1100" height="200" /> <form name="form7" method="post" action="add_process.php"> &nbsp;</p> <p>&nbsp;</p> <table align="center" border="3" cellpadding="2" cellspacing="2"> <tr> <td>catagory :</td> <td> <?php include 'recipe2db.php'; $query="SELECT id_category, category_name FROM category"; $result = mysql_query ($query); echo "<select name=category value=''></option>"; // printing the list box …

Member Avatar for itisnot_me
0
98
Member Avatar for kashn

Hi, I'm trying to include a Intellisense in my Rich Text Box, but i'm having problems. I'm trying to implement the one from: [url]http://www.codeproject.com/KB/cs/diy-intellisense.aspx[/url] Can someone please point me to a much more simpler open source intellisense for C#, importing methods from a DLL file? - Thanks!

Member Avatar for kashn
0
152
Member Avatar for Curgol

Well as the title ... example: [code] string ss="this is an encrytpion program"; unsigned char temp[32]; //={0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; temp=ss //that's what i need ! [/code] Have converted the string to it's hex representation .. [code] char string1[64]="yeah …

Member Avatar for Curgol
0
2K
Member Avatar for Lakshith

Hi I want to show a crystal report in my windows application.In my Access DataBase I have a column called Payment type and its type is number.(ie data in that column is stored as 0 or 1).If payment type is 0 I want to show it as a string called …

Member Avatar for kvprajapati
0
244
Member Avatar for anuj_sharma

Hey Guys, Is there any problem in the following code: [code]TextBox test = (TextBox)Page.PreviousPage.FindControl("search"); if (PreviousPage != null) { if (PreviousPage.IsCrossPagePostBack == true) { Label1.Text = test.Text; } } else { Label1.Text = "Not a cross-page post."; }[/code]

Member Avatar for kvprajapati
-1
107
Member Avatar for ndeniche

Hi all. Is there any collection object that will let me create a list of items which I could call by name, instead of by number? so instead of soing this: [code=c#] //Create List List<ClassType> list = new List<ClassType>(); //Assign values to list list.add(new ClassType(params, [params, [params]])); //Call list items …

Member Avatar for ndeniche
0
95
Member Avatar for php_noob

Well I am a PHP fan, (HAIL OPENSOURCE) Its just so happen I will have a ASP.NET PROJECT, In short I need to run MS VISUAL STUDIO and MS SQL SERVER in my machine together with XAMPP. I just want to confirm first If I will have a problem installing …

Member Avatar for anuj_sharma
0
1K
Member Avatar for BlkR

Hi, Currently have a working solution in displaying data from the database to listview through specific dates selected, however the problem lies with it sometimes selecting the right data for the dates and sometimes it doesn't. Just would like someone to check whether the code i have is correct or …

Member Avatar for BlkR
0
98
Member Avatar for Leniel

well this a parallel array and also be able to process the arrays but it doesn't do so can some one give me a hint of what i might be doing wrong. Thank you before hand. ------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <new> using namespace std; int main () { int …

Member Avatar for Leniel
0
186
Member Avatar for ahoyikisoba

I am trying to find the SDK for sony ericsson, I can't seems to find it anywhere! Any info for me? Thanks!

Member Avatar for ahoyikisoba
0
205
Member Avatar for ravikiran032

I am doing mini project in [B]VB.net[/B]. Actually my project contains [B]form1[/B] and [B]form2[/B]. I have opened form2 from form1 using "[B]form2.show()[/B]" method. While closing form2, my application still remains in debugging mode. I thought my form1 has not yet been closed and used [B]me.close() [/B], to close form1 while …

Member Avatar for ravikiran032
0
93
Member Avatar for sonia sardana

[code] function ConvertToUpperCase() { var result; var numaric = "sonia"; var Character = numaric.charAt(0); result=Character.toUpperCase(); //In Result char is coming in UpperCase /[B]/I want how to replace the charater at postion 0 in numaric with result[/B] } [/code]

Member Avatar for Airshow
0
234
Member Avatar for perlfan

The following code: Exits immediately and produces the message below when search pattern "[COLOR="Green"]\b\w+{3}\b[/COLOR]" is entered: [code=perl] #!/usr/bin/perl -w #matchtest1.pl use strict; my($pattern); my($true); $_ = '1: A silly sentence (495,a) *BUT* one which will be useful. (3)'; do { print "Enter a regular expression: "; chomp($pattern = <STDIN>); if …

Member Avatar for perlfan
0
137
Member Avatar for goody11

Hey, I was attempting to make a password protection system in windows API where someone can type the password in an editbox and if it is the right password, then continue the program else display an error message box. I've tried a bunch of different things but can't get one …

Member Avatar for goody11
0
113
Member Avatar for spalax

Hi, i'm a beginner in Java. i'm just trying to code a program that extract some specificline from a text file. for example : i want to extract line No 5000 and lineNo 5100 and lineNo 5200. Here is my code, but it only extract just one line from my …

Member Avatar for spalax
0
3K
Member Avatar for EvilOrange

hi, its been a long time since i've had to work on c and i've stumbled. I'm basically trying to get a string[5] into a 2d array stringarray[10][1] [INDENT][CODE] char string[5]; char stringarray[10][1]; void workfunction(); int main(){ workfunction(); for(i=0;i<10;i++){ printf("%s", stringarray[i][0]); } } workfunction(){ for(j=0;j<10;J++){ //does something to get me …

Member Avatar for EvilOrange
0
121
Member Avatar for severman

hi all! i have a question. i want to add an img to a specific cell in a table(which is inside a form) with inside a javascript function. (i greened which function i use, which cell i want, and which img i want) this is the code i write so …

Member Avatar for essential
0
130
Member Avatar for jake43

I have an issue with this assignment, the instructor says that I use the brackets incorrectly that is why the program will not compile. Please provide feedback to correct program. #include <iostream> using namespace std; int main() { system("color 4"); restart: int number, ans; number = rand() % 100 + …

Member Avatar for Salem
0
205
Member Avatar for cougarclaws

OK, with some help from all of you, I have this working, but I am at a loss as to how to display the number of steps the user asks to show (if they say 10, then every tenth answer displays until the final one) and we need this to …

Member Avatar for cougarclaws
0
129
Member Avatar for ddanbe

I'm working on a Complex number struct. To display the numbers I've overridden the ToString method like this: [CODE=c#]public override string ToString() { if (_imag >= 0) return String.Format("({0}+{1}i)", _real, _imag); else //imaginary part negative return String.Format("({0}{1}i)", _real, _imag); }[/CODE] Works fine. My numbers get displayed as (a+bi) or (a-bi). …

Member Avatar for sknake
0
329
Member Avatar for yellowSnow

I'm still relatively new to these forums. I just like to put out a query regarding threads and their solvability. For Daniweb forums, is it considered good practice for OPs to flag threads that they have started as being solved if they have received appropriate posts that have answered their …

Member Avatar for yellowSnow
1
288
Member Avatar for recycle_carlbin

This code will run but it has some errors in it( I mean,logically wrong.) What is its error? Can you help me figure it out? [CODE]void preOrder(){ myPreOrderTraversal(this); } int myPreOrderTraversal(BinaryTree t){ if (t != null) // {} missing return t.getRoot(); //return should be removed myPreOrderTraversal(this.getLeft()); //replace this with t …

0
82
Member Avatar for speedy gonzalos

Hi I am trying to update more than 1 field in an Access table. I am developing a windows application using an Access database in vb.net. This is the code that i have for my Update button, which works fine if i want to update the field 'CategoryName' however when …

Member Avatar for sknake
0
2K
Member Avatar for arvindikchari

Hello I have a ticket helpdesk script that I am converting to make it completely skinnable. For this, there is a file called header.php which includes the link to a css file. The code is below [code] <link rel="stylesheet" href="<?php print $GLOBALS["URL"];?>/templates/gothica/aquarius.css" type="text/css" /> [/code] I want that the path …

Member Avatar for diafol
0
154
Member Avatar for Stefano Mtangoo

I have two different pyApps, and I want to make a task bar Icons. For one I use .ico file and another .png file. The .ico one works but not the .png file. Does it mean I cannot use PNG file to make taskbar icon? Here is a code that …

Member Avatar for Stefano Mtangoo
0
93
Member Avatar for iamsmooth

So for my comsci assignment, I need to read in this text file with a butt load of messages. Here is what the text file looks like: [code] 1 R Jemma Harry What were you thinking? Harry, You seriously need to stop claiming your paperclip orders under the heading art …

Member Avatar for thelamb
0
116
Member Avatar for RobBrown

I am getting an error of "syntax error befor "else" " when i enter this code into the compiler: [CODE]#include <stdio.h> #include <stdlib.h> int main () { float Balance, creditDebit, newBalance; printf("This is your checkbook balancing utility.\n"); printf("You will enter your current balance followed by\n"); printf("checkbook entries. Use + and …

Member Avatar for yellowSnow
0
182
Member Avatar for Pacman21

Hi All on Daniweb.. I am starting a little project that needs hardware and software.. I decided to first start with the software and thats where Im having some trouble right now.. I can easily make a virtual keyboard that runs in vb.net but what i want it to do …

Member Avatar for Pacman21
0
833
Member Avatar for nova2177

i wrote a code which should accept only two values, but it seems to accept any values instead. can some show me where i went wrong. sorry about the long code, still a newbie at this. double hr::change_r(double sr) //implementation from class section { dr = sr; if(sr == 17) …

Member Avatar for nova2177
0
111
Member Avatar for Nada_ward

Hi I have problem on dragging label when the application show msgbox , it stop responding I do n't know what is problem in my code : [code=vb .net] dim l1 as label Dim serverindex, serverP As Integer Dim serverref As String Dim copiedFragment As String Private Sub Form3_Load(ByVal sender …

Member Avatar for Nada_ward
0
124
Member Avatar for cougarclaws

Hi again, My logic is not too good. I am supposed to get this function to be used twice for two different inputs calling the "strings" from within the function and returning the values to main (perhaps my mistake is attempting to call this program twice??? except that is what …

Member Avatar for cougarclaws
0
185
Member Avatar for CFROG

I'm working on trying to approve photos that get posted. It works fine, but to keep files with the same name from overwriting each other I went with assigning them a random number. The problem is that even if a file is not uploaded it still writes a random number …

Member Avatar for CFROG
0
91
Member Avatar for cougarclaws

Hi all, I have tried this several ways. I need to get the user function to return userIn1 to main. I don't need to read anything from the call to the function, but if I leave out paraneters, it really does not work. My original issue was that the string …

Member Avatar for mrnutty
0
102
Member Avatar for codedhands

Hello, i have a problem constructing a regular expression to strip out puntuations from a document.Below is a simple example of my code [CODE=c++] # //headers here //... string a="kennedy .really-really. .cool"; string replace=" "; string newStr; boost::regex expression("[ ]+(\\.)|(\\.)[ ]+",boost::regex::icase); newStr=boost::regex_replace(a,expression,replace); cout << newStr << endl; //output kennedy really-really …

Member Avatar for codedhands
0
89
Member Avatar for SeeTheLite

The google references were a bit varied and ambiguos and my textbook ironically doesn't cover templates ._. if I were to make [code=c++]template <typename typ> class stk { public: stk(); ~stk(); private: struct STK { typ dat; STK *lnk; }; *chn; int ctr; }; [/code] do I have to do …

Member Avatar for SeeTheLite
0
97
Member Avatar for Evil_genius82

hey guys, im very new to java so bare with me... i cant seem to bubble sort my arraylist... The data needs to be displayed unsorted in a jlist, then when user clicks process the list is sorted according to student id. If anyone could guide me through it would …

Member Avatar for Evil_genius82
0
260
Member Avatar for hardikvd

consider this: float a=3.145698,b; que: now how can I assign b=3.14 using 'a' instead of 3.145698. pls help me... thank you very much....

Member Avatar for mrnutty
0
89
Member Avatar for shea279

OK so how can i have sscanf scan a string with an undetermined number of separators in it, then separate it out into separate strings inside a array of strings. So essentially, how can I modify this code to make it work? [CODE=c++] char * commands; //simple string as pointer …

Member Avatar for shea279
0
2K

The End.