199,114 Archived Topics
Remove Filter ![]() | |
hello for everybody i have ID number which is string and i went to do query for maximam ID but it was not come pleas help me | |
I have a program that uses a Payroll class that uses the following arrays as fields: employeeID.- an array of seven integers to hold employee identification numbers. The array should be initialized with the following numbers: 5658845 4520125 7895122 8777541 8451277 1302850 7580489 hours.- An array of seven integers to … | |
Hi! How can I implement the folowing: ABC = BCA - true BAC = CAB - true DAB = BCA - false if (((1 == 1) && (2 == 2) && (3==3)) || ((1==2)&&(2==1)&&(3==3)) || ..... ) return true; That cannot be the fastest way, right?? And how can I … | |
<?php $tname=$_POST['tname']; $uname=$_SESSION['user']; include('db_connect.php'); $sql="SELECT marks FROM marks WHERE uname='$uname' && tname='$tname'"; $data=mysql_query($sql); $marks=$data['marks']; echo $marks; echo $uname; echo $tname; ?> When I am trying to retrieve data marks is not retrived its displaying as "Marks" Please help | |
Hello! I need to ask for a little help to build SQL query to delete some records! Table structure: `charId` int(10) DEFAULT NULL, `schameid` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(250) DEFAULT '', `skills` varchar(500) DEFAULT '', PRIMARY KEY (`schameid`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; Some times record `skills` is empty … | |
Hi I have a folder containing about 60 files and I need to copy each 3 files to a separate folder Thank you | |
Hai.. When i try to set up SOAP environment and access RPCRouter Servlet from browser im getting the following exception.Please do help me out to solve this: ------------------------------------------------------------------------------------------------------------------------------------ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error … | |
int main(){ fstream in; in.open ("myFile.dat", fstream::in | fstream::out | fstream::app); char* temp = new char [40]; string aString; in.write("123\n",4); getline(in, aString); //in.read(temp, 4); cout<<aString<<endl; } i want to either display the text already in myFile.dat or 123 if it was a empty file i tested with a emtpy file, … | |
Hello, i want to make this site http://dotest.webege.com/main.php To show datas per pages, how all this work? How i just show 10 recrods per page, how i create dynamic pages? Any link for this, how all that work? | |
Hi People. I'm a newbie to javascript. I have a small issue. I have a table where I have 5 columns.. I mean 5 <td> In each <td> there are 7 links. When I click a link, a container is popped up... Its hidden at first, Now inside the container … | |
Hey Guy's, back again. Listed this one on WebDeveloper.com but couldn't quite get it solved. I couldn't upload an mp4 video file to clarify the massive HTML file to show what was going on so I'm checking to see if DaniWeb uploads the file before I post the script and … | |
So in my scripting project I mentioned yesterday I was thinking about how to implement arrays. That got me to thinking how does c++ get arrays and inherited classes to interoperate and found out some wierd things class Y { public: int A; Y() { A = 0; } }; … | |
trying to create a insert method thats takes a char *name and int age. after than iam trying to insert in linked list. its seem to be working fine but if i have a linked lets say [1 2 3 4 5] and if i try to insert(2). i shoudl … | |
package now; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class Now extends JFrame { JLabel FirstName; JTextField jtfFirstName; JLabel LastName; JTextField jtfLastName; JLabel Age; JTextField jtfAge; public Now(){ //Set FlowLayout setLayout(new FlowLayout(FlowLayout.LEFT, 10, 20)); //Add labels and text fields to the frame add (new JLabel("First Name")); add (new … | |
![]() | I get a compile error on the line while (iteration < MAX_ITERATION && sqXY <=4) { The error is: expected ')' before ';' token I am pretty sure it used to work before, this problem just popped up randomly just then. Can't the while thing take 2 expressions or can't … ![]() |
# I HAVE DONE ABOUT EVERY THING AND I CANNOT SEEM TO SEE WHERE I WENT WRONG CAN SOMEONE PLEASE TELL ME WHAT I DID WRONG I NEED TO DONE THIS BY TOMARROW ASAP!!!!!!# #include<stdio.h> //header file #include<conio.h> //header file #include<stdlib.h> //header file #include<time.h> //header file #include<math.h> //header file #define … | |
# I have tried about a million times to fix the error but still no result and I need to fix this before tomarrow can someone help by showing me what to do the compiler shows that the error is at the curly braces after void triangle(int a, int b, … | |
I have a js confirmation function: function r_u_sure(message, url){ if(confirm(message)) location.href = url; } if I were calling this function with a regular href, I would use the following: <a HREF="javascript:r_u_sure('Are Sure You want to Delete or Modify Car Information?!','www.somewhere.com)"><a/> however my html link which begins the deletion process of … | |
Here is the code in question: [CODE] filePath = "..\authors.xml" dsAuthors.ReadXml(filePath) With DataGrid1 .DataSource = dsAuthors .DataMember = "authors" End With [/CODE] However, it will not allow me to reference .DataMember, it keeps popping up with the error text "'DataMember' is not a member of 'System.Windows.Forms.DataGrid'". What can I do … | |
i am trying to print " in echo statement. i can't get any method other than <?php echo " " "; ?> which is definitely wrong. help me to find a way out of it. any help is appreciated. | |
#include<iostream> int add(int a, int b) { int sum; sum=a+b; return sum; } int sub(int a, int b) { int sub; sub=a-b; return sub; } int mul(int a, int b) { int mul; mul=a*b; return mul; } float div(float a, float b) { float div; if (b==0) { return 0; … | |
HI there, I am a total newbee and looking for someone who has time to give me some extra python lessons. For my pre-master I need to wrap up this course. There is a small amount of compensation available. I live in Amsterdam (NL). Please let me know on short … | |
hello daniweb please I woiuld like help on how to convert rss feeds to datagrid in this fomat <Row> <Cell><Data ss:Type="String">Symbol</Data></Cell> <Cell><Data ss:Type="String">Close</Data></Cell> <Cell><Data ss:Type="String">Prev</Data></Cell> <Cell><Data ss:Type="String">Chg</Data></Cell> <Cell><Data ss:Type="String">% Chg</Data></Cell> <Cell><Data ss:Type="String">Open</Data></Cell> <Cell><Data ss:Type="String">High</Data></Cell> <Cell><Data ss:Type="String">Low</Data></Cell> <Cell><Data ss:Type="String">Avg</Data></Cell> <Cell><Data ss:Type="String">Deals</Data></Cell> <Cell><Data ss:Type="String">Vol</Data></Cell> <Cell><Data ss:Type="String">Value</Data></Cell> </Row> <Row> <Cell><Data ss:Type="String">7UP</Data></Cell> <Cell><Data ss:Type="Number">41.75</Data></Cell> … | |
I'm about to graduate and I've been applying for jobs. I know some basic programming languages and I asked the guy that I'm going to interview with on Tuesday if there is any specific language or program I should review. He said .Net I know nothing about this particular language. … | |
the web app is a simple calculator that adds and subtracts. my problem is that the add and the subtract buttons don't work i get an error message: "An error occurred at line: 19 in the jsp file: /adder.jsp Invalid character constant" <% String name = (String) session.getAttribute("name"); if (name==null) … | |
Hi friends, I have a site, where I want to limit the number of pages being viewed. example: 1 | 2 | 3 | 4 | 5 | 5 | 7 | 8 | 9 | 10 | 11 want to reduce this to: 1 | 2 | 3 | … | |
Hello, i have a problem with displaying a picture. Picture is stored in database as mediumblob. Storing pictures in database is going ok, since i can see them in phpmyadmin. Problem is, i can't see them in browser. THe code im using for this is here: login.php --lots of code … | |
I am getting an error fors x in the polynomial expression.If i put my cursor it says Expected:a';' Code blocks are created by indenting at least 4 spaces ... and can span multiple lines #include<stdio.h> #include<stdlib.h> int main(void) { double x=2.55; double polynomial=3x^3-5x^2+6; printf("The value of polynomial is %lf\n",polynomial); system("pause"); … | |
Im making this program that reads in a java file and creates a new file with a formatted version of the file. Basically every place there is a { open braces, I want to add 4 spaces to each lines after that etc.. Here is what I have so far.. … | |
I am importing some C code into a C++ compiler, specifically Borland C++ Builder 5. I seem to have a problem with this style of code: // A structure that contain's itself typedef struct AnObject AnObject; struct AnObject { AnObject *Object; }; // A global structure to store a pointer … | |
I am having the following issues setting up php probid on my virtual dedicated server. I have virtual dedictaed server at godaddy.com. It has paralles plesk 10.4.4 and Cent OS 5. Iam having the following isses 1. I cannot get the database to work correctly. I am getting access denied … | |
I bought a copy of php probid. Everything on it looks ok. I have looked at other sites using it and obviously they got it to work, I have installed it on my local host for testing. I am using xampp 1.7.1 becuase the script require gd library and zend … | |
Hello all daniwebbers. I've been working on an application that uses TCP to send messages to another computer, but I am going to be updating it alot! I know how to make my program update itself, but I just want a progress bar so you know how long it will … | |
So how would I click on a submit button with the HTML element being: <input src="/images/members/submit_button.png?1331667296" type="image"> | |
I have been messing with this for 2 days now and for some reason my image will not show up. I have tried to move the code around to varying locations just to see if I am just placing it in the wrong area but nothing seems to work. /* … | |
There's something wrong with the curly brace's can anyone see where please. //****************************************************************************************** //Header file for LinkedList.cpp. //****************************************************************************************** #ifndef LINKEDLIST_H #define LINKEDLIST_H //****************************************************************************************** //Declaring templates for classes. //****************************************************************************************** template<class Datatype> class LinkedListNode; template<class Datatype> class LinkedList; template<class Datatype> class LinkedListIterator; //****************************************************************************************** //Class: LinkedListNode. //Description: This is a class for the … | |
Write a C++ program that asks the user to enter an integer n followed by n numbers. The program will use 2 stacks to enter the numbers entered by the user. In every iteration the program will balance the total of the numbers stored in every stack. For example, if … | |
Hi, I have a problem when trying to compile a program in C++ on linux using g++. **smurfVillage.h** #ifndef smurfVillage_H #define smurfVillage_H class Creature { private: char gender; int age; char species; public: Creature(); //parameterless default constructor Creature(char,int,char); ~Creature(); char getGender(); int getAge(); char getSpecies(); char setGender(char); int setAge(int); char … | |
I am a CS1 student and have had no issues until this point in the class really. I have been working on this for awhile now and cannot figure out how to get this to work! I am supposed to use this code and modify it to #1 - open … | |
Hi I am have to enter marks of 50 students through a single page <table border="1"> <tr><td height="50">UserID </td><td>Name</td><td>Marks </td></tr> <?php include('db_connect.php'); $bname=$_POST['bname']; $res = mysql_query("SELECT * FROM user WHERE batch='$bname'"); while($data = mysql_fetch_array($res)) { $uname=$data['uname']; $uid=$data['uid']; echo "<tr><td>$uid </td><td>$uname</td> <td> <input type='text' size=3 name='$uname'></td></tr>"; } echo "<tr><td colspan='2'><input type='hidden' … ![]() | |
Hi All, Very new to web design and PHP, but I seem to be learning along the way. I am building a HGV Drivers website for a friend of mine for his business. On the homepage I have managed to echo text for my 'Latest News' section. I would like … | |
![]() | I am using Code::Blocks as my IDE and I am creating a text based game (Not very complex as I am just starting out with c++). As I proceed through this project I have found it more orderly to have multiple cpp files within a folder that relate(like two cpp … ![]() |
Hey guys, So I'm trying to make a website in php. I'm just wondering, when I click on a link is there any way for the text of the link to be put into a variable. Basically the user will select the name of a database(which is a hyperlink to … | |
I am in an Intro to Computing class and I have been doing fairly well but this program really has me stumped. This is our assignment: The program will take as input a worker’s first name, last name, ID number (four digit number), and unit production numbers for the last … | |
hello everyone i have a large text file (about 5 GB) and with a program i should edit it with given information by user. when i use ordinary c++ functions related to files, it gives me error for that large file, however it works properly for a small text file. … | |
I'm making my own website and from the website you can download some of my c++ games. on the website i have this code that writes in to a .txt file some info from the visiter like: ip, os , browser and what site did he/she visit. so ok i … | |
When i use this code from another class (I'll post the client if necessary, but in the interest of making a short post:) I get an ArrayStoreException from line 31. As I see it: the array is of runtime-type V, the item that should be added to the array should … | |
1st class public class Student { private String name; private double id, examMark, courseMark, totalMark,grade; Student(String name,double id,double examMark,double courseMark){ this.name=name; this.id=id; this.examMark=examMark; this.courseMark=courseMark; this.totalMark=getMark(getExammark(),getCoursemark()); this.grade=grade; } public String getName()// to return name of student { return name; } public double getID()//to return id of the student { return id; … | |
Im having a lot of trouble figuring out whta's wrong in my code... it compiles and everything but every time I try to run the program it crashes before even starting and displays the following message: Debug Assertion Failed! Program: c:\CIS 278\MyString\Debug\MyString.exe File: f:\\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp Line: 52 Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) For information.......... … |
The End.