199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HibaPro
Member Avatar for M.Waqas Aslam
0
896
Member Avatar for ayat abukhadra

hi, does textchange control for the textbox executes for every change in every character or for the full text?

Member Avatar for ayat abukhadra
0
96
Member Avatar for while(!success)

Hey guys, I was wondering if anybody knew of a method to check if an element in a object array was empty. for example, lets say I have the class "XYZ" class XYZ { int x; string y; }; then in main if i declared the object array: int main() …

Member Avatar for while(!success)
0
4K
Member Avatar for <HHH>

i want to read each line of my file in seprated string what i have achieved till now is i can read the whole lines in one string and now i want to read each line in a sprated string any help; #include <cstdlib> #include <iostream> #include <fstream> using namespace …

Member Avatar for m4ster_r0shi
0
134
Member Avatar for spacehans

Hello, I am trying to display various types of search results on a seperate page: Here is my PHP CODE for the form: --------------------------------------------------------------------------------------------------------------- <table width="75%" cellspacing="10" cellpadding="10"> <tr> <td width="22%" class="subtiwhite"><strong>Search by Name:</strong></td> <td width="74%"><form name="form1" method="get" action="searchname.php"> <input type="text" name="namelist" id="namelist"> <input type="submit" name="searchname" id="searchname" value="Submit"> </form></td> <td …

Member Avatar for hericles
0
320
Member Avatar for HometownHero

I can't seem to display the image.. Here is my code.. <?php $user='root'; $server='localhost'; $db='db_gamecube';//database name mysql_connect('localhost','root'); mysql_select_db($db); $pass=$_POST['password']; $uname=$_POST['uname']; $sql="select * from tb_register where username ='$uname' and password='$pass'"; $result= mysql_query ($sql) or die (mysql_error()); if(mysql_num_rows($result)==1) { session_start(); $_SESSION['guest']=$uname; echo "<form method ='post' action='login_edit.php'>"; $records=mysql_fetch_assoc($result); echo "<table border =10> <tr> …

Member Avatar for HometownHero
0
211
Member Avatar for AmrReflection

I am new to web servers and I wondered If I can host my own web server. I'm thinking of making a forum using ASP.net but still not sure if that was the right language. Can any one help tell me if it is possible to host my own server …

Member Avatar for JorgeM
0
183
Member Avatar for azgold

Ok here is the code. ` mysql_query("UPDATE `special` SET `Counter` = `Counter` - 1"); $Counter = mysql_query("SELECT Counter FROM special where Id = 1"); if($Counter == 0) { echo "<meta http-equiv=\"refresh\" content=\"0;URL=winner.php\">"; mysql_query("UPDATE `special` SET `Counter` = `Counter` + 500"); } else { echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">"; } ?> im …

Member Avatar for Zagga
0
167
Member Avatar for aint

Hi, I am working on Protein and DNA sequences. When you have a protein sequence it can be translated in to DNA sequence in many ways. A nice way to express this is using regular expression. I would like to create this long regular expression for a protein sequence, and …

Member Avatar for TrustyTony
0
319
Member Avatar for prnjn

How to set image of my own choice say baby.jpg as an icon on the title bar of the jFrame.. Please also help with codes if required ,, i am newbie in java and NetBeans..

Member Avatar for prnjn
0
3K
Member Avatar for prnjn

As i said earliar i am making HRMS , the last phase is logout button. when logout button is clicked , an option dialog should appear which ask for yes or no . PROBLEM is i dont know how to use JOptionPane.YES_NO_OPTION so that i can give user choice of …

Member Avatar for prnjn
0
238
Member Avatar for dsplayer14

Well, here is my code: print "Welcome to the English to Pig Latin translator!" original = raw_input("Please enter a word: ") pyg = "ay" if len(original) >= 1 and original.isalpha() word = original.lower() first = word[0] if word == a or e or i or o or u print "Your …

Member Avatar for dsplayer14
0
4K
Member Avatar for RobRTaylor

I have a question, been racking my brain trying to figure out why this is happening. Let me start off with a chunk of code. This takes values from a textbox and writes them to an Excel sheet: Public Sub printFrmDUIReportPreview() '// =============================== PRINT PREVIEW DUI REPORT FORM ================================== '// …

Member Avatar for RobRTaylor
0
175
Member Avatar for shsh111

i hope someone here can help me with this quistion... Finding Tandem Repeats: Suppose that we want to find all short tied repeats w within a string A = xwwy, |w| < 8. This type of repeat is called a tandem repeat and it occurs very often in biological sequences. …

Member Avatar for SagarSe7en
0
162
Member Avatar for adishardis

Hi, I tried to figure this out but i'm shooting in the dark :) What I want to do is compare two values, either value1 against value2 or if value2 is empty then value1 against value3. add to that, that I want to echo different images depending on the result. …

Member Avatar for adishardis
0
117
Member Avatar for Alochai

So, i've been redesigning the program I've been making to make reusable functions, rather than copy/pasting almost identical code to several different functions (which is what I would have ended up doing). These upcoming sections of code are functions designed to, on a button press, navigate to a URL, scrape …

Member Avatar for Alochai
0
163
Member Avatar for vizz
Member Avatar for ryantroop
0
126
Member Avatar for laura301019

Hi I have an array $months which holds the months of the year. I have a funcion echoArray($theArray) which contains a for loop to print out the months as month 1 is January, month 2 is February etc. I now have to create another function reverseArray which will output the …

Member Avatar for blocblue
0
195
Member Avatar for MrXortex

Hello. I am trying to create a registeration system on my website using PHP and MySQL. BUt whenever I put <?php ?> tags and start coding and test it, I get this error Parse error: syntax error, unexpected T_STRING on line 39 Here is my code: <?php $form = "<form …

Member Avatar for Squidge
0
281
Member Avatar for jonnyc++

If a function present in Base class is overridden in derived class then Inheritance has ambiguity .So virtual keyword is used to overcome this and at run time which function to call can be decided by using Base class pointer to point to either Base class object or Derived class …

Member Avatar for jonnyc++
0
718
Member Avatar for smengr

Hi to ALL Plz help me i try my best to send sms from visual studio C# to mobile but i am not sucessfull so far if any one knows this yhen plz send me procedure as soon as possible thanx in advance Good bye.........

Member Avatar for gopalju
0
1K
Member Avatar for starkk

#include<stdio.h> #include<stdlib.h> int input(int *a) { int n,i; printf("enter the no of elements:"); scanf("%d",&n); for(i=0;i<n;i++) { printf("enter the element:"); scanf("%d",a++); } return n; } int key_input(int *a,int key) { int k; printf("enter the key value which have to be searched in the array of no's provided:"); scanf("%d",&k); return k; } …

Member Avatar for Ancient Dragon
0
194
Member Avatar for I_m_rude

hi... Can you please help me by giving only some HINTS of algorithm used to solve this. I AM NOT ASKING ANY CODE OR SNIPPET FROM ANYONE. I just want hint or algorithm to use... There is a linked list where some nodes have similar number. Sort them such that …

Member Avatar for I_m_rude
0
155
Member Avatar for PHPuss

I have two problems... Here is code : <?php // Create connection to Oracle $conn = oci_connect("root", "admin", "//127.0.0.1/xe"); $query = 'select * from TEST_RESULTS'; $stid = oci_parse($conn, $query); $r = oci_execute($stid); print '</br>'; // Fetch each row in an associative array print '<b> MONITORING SRODOWISK TESTOWYCH </br>'; print '</br>'; …

Member Avatar for Squidge
0
1K
Member Avatar for laura301019

Hi so i have a table created and it is to display the users age in column one, then in the second column half of the age and the last column is to display double the age. I know how to do this part, however the next part is to …

Member Avatar for laura301019
0
108
Member Avatar for shsh111

The "progressive" center-star method is defined as follows: the SP MSA would be produced by aligning each successive string sk to the profile of the existing alignment Mk-1. M0= scentral. M1 is produced by aligning s1 to scentral. i need help to Write code for that

Member Avatar for shsh111
0
165
Member Avatar for arctushar

I need this tricks 1. http://xxx.com/7:4 will be http://xxx.com?volume=7&chapter=4 2. http://xxx.com/7/4 will be http://xxx.com?volume=7&chapter=4 3. http://xxx.com/yyy will be http://xxx.com?find=yyy is there any option? plz help me

Member Avatar for arctushar
0
80
Member Avatar for dlsauers

I am converting a program in python that is written and used on another OS that starts with the letter w. The script as written works on that OS, but on Linux it seems to fall flat on its face. First, I do not have access to any non Linux …

0
251
Member Avatar for akuvidz

i have problem with my code, it didn't say any error but it wont receive a data from the textfield.. is there something wrong with my code? here is the code.. <?php include('config.php'); $email=$_REQUEST['email']; $sql ="SELECT * from employee where emp_work_email = '$email'"; $hasil=mysql_query($sql) or die("E-mail is invalid".mysql_error()); $data=mysql_fetch_array($hasil); $sql1 …

Member Avatar for jayan.bee
0
149
Member Avatar for keryll

Hi i am going to make a Binary Utility but I don't knnow how to program using extern uint16_t Bcdbin(const uint8_t* const pBcdBin) I have already read about extern and about unsigned int but I don't understand how to make a function for that code. please help. ty

Member Avatar for keryll
0
331
Member Avatar for CarterLangley

Hi again guys, I am getting information from a table that I would dearly love to format using my css styles in an external css sheet. Now I am calling the sheet in the header correctly, tested that to make sure. Here is the code I am using. This generates …

Member Avatar for CarterLangley
0
418
Member Avatar for gk1993

$u = mysql_real_escape_string($_POST["username"]); $p = sha1($_POST["passwd"]); $q = "SELECT * FROM profile WHERE email=`$u` AND passwd=`$p`"; $run = mysql_query($q); if(!$run){ echo mysql_error(); } this creates *Unknown column 'mymail@gmail.com' in 'where clause'* error. This code is from a tutorial and a piece of a submit-new-post php page.

Member Avatar for gk1993
0
162
Member Avatar for gabz16

Hi programmers i need to have a GUI code for 4 cpu scheduling algorithms OR AT LEAST THE THREE, W/O THE ROUND ROBIN.. can you help me interface(menu): Cpu scheduling algorithms 1.FCFS 2.SJF 3.PRIORITY 4.ROUND ROBIN CHOICE:______ NOTE:5 DEFAULT PROCESSES ARE GIVEN. PLEASE HELP..THANKS!

Member Avatar for JamesCherrill
0
2K
Member Avatar for serph09

So I have the code below. The whole program just reads from a text file and prints certain characters if it detects specific characters from the text file (in this case I just made it mimics what the text file has). My text file contains this: .........www... bbb..........ww ...bb....ww.... The …

Member Avatar for JamesCherrill
0
614
Member Avatar for ZeQuia

**good day to all! i have a project all about color guess game. i just want to learn about using random functions in words because usually i only see random numbers. anyone can help me to create a source code that will randomize words? thank you! turbo c only.**

Member Avatar for Flowerlady
0
156
Member Avatar for sofien.fkih

I'm having a problem of displaying all the data of a column in a text file I can display only the first data, so please someone tell me what can I make to display them together in a text file. Connection con = DriverManager.getConnection(host, uname,password); Statement stmt = con.createStatement(); ResultSet …

Member Avatar for JamesCherrill
0
172
Member Avatar for 111100/11000

**How to go back to** start_new_input: **of main() function?** #include <iostream> #include <string> #include <cmath> using namespace std; //global varibals: char entered_characters[9999]; int direction_of_rotor1; int direction_of_rotor2; char alphabet_of_rotor1[26]; char alphabet_of_rotor2[26]; char rotor1_backward(char Letter); char rotor1_forward(char Letter); char rotor2_backward(char Letter2); char rotor2_forward(char Letter2); char print(char print_char); int main() { cout << …

Member Avatar for ravenous
0
146
Member Avatar for Hazuan Nazri

Hello, i need some help here, i want to change Edit,Select,Delete linkbutton in the gridview to be outside the gridview, i have tried to hide the 3 button and make another button outside gridview, but i dont know how to make a link between all the button. this is my …

0
181
Member Avatar for vishu.bhavsar

Hi All, Given an array of numbers, I want to find out the 2nd largest number in an array. Can anyone help me to solve the problem? Any help in terms of logic or code would be useful. Thanks, Vishal

Member Avatar for TrustyTony
0
170
Member Avatar for Geeksoftie

I was asked to write code for consumer and producer threads accessing shared queue in an interview with the given primitives ADDNEW.Process PROCESS.SET PROCESS.RESET ENTER CS EXIT CS LOOP EXIT LOOP WAIT# PROCESS

Member Avatar for jimzandueta
0
144
Member Avatar for LinkedList

Hi guys. I want to start my website for the business purpose. I have an average knowledge of ASP.NET with C# Now I want to create a website like [zbigz.com](http://www.zbigz.com) which can be able to generate the direct links for the files combined in a .torrent file. But I have …

Member Avatar for nakor77
0
400
Member Avatar for mochiboo5

Newton's Method to find polynomial solution Hi everyone, this is my first post and I am new to C++. I am trying to figure out how to do this project. Newton’s method is an algorithm that can be used to solve an equation of the form f(x) = 0 using …

Member Avatar for mochiboo5
0
313
Member Avatar for Armanious

This is basically the layout of my task at hand: I have one "host" program - the basic GUI for the entire application running at any given time. It contains a JTabbedPane. When the user adds a tab, I want the program to start a completely new process (new JVM …

Member Avatar for Armanious
0
183
Member Avatar for Alochai

void CRobotDlg::OnBnClickedSnip() { //---------- navigate to Snip CString sUrlSnip= L"http://Snip"; m_ctlBrowser.Navigate(sUrlSnip, 0,0,0,0); while (m_ctlBrowser.get_ReadyState() != READYSTATE_COMPLETE) { DelayMs( 100 ); } //------ page is ready to process IHTMLDocument2* pDoc= (IHTMLDocument2*)m_ctlBrowser.get_Document(); IHTMLElement* pElemBody= NULL; pDoc->get_body(&pElemBody); CComBSTR bstrHTML; pElemBody->get_innerHTML(&bstrHTML); CString sBody= bstrHTML; // easier to work with as a CString //MessageBox(sBody); // …

Member Avatar for Alochai
0
1K
Member Avatar for thomasjc

This may already be out there in the forums, but I really don't know what to search for to find it. What I'm looking for is a way to have a dropdown filled with values, and have it select a value from the database and display it. For example. On …

Member Avatar for almostbob
0
932
Member Avatar for <M/>

I am building a contact form, and I made it out of html and css, but I can't apply php to it in order to make it functional... I wanted it to have the abilities to notify me if someone submits form, the ability to only apply valid information, and …

Member Avatar for <M/>
0
266
Member Avatar for akkbkht

Hello every one. I want to create a software in C sharp for electronic notice board purpose. The following work will be done by this software; ADMIN SIDE: USer(Admin) will post a new notice. This notice will have a title and short paragraph. The text will scroll from down to …

Member Avatar for akkbkht
0
581
Member Avatar for letterG

Hi new member here! i'm having a problem with my code here but I really don't know why, its in the line where i'll comment.. #include<iostream> using namespace std; void convert(char*); void main(){ char r, sen[200]; do{ cout<<"Enter text: "; cin.getline(sen, 200); convert(sen); cout<<"Try again?[Y/N] "; cin>>r; cin.ignore(); }while(r=='y' || …

Member Avatar for letterG
0
166
Member Avatar for mpyap

I'm working on a program driven by a menu. At the end of each menu component, the user will have the option of running that component again. If they enter an invalid entry (not a y or n) I want to go back to the main menu. I shortened my …

Member Avatar for VernonDozier
0
1K
Member Avatar for stevanity

Im from Chennai, India. And my university is Anna University. Our results are published in their website and in couple of others. Our college staff go into each url for each student and copy marks and do analysis stuff. Im working on a project to help them do it automatically. …

Member Avatar for pritaeas
0
251

The End.