199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for accra

Am having a hard time printing all record percent in my db my sql statement [CODE]$query="SELECT *, duedate,(TO_DAYS(duedate) - TO_DAYS(CurDate())) as difference FROM vehicle_info ORDER by svreg"; //$query="SELECT * FROM vehicle_info WHERE id='$id' ORDER by vreg"; $pager = new PS_Pagination($conn,$query,10,10); $accra = $pager->paginate(); while($row = mysql_fetch_assoc($accra)) { $id = $row['id']; …

Member Avatar for pritaeas
0
118
Member Avatar for jpsider

Hi all, I'm working on a school project and I am running into a problem, possibly more... This is my first post, so I am sorry if it ends up ugly. Here is a description of the project: This project focuses on demonstrating your understanding of classes and objects. Before …

Member Avatar for Philippe.Lahaie
0
9K
Member Avatar for trickist17

Hello, I have a problem with the response text of an ajax request. I want to use the answer of the php script ("true" or "false") to do different things with a if-condition, but it always takes the false option. Here is the code. [CODE] var hr = new XMLHttpRequest(); …

Member Avatar for AleMonteiro
0
1K
Member Avatar for im abcd

So i wanted to build a program in which scientific sums are solved along with the steps .I tried but i failed . Here is the code ~ [CODE]#include <iostream> #include <cstdlib> #include <windows.h> #include <conio.h> using namespace std; int main(){ int reply; int u ,v ,t; int a = …

Member Avatar for im abcd
0
266
Member Avatar for rushikesh jadha

i want create jar file of my source code using netbean but i dont know how to do that please help!

Member Avatar for stultuske
0
83
Member Avatar for accra

[ICODE]Is there a way to expand and collapse included PHP content? Any code examples pls. [/ICODE]

Member Avatar for pritaeas
0
74
Member Avatar for shann1718

hello im working with vb 2010 and ms access as data base, just newbie.im trying to save the loged out date and time to my access table by selecting from tblloghist wherein my column SystemUserID is equal to my textbox SysID(located at my form) then it will save the timelogedout …

Member Avatar for Phasma
0
161
Member Avatar for JavaPrograms

shell-scripting @ DaniWeb - Hello fellow members, I would like to ask for your assistance in creating a batch/autorun/exe file which can help me to make an autorun usb. So basically, I would like the USB to do the following: When usb is inserted, it should autorun and copy files …

Member Avatar for technoknol
0
798
Member Avatar for UndoRejected

hi all I need help plzzzzzzzzzzzzzzzz my project uses asp.net and sql database I use treeview to insert and retrieve hierarchical data from the database I used the following code the problem is when I added the code for the retrieval the insertion has a problem where I can't add …

0
190
Member Avatar for mayankshri

Hi i am open a excel file and it automatically open first two cell A1,B2 in two text boxes. now i want how to open different cells in different click of button. i am using this code- [CODE] OpenFileDialog openexcel = new OpenFileDialog(); openexcel.Title = "Mayank"; openexcel.InitialDirectory = @"c:\"; openexcel.RestoreDirectory …

Member Avatar for thines01
0
181
Member Avatar for sharksaw40

I am learning directx from [URL="http://www.directxtutorial.com"]directxtutorial.com[/URL] and when I have compiled one of the samples and run it then close it I get an error message saying "Unhandled exception at 0x010a1883 in test.exe: 0xC0000005: Access violation reading location 0x00000000.". What does this mean? I have checked that I have typed …

0
147
Member Avatar for Desi991

[B]MASM Assembly[/B] [CODE] TITLE Palindrome Checker (main.asm) 002 003 ; 004 ; 005 ; 006 007 INCLUDE Irvine32.inc 008 START = 128 009 010 .data 011 strPrompt BYTE "Please enter a string of Integers: ",0 012 strMsg BYTE "Original String of Integers: ",0;dh, 0ah 013 revMsg BYTE "Reversed String: ",0 …

0
100
Member Avatar for magicmarkuk

Hello I wonder if anyone could help me with the following please? I have scratched my head and played around but not been able to move forward. I am creating a script to redirect a user to a random link on my site. The first part of the code extracts …

Member Avatar for simplypixie
0
158
Member Avatar for uvray90

Hello Friends...:) I am a part time web designer and small time PhP developer by side. I recently got a request from one of my clients that he needs a site in which he is offering some service( some spiritual advice kind of stuff based upon your date of birth …

Member Avatar for RazorRamon
0
184
Member Avatar for pjh-10

need help for this small Q here, just hoping someone could write out a full c++ programme for the problem, with comments wherever nessecary, thanks! Write a function to evaluate eX , using a series approximation (see below). Compare the output of your function with the library function exp(x). How …

Member Avatar for pjh-10
0
96
Member Avatar for badboy11

Need help with implementing a pure abstract class via inheritance, using namespace to wrap all my classes to avoid conflict with others. I have been able to build and run the code successfully if I remove namespace wrapper from my abstract class and all classes that inherit from my pure …

Member Avatar for badboy11
0
257
Member Avatar for ilovejava

I had to make a arrayList and i do not know why is it not working [CODE]public class ArrayList<E> { private E[] theArray; private int size; private int capacity; public ArrayList(int initialCapacity) { this.size = 10; this.capacity = initialCapacity; theArray = (E[]) new Object[initialCapacity]; } public ArrayList() { this(1024); } …

Member Avatar for ilovejava
0
207
Member Avatar for Jay22

Hi, This my first time asking for help for my C++ programming class but recently my teacher gave us an assignment that got me so confused. I don't understand what to do. My assignment is due Wed, Feb 8, 2012 and my C++ programming book is expected to arrive Friday. …

Member Avatar for Jay22
0
98
Member Avatar for capton

Please i want to set sessions in my php file which includes a form but the session doesn't work.This is my code sample. I need help please! [CODE=php] <?php $conn=mysql_connect("localhost","root",""); mysql_select_db("my_db"); session_start(); if(isset($_SESSION['count'])) $_SESSION['count']=$_SESSION['count']+1; else $_SESSION['count']=1; if(!($_SESSION['count']=$_POST['reg'])) die("SESSION NOT SET SUCCESSFULLY!"); else echo "SESSION SUCCESSFUL!"; ?> <html><head></head><body> <form method="POST" action="<?php …

Member Avatar for capton
0
164
Member Avatar for lxXTaCoXxl

I have a homework assignment due this week and am fairly new to C++. Don't have a book so I can't really go on anything other than the video material and power point slides my teacher provides. I have 98% of the assignment done, however I'm encountering logic problems. I'm …

Member Avatar for lxXTaCoXxl
0
107
Member Avatar for Gonzo14

I'm trying to preform a loop, using a combination of a if/else and while loops. I set a boolean "repeat1" to true, to enter the while loop. Then when I went the user to pick to repeat or move on, they enter a Y or N, if Y, keep repeat1=true, …

Member Avatar for Gonzo14
0
164
Member Avatar for rapidwein

<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="Raphael.js"></script> <script type="text/javascript"> <?php include("class.logger.php"); //path to class.logger.php file $log = new logger(); //Instentiate the class $log->dbconnect(); //connect to database //pass the name of the table as the parameter. I.e. 'logger" $log->createtable('logger'); //set date and year text for the info bubble that appears …

Member Avatar for broj1
0
227
Member Avatar for steven8579

I have an array where of integers that has to be sorted and inserted into the correct place in the array for each number, not just at the end. All of this is done in the add method. This is what i have so far. [CODE]package sortedintlist; public class SortedIntList …

Member Avatar for JamesCherrill
0
382
Member Avatar for DelphiGuy

Heya guys, basically here is some code for a simple example program: [CODE] unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) img1: TImage; procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; …

Member Avatar for DelphiGuy
0
2K
Member Avatar for PixelatedKarma

Hey guys and gals not quite sure if this is where I should put this, I'm running into a really weird problem that I have yet to encounter...atleast until now. I am using Microsoft Visual C++ and playing with a little toy project using windows forms. Anyways I have an …

Member Avatar for PixelatedKarma
0
1K
Member Avatar for annitaz

I need to write a program in QT4 that converts the value entered by the user to Celsius or to Fahrenheit The temperatue.cpp: I need to write a program that converts celcius to fahrenheit and vice versa the temperature.cpp is: #include "temperature.h" //constructor Temperature::Temperature() { //{initializes and places widgets using …

Member Avatar for deceptikon
0
269
Member Avatar for androidf

I need to have a update button to update a edited textfield and save it to the database. I have created the button but have no idea on how to make it update the edited textfield and update the SQL database automatically. Pls help!!): This is my code: [CODE]private JButton …

Member Avatar for androidf
0
1K
Member Avatar for Surfsup

I have a very simple script (below) that works fine when sending email to a single email address, however when I add another (as I have in the script below) by seperating with a comma, the script just sends the email to one of the addresses twice and not to …

Member Avatar for NinjaMediaD
0
2K
Member Avatar for Akay2

Well i have a little problem here is the code [CODE] using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Media; namespace RockRaidersRecreation { /// Manager for Drawing Verts public class WallDrawManager : DrawableGameComponent { Texture2D wallTexture; BasicEffect basicEffect; Vector3 …

0
202
Member Avatar for Arjun_Sarankulu

I was succesful in reading csv file and writing to txt file But am facing problem while writing to database. Can any one help me for the same Thanks for your support

Member Avatar for Cameronsmith63
0
673
Member Avatar for sagar2dumbre

Hello i am developing a web app in JSP as front end and ms-access as back end..i hv login.jsp which contains username & password which will be validated in access database upon success user.jsp will be shown..i hv been done with jsp page design..but don't know abt database connectivity..can any1 …

Member Avatar for sagar2dumbre
0
1K
Member Avatar for Q8iEnG

Dear all, I'm learning now about Android app development. I feel really good at it, thanks to thenewboston tutorials over youtube. I got a question, How do I change a pdf file to an app? I looked all over the internet and all what I got is several websites with …

Member Avatar for Q8iEnG
0
138
Member Avatar for jatinkhandelwal

if would like to print the size of data type entered by user. how can i do so (without using case and if) is it possible to store the data type in a string and print the size of data type in that string???

Member Avatar for Ancient Dragon
0
124
Member Avatar for arden_k

Hi All, I'm getting the following "Undefined type: ArrayList" for the following line of code "<jsp:useBean id="students" type="ArrayList<beans.UserBean>" scope="session" />" Could someone tell me what I did / didn't do the get this error and what I have to do to resolve it. Many thanks, AK

Member Avatar for arden_k
0
335
Member Avatar for Mve83

hi please can someone help? I have designed an applicant form that posts data to session variables then at the end of the application it puts all session variables in an array. I then have a template.rtf file which I copy and rename to $_session['last name']_timestamp.rtf I then open for …

Member Avatar for diafol
0
548
Member Avatar for modesto916

Hi everybody, I am learning C at the University, and I want to study by myself to avoid difficulties there, I am doing some exercises from a pdf that I got, and it asks me to write a program to invert a string using only what was explained in the …

Member Avatar for modesto916
0
166
Member Avatar for vindom

Hi every1! Thats my code that used to work before I've added some attributes to my items. [CODE]void manager::EditStockItem() { ListStock(); { string z; bool found; cout<< endl<<"<===================================================>"<<endl<<endl; cout << "Enter ID of the Stock Item you want to edit" << endl<<endl; cin>>z; found = false; vector <Item*>::iterator iter = …

Member Avatar for vindom
0
250
Member Avatar for Queen Lala

import java.awt.*; import javax.swing.*; /*<applet code="SampleApplet1",200,300> */ public class SampleApplet1 extends JApplet { int num; public void init() { num=20; } public void paint(Graphics g) { g.drawString("Hello to Applets.Session"+num,70,80); g.showStatus(getAppletInfo); } public int getAppletInfo()//Overrides super class method { return("Created by PTSS"); } public static void main(String arg[]) { SampleApplet1 obj= …

Member Avatar for rushikesh jadha
0
166
Member Avatar for Quinncunx

For a school project I need to make a timer with a bell sound that sounds every 60 seconds in VB, I cannot work out how to make the bell sound on the 60th second, I am not getting any errors in the VB console, so I assume that I …

Member Avatar for M.Waqas Aslam
0
156
Member Avatar for 03hasnam

i am getting lots of error like this for all form inputs. i am trying to use javabeans and jsp where a jsp will be responsible for outputting the final information (cost of booking and bookingreference). The servlet needs to pass control to this JSP. this is the error which …

Member Avatar for 03hasnam
0
221
Member Avatar for mehnihma

Can you help me with one problem, I dont know how to invoke action op menu not the menu item? I have File and Help menus and I need to invoke action when the Help menu is pressed but dont understand how, I know how to do in on MenuItem …

Member Avatar for DavidKroukamp
0
1K
Member Avatar for Torf

File, new project, Java+Java application, Project name just a random name, finish. Then.. new file, Java+Java class, Class name payroll, finish.. [code] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication5; /** * * @author computer public class …

Member Avatar for JamesCherrill
0
967
Member Avatar for bettybarnes

Unable to cast object of type 'System.Byte[]' to type 'System.Drawing.Image'. hi i got this error message [CODE] Private Sub DataGridView1_RowHeaderMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseDoubleClick 'DataGridView1.DataSource = bs Dim i As Integer i = DataGridView1.CurrentRow.Index txtConID.Text = DataGridView1.Item(0, i).Value txtLname.Text = DataGridView1.Item(1, i).Value [COLOR="Red"]PictureBox1.Image = DataGridView1.Item(2, …

Member Avatar for rmeshack2012
0
1K
Member Avatar for suavedesign

I am not a javascript coder, but I wanted to make pop windows on my webpage, without a separate window. I followed the instructions I found here:[URL="http://www.pat-burt.com/web-development/how-to-do-a-css-popup-without-opening-a-new-window/"]http://www.pat-burt.com/web-development/how-to-do-a-css-popup-without-opening-a-new-window/[/URL] It worked well. However, I want to make more than one popup on my webpage- I have thumbnail images that I want to …

Member Avatar for stultuske
0
178
Member Avatar for Ich bin würdig

Hi guys ! I've made a program that marks a seat taken X in an airplane .. So, here's what I've done.. it runs , but when i try to input other seat code, i.e., 1G, the no.2 in the grid becomes 88.. and I don't know how did that …

Member Avatar for zeroliken
0
117
Member Avatar for androidf

Hi, I need to create an html page to export some information. Currently, by using java, i've exported information to excel. But now, I need to export the information in HTML page using java.Is there any APIs I can use? Thanks.

Member Avatar for JamesCherrill
0
1K
Member Avatar for ankur3000

I am pretty new in android application development and I am trying to get on of the rows from a SQLite db to show up as a Listactivity, but this is not working and the program terminates unexpectedly. Here is the code: [CODE]package ankur.test.app; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; …

0
133
Member Avatar for chillysnow

Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not …

Member Avatar for peter_budo
0
186
Member Avatar for tomexlfc

Hello everyone, Please can someone help me to debug this error? It has been giving me a huge headache since last night. Anytime I try to add new record into my database, this error message keeps coming up: "Error: INSERT INTO Customer(Cust_ID, Name, Address, Username, Password) VALUE(?,?,?,?,?,?)". I don't know …

Member Avatar for artemix22
0
526
Member Avatar for chazzkat

Hi everybody! I am pretty close to finishing this program. It is supposed to calculate a person's energy use based on their past and current bill. I am stuck on the calculations and else/if statements. Thanks in advance for any feedback. [code]package craft_week4; //Import scanner library import java.util.Scanner; //Begin Class …

Member Avatar for peter_budo
0
113

The End.