199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kaosjon

Hi, i am trying to add some realtime form validation for my registration page, however only my email input is displaying the either correct or error output that it should, and neither my username or password are, I have tried for the past couple of hours to see what is …

Member Avatar for kaosjon
0
231
Member Avatar for statsProf

I have the following problem passing coordinate data from a web page to a php handler that will read and write the data to a storage file or a database. What I am asking the user to do is click on a line (a png image) which has attributed coordinates …

Member Avatar for statsProf
0
195
Member Avatar for hwoarang69

i really hate php and javascrip but i really want to make a social network website just for fun. so i wanted to use java, sql, and html to make. i already know these 3 languages and i know how to set a database but i dont know how to …

Member Avatar for stultuske
0
127
Member Avatar for Valiantangel

Hi i am finding this a challenge.I am suppose to get 12345 12345 but my below code is giving me 1112314151 1222324252 what mistake am i making? #include <iostream> using namespace std; int main() { int row,column; for(row=1;row < 3;row++) { for(column=1 ;column < 6; column++) cout <<column<< row <<' …

Member Avatar for MandrewP
0
121
Member Avatar for suhasgh

Hey i have one questio .....plzz do answer........ i have 3 classes A,B and D A is base class........ if B is derived from A.. can we derive C from both A and B......??

Member Avatar for suhasgh
0
113
Member Avatar for abhishekagrawal

Dear All, I have written a program to find the smallest divisor of an input number. The code gives me an error in lines 19 and 23. The error is invalid operands to binary %. Please help me to troubleshoot, thank you. Below is my code: #include<stdio.h> #include<stdlib.h> #include<math.h> int …

0
200
Member Avatar for hwoarang69

lets say i have a i have a char array char left_var[] //-33x-4x+x this char left_var array has the value of "-33x- 4x+ x" and result should be "-33-4+1" and store in another array called in another word iam trying to get rid of x's and if there is only …

Member Avatar for hwoarang69
0
147
Member Avatar for phorce

Hello, I'm working on an image-gallery type application and I have got the images to work, in that the gallery works and the image changes at the particular interval. BUT, I need a way to stop the images changing when you mouse over the event. Here is what I have …

Member Avatar for Sahil89
0
101
Member Avatar for Labdabeta

I have now read a total of 5 different winsock tutorials and I still do not get how sockets work! Could somebody please explain how to make a program that will allow n computers to share data with each other. As an example could somebody make a 'game' with the …

Member Avatar for Labdabeta
0
224
Member Avatar for Maha Sh.

Hi all, :) I am creating a log in form and I connected to my database and when i run my form I keep geting this error "NullRefrenceExeption was unhandled by user code" Object reference not set to an instance of an object. I'm getting the error in this line …

Member Avatar for hericles
0
302
Member Avatar for st_infamous

I got this delay routine while searching the internet for ways to introduce a time delay (4-5 sec) in my assembly program. I fed it into a HelloWorld program to display 'Helloworld' box message after 10 sec from the execution of the program. Here's the code .386 .model flat, stdcall …

Member Avatar for GunnerInc
0
141
Member Avatar for alessa

Hi, I have a file like this, separeted by tabs: Code Info source start end GB01672 rpsblast_to_CDD protein_match GB01672 rpsblast_to_CDD match_part 296 988 GB01673 rpsblast_to_CDD protein_match GB01673 rpsblast_to_CDD match_part 3803 4147 GB01673 rpsblast_to_CDD match_part 1314 1907 GB01673 rpsblast_to_CDD match_part 3516 3932 GB01673 rpsblast_to_CDD match_part 3335 3463 GB01674 rpsblast_to_CDD protein_match GB01674 …

Member Avatar for d5e5
0
143
Member Avatar for FutureWebDev

When you assign an element of a window to a variable with getElementById() or getElementByName(), that variable is referring to an Element Object that is a property of the Window Object. This behavior is not true for frames, however; the value of the name or ID of a frame element …

Member Avatar for FutureWebDev
0
131
Member Avatar for Valiantangel

i was learning about Functions from a book.Keyed in the following code to my visual studio express and got two errors: expect a declaration and '{' : missing function header(old-style formal list. what do they mean? Does this have to do with ans/isoi std? #include <iostream> using namespace std; void …

Member Avatar for Valiantangel
0
103
Member Avatar for swissknife007
Member Avatar for Gribouillis
0
154
Member Avatar for guidely

Hi, Yesterday I try to figure out that if we input day and the system will add day to current date and display result but I got problem example below input 1 day to add table 1st record 2012-05-05 Add 1 day 2012-05-06 input another 3 day table 1st record …

Member Avatar for guidely
0
117
Member Avatar for jayson_g

Im having a difficult time finding info on how to set up a combobox listener for my project. My book has 1 example and it uses audio files.(no help) My project consists of a GUI panel with a splitpane that that has a list of info on the left for …

Member Avatar for jayson_g
0
124
Member Avatar for whileiforelse

Hi all, I'm working on a simple Java project on student database. One of the methods I need to implement obviously involves searching for a student in the student registration using the student id input. Here is what I've been asked to do: *-searchStudentRegistration(String studentId): Using the studentId you will …

Member Avatar for whileiforelse
0
196
Member Avatar for Johnathon332

at the moment I am having a problem with looping back to noun_phrase from np2. I was wondering if someone can help me loop back to nounphrase. Here is some code: noun_phrase([X|T],(det(X), NP2),Rem):- det(X), np2(T,NP2,Rem). np2([H|T],np2(adj(H),Rest),NP) :- adj(H), np2(T,Rest,Rem), noun_phrase(NP,Rem,_). I want to loop from np2 back to noun_phrase. I …

Member Avatar for TrustyTony
0
312
Member Avatar for NitaB

Well, it's been a lonngg time since I've last been on DaniWeb and everything looks different. Anyway, I'm having a bit of a brain fart I suppose so I'm hoping someone can help me out. I've been working on this program that basically reads in a fasta file with multiple …

Member Avatar for NitaB
0
127
Member Avatar for charisma

I'm trying to get my thumbnails all on one line. can someone help me please? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Simple and Effective Photo Gallery with HTML and JavaScript</title> <style type="text/css"> body { background: #00546b; margin-top: 20px; } h3 { color: #eee; font-family: Verdana; } …

Member Avatar for charisma
0
197
Member Avatar for anuj_sharma

Hi, I am trying to create document using iText. I am using Eclipse IDE. I've imported the jar files (itextpdf-5.2.1.jar and itext-xtra-5.2.1.jar). However RtfWriter2 is not being recognised as a class. Document doc = new Document(); RtfWriter2 writer = new RtfWriter2(); RtfWriter2.getInstance(doc,new FileOutputStream("testRTFdocument.rtf")); Can someone help me in figuring out …

Member Avatar for anuj_sharma
0
369
Member Avatar for litchi

Hi :) Is it better to have a one file program (ex. MyProgram.class) or a multiple file one (ex. Main.class and Gui.class and Draw.class)? thx

Member Avatar for Username field
0
142
Member Avatar for BenzZz

Hi, I'm creating a web app that downloads sms messages from an M2M server using a Soap Client. The problem I am getting is that the SoapClient is not being found when i do this: $m_obj_client = new SoapClient($m_wsdl); The error i receive is: Fatal error: Class 'SoapClient' not found …

Member Avatar for BenzZz
0
144
Member Avatar for athulram

My site needs a way to know whether a user is an admin or not in multiple pages. So is it safe to store whether a user is an admin or not in session variable? Or is there a better alternative (Maybe another superglobal variable?), It will only hold a …

Member Avatar for BenzZz
0
204
Member Avatar for ak47carbon

i want when any user type a mar.com/work.php it aces the page but url is showing mar.com/

Member Avatar for ak47carbon
0
238
Member Avatar for mogaka

I am trying to process an array to get variable name and its value. below is the code. $s = explode("&",$mine); foreach($s as $k=>$v){ $v=explode("=",$v); for($i=0;$i<count($v);$i++){ $a[$v[$i]]=$v[$i+1]; } print_r($a); } The prolem is that the array repeats itself in output. as shown(look at it keenly): Array ( [APIresult] => 000;APIresultexplnation …

Member Avatar for diafol
0
133
Member Avatar for showman13

Hi, I have a query that I would like to be able to decide what fields to select based on the value of the fields in the database... Here is the query I have SELECT mem_id, company, fname, lname, addr1, addr2, city, state, zip, country FROM dc_order WHERE STATUS='W' What …

Member Avatar for smantscheff
0
132
Member Avatar for vizz

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="http://www.appelsiini.net/projects/jeditable/jquery.jeditable.js"></script> <script type='text/javascript'> $(document).ready(function(){ $('.edit').editable('save.php', { id : 'name', name : 'newvalue' }); }); </script> <ul> <li>Name:- <div class="edit" id="name"><?php echo"$name"; ?></div></li> <li>Surname:- <div class="edit" id="surname"><?php echo"$surname"; ?></div></li> <li>Login ID:- <div class="edit" id="login"><?php echo"$login"; ?></div></li> </ul> *newvalue=user edited content id=elements id* This is my code …

Member Avatar for vizz
0
126
Member Avatar for imstella

Hello, Can somebody help me with my contact form? I am getting this error message "Parse error: syntax error, unexpected T_IF in contact/contact-form-handler.php on line 5". I tried adding more parenthesis but I can't seem to figure it out. Thank you! <?php $errors = ''; $myemail = 'emailaddress@gmail.com';//<-----Put Your email …

Member Avatar for imstella
0
197
Member Avatar for razamughal67

Hello to all simply when i delete a file and the file is goto recycle bin after deleted. when we use ( Kill ) command then my file delete direct and cannot goto recycle bin please help

Member Avatar for deepakbshitole
0
1K
Member Avatar for el33t

Hi, Is this a valid while loop? : while((grid[tr][tc]=='0'||grid[tr][tc]==s[i]) && tr<row && count<strlen(s)) { ++count; ++tr; } Although the full program compiles fine, but *sometimes* my program crashes during runtime giving me a "Access violation(Segmentation Fault)" error and the debugger points to this loop statement... By the way, I'm using …

Member Avatar for Gribouillis
0
184
Member Avatar for Valiantangel

I was reading a book and it said "Mac names cannot be overloaded and the macro preprossor cannot handle recursive calls: #define PRINT (a,b)cout<<(a)<<(b) #define PRINT (a,b,c) cout<<(a)<<(b)<<(c) /*trouble?:redefines,does not overload*/ Can someone pls explain possibliy with examples?

Member Avatar for Valiantangel
0
122
Member Avatar for anuj_sharma

Hi, I've created a small application that allows the user to capture the screenshot and save the image at a user defined location. It also allows the user to capture the screenshot of the active window as well. The issue is with the active window. I have learnt that Java …

Member Avatar for anuj_sharma
0
360
Member Avatar for jimoaks

Hello, I am having some trouble writing this java GUI. First in the win1, i cannot get the start and exit button to the bottom of the page along with the jlabel into the center. Next for win2 i cannot resize the "go here" button at the bottom of the …

0
317
Member Avatar for turt2live

Hello, I currently have this setup for a "download a mp3" php page: [CODE] <?php include "class.php"; $account = new account(0); $id = $_GET['id']; $u = $_COOKIE['username']; $a = mysql_fetch_array(mysql_query("SELECT * FROM items WHERE id='$id'")); $file = $a['actualPath']; header("Cache-Control: public"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=$file"); header("Content-Type: audio/mpeg"); header("Content-Transfer-Encoding: binary"); …

Member Avatar for vibhaJ
0
1K
Member Avatar for tedtdu

Dear all. please kindly but freely provide of your ideas and thought about following. I need to get binary bits of variety of files regardless of ASCII, Unicode, or even non-printable etc. I searched following seems to be commonly used but not for all. bits[i] = ((1<<i) & c) != …

Member Avatar for Labdabeta
0
258
Member Avatar for athulram

I have a website which holds articles. So right now theres a page called viewarticle.php and i use GET to send the article id so that it will be retrieved by MySQL database (for eg. viewarticle.php?id=2 loads article no. 2) But instead of that is there a way of refering …

Member Avatar for vibhaJ
0
189
Member Avatar for engo

I m trying to create a html file from vb.net form using notepad. the problem i m having is i can not get more than one var at the time each inputBox with ok click. how can i get all of my 8 variables in one OK button click? Thanks

Member Avatar for engo
0
108
Member Avatar for Torf

I have been trying to teach this myself, but I judt don't get it. I have 10 books with ISBN number, title, name of author. The linked list should display the books sorted by ISBN. I hope this collections.sort is correct: import java.util*; public class Sort { public class Sort …

Member Avatar for Torf
0
230
Member Avatar for akgeek

I think I have a relatively simple problem, but forgive me, I'm new at this. I'm trying to take output from a dynamically created checkbox in php to a foreach statement to make a new string that I can use to request an update from mysql. In the foreach loop, …

Member Avatar for diafol
0
3K
Member Avatar for Muhammad Anas

I am designing a very basic form in which I am using GridBagLayout to position and size the GUI components. All the components get sized and positioned exactly as I expect from my code except the two radio buttons named "noRadio" and "yesRadio" respectively. I want them to appear next …

Member Avatar for Muhammad Anas
0
624
Member Avatar for charisma

I found this code that looks like i will be able to add and delete pictures on the fly. What I would like to know is. How can I get the code to take pictures from my folder instead of the way they have it. Thanks in advance. <!DOCTYPE html …

Member Avatar for charisma
0
132
Member Avatar for waleed.makarem

Dear Experts, **Problem :** I need to save a datatable to a binary file , in binary format , in order to make the process fast because the datatable may contain up ten millions rows. So , XML is not favorable because it makes the file large sized , and …

Member Avatar for Reverend Jim
0
1K
Member Avatar for SCass2010

Hi everyone, Wondering if anyone could help with a minor problem... I have a class that contains a std::map that stores pointers to various objects as a void pointer and a name for the object, so within the class I have a template function where the object type is passed, …

Member Avatar for mike_2000_17
0
2K
Member Avatar for Fotis_13

Hi. I cannot explain my question very well. I have an array of objects. Can i perform a search in this? Check the following code as example: public class test1 { public static void main (String[] args){ test2[] array = new test2[2]; for(int i=0;i<2;i++){ array[i]=new test2(); } int a=1, b=2; …

Member Avatar for Fotis_13
0
206
Member Avatar for radhika1990

//This is the package file package radz1990; import java.io.*; import java.util.*; import java.lang.*; public class radz1991a1 { BufferedReader ob=new BufferedReader(new InputStreamReader(System.in)); Scanner obj=new Scanner(System.in); public String name=new String("0"); public String patientid=new String("0"); public String prescription=new String("0"); public String Illness=new String("0"); public String Address=new String("0"); public String ladate=new String("0"); public int …

Member Avatar for NormR1
0
191
Member Avatar for mayank.dyl

Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B); Please first define the logic to calculate the number of bits required to convert A to B and then code. Thankx a lot.

Member Avatar for gusano79
0
540
Member Avatar for Valiantangel

int main() My code works fine...i will be using const later ,hence my variable are capital letters.What i need a little help is when the NUM_VALUE is negative.If i am not wrong its call integer division error.(where one or more operand is negative.How can i avoild this? I inserted under …

Member Avatar for gusano79
0
129
Member Avatar for fobos

Hello, i have this piece of code that counts the number of words in a td based off the class of the td. It works find if all the words inside the td's are the same, but if i change one, it doesnt work. <html> <head> <script type="text/javascript" src="jquery.js"></script> <script …

Member Avatar for fobos
0
358

The End.