64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LRNPHP

Hi There, I have 2 tables, one with dst codes and one with fees. I want to match the fees with the dst code. I've been trying a for loop but it's not working 100%. What is the best way of matching dst code with the corresponding fee? If TABLE …

Member Avatar for LRNPHP
0
163
Member Avatar for petrakid

I have a large text string which is queried from a database. It can be several thousand words long. As of right now, when the search is run, it pulls all of the text and then prints the first 150 characters: [code] echo '<span class="line3">'. strip_tags(truncateText($sermontext, 150)) .'</span>'; [/code] The …

Member Avatar for petrakid
0
145
Member Avatar for DarkBerzerk

i have table in the database for login system [CODE]CREATE TABLE users ( username varchar(30) primary key, password varchar(32), userid varchar(32), userlevel tinyint(1) unsigned not null, email varchar(50), timestamp int(11) unsigned not null ); [/CODE] already have cart for things that doesnt need shipping, but its with JavaScript, [url]http://lasthunter.freehostia.com/rated-online/conf_files/js/simpleCart.js[/url] but …

0
277
Member Avatar for DarkBerzerk

i need simple shopping cart (without shipping fee and those things) but with/without cPanel and registration form with MySQL to save members data, any suggestions? :D

Member Avatar for DarkBerzerk
0
115
Member Avatar for gedas

hi guy, i am trying to create a text wrapping method soemthing like this [CODE] public void textwrap( String text, int width){ } [/CODE] what i need it to do is to print the text in a column of specified width. for example a user set width to 20, what …

Member Avatar for Zaad
0
227
Member Avatar for Lipe Shtogu

Hello to everyone i have a problem with my project. in one form i have 2 textboxes in one i have displayed the serial number. in the second i want display the current user logged on software. how can i display the current user logged in ????? the code for …

Member Avatar for Lipe Shtogu
0
139
Member Avatar for mehmedean

Let's think about a small program that has a form and two panels. There is a menu strip at the top and under the "File" menu there are 2 options: "New Form" and "Admin" (and "Quit"). There are 60 fields in different groupboxes in panel1 (a detailed registration form). A …

Member Avatar for mehmedean
0
1K
Member Avatar for turt2live

Hello, I am making an online gallery for a friend and have this (partially listed) folder structure. root/index.php root/inc/gallery.inc.php root/inc/setup.inc.php root/inc/includes.inc.php Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what …

Member Avatar for turt2live
0
304
Member Avatar for coroll

Hi all, I have a windows apllication project. Last night i saved it. Today i opened it and started to work with it by adding new methods and etc. then i compiled and ran. But it does the previous things not the new ones. Always last night version runs. PLZZZ..help …

Member Avatar for coroll
0
83
Member Avatar for Kyren5058

Hi there, right now my teacher wants me to make an outline of a half-diamond with numbers, using for loops, kind of like the following: [code] 1 2 3 4 5 4 3 2 1[/code] The number 5 is a user input, so the half-diamond's width would be controlled by …

Member Avatar for cherrymae.calma
0
282
Member Avatar for walid86

hi there, i'm creating an app in C# which allows users to select an image by double clicking the "pictureBox1", from there it selects the image, creates a new Graphics object and passes the Bitmap to it. Once the picture has been loaded the user should be able to move …

Member Avatar for walid86
0
1K
Member Avatar for Vaikkundhnaair

Hi there, Im working on a web database application and Im encountering problems to connect the database and the ASP.net page. The database is being detected but not the tables inside the database. Could anybody help me?

Member Avatar for Vaikkundhnaair
0
105
Member Avatar for existinglady

This is our new and revised program... for the registration: I thank all of those people who helped me. for the search function: so I've manage to, actually my teammate managed to get a search function working for edit function: we havent figured it out on what methods are gonna …

Member Avatar for existinglady
0
2K
Member Avatar for monkeybut

IT currently is set up for base 3, but should be able to make a couple of minor changes and convert to any base, thanks and hope it helps someone out. [code]#include <iostream> #include <cmath> #include <fstream> using namespace std; void convert_base(int v, int b); ifstream inputdata; ofstream outputdata; int …

Member Avatar for mike_2000_17
1
530
Member Avatar for Anil2447

Here is the codes for Binary Search and Linear Search. [B]Binary Search[/B] [CODE] #include<stdio.h> int main(){ int a[10],i,n,m,c=0,l,u,mid,j,x; //variable assigning printf("Enter the size of an array->"); //Entering the size of the array scanf("%d",&n); printf("\nEnter the elements of the array->");//Entering the array elements for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++) { //loop to sort …

0
116
Member Avatar for guccimane

I wrote a program that opens a file using the command line (cmd), calculates a bunch of numbers, then outputs the results to another file. The program works fine, but when I tried to alter my code using classes, all of a sudden the program is not fine. Here is …

Member Avatar for guccimane
0
948
Member Avatar for jovillanuev

Guys, I have 2 tables. My objective is to get the information from Table1 and place it to table2. the 2 tables have the same Itemnumber and DefectCode. How could make this in correct scripts cause when i make the script it triple the records. [CODE] TABLE1 ItemNumber---------Price---PO-------Code-Qty P300-1710-DROID-U--302.05--9100962--506--1 P300-1710-DROID-U--302.05--9100962--553--4 …

Member Avatar for moone009
0
112
Member Avatar for NexG

import java.util.Scanner; public class fibonacci{ public static void main(String[] args){ int n=0; int fib = n+1; Scanner X=new Scanner(System.in); System.out.print("Enter # of the term: "); n = X.nextInt(); for (int i=3; i<=n; i++) { i = i-1 + i-2; } System.out.print("Term is: "+n); } } I know the algorithm is …

Member Avatar for NexG
0
157
Member Avatar for thomas.edison

Hello, I know this kind of questions sound silly most of the times, but still I need to ask it. I am planning to get a web application done, for my business usage; it should be able to handle a huge DB scenario ( think of retailers DB ), support …

Member Avatar for thomas.edison
0
202
Member Avatar for ceyezumma

Hello: TABLE NAMES : /////////////////////////////////////////: : TABLE NAMES : 10.6.2.1 - (999685): : TABLE NAMES : Apache Derby: : TABLE NAMES : Apache Derby Embedded JDBC Driver: : TABLE NAMES : 10.6.2.1 - (999685): : TABLE NAMES : /////////////////////////////////////////: : Hello I have a problem understanding why my Prepared Statement …

Member Avatar for masijade
0
368
Member Avatar for JoshuaBurleson

I hate to complain, but I'm not terribly impressed at the documentation for utilizing binding, it covers quite a bit but not common stuff, or maybe I'm just missing it. I was wondering how I could make the <RETURN> key equivalent to a <BUTTON1> click when a button is highlighted …

Member Avatar for TrustyTony
0
370
Member Avatar for jonoman

Hi, I want to create a function to test the first character of a string to see if it is lower or upper case, and change it accordingly. However, the rest of the string has to stay the same. Dim S As String = "C:\Users\profile" should be returned as "c:\Users\profile" …

Member Avatar for jonoman
0
93
Member Avatar for ntrncx

how i can pass inside a vector an array? i know how to do it without classes but i don't know how to do it with constructor. i try to create a 2nd constructor that takes array of integers and the size of array and initialize a vector. header [CODE]#ifndef …

Member Avatar for ntrncx
0
147
Member Avatar for anand01

Hi all, To do OCJP certification what are the things should I learn . Pls suggest some good tutorials Thanks in advance

Member Avatar for anand01
0
97
Member Avatar for Who me?

How can I use a variable to create another variable so that the output is not the content of the new variable but the php code for the new variable? For example: If variable $a = "house" and the name of the final variable is $b, then how do I …

Member Avatar for Who me?
0
163
Member Avatar for stoopkid

My table has 4 types of "r1": 'Standard', 'HD', 'HD + DVR', 'None' There are 3 types of "status": 'NTC', 'Repair', 'In Progress' All I am trying to do is retrieve all of the rows where r1 = 'Standard' and matches all three of the "status": [code] SELECT * FROM …

Member Avatar for smantscheff
0
112
Member Avatar for GeoBob

I want to create a function or a class method that will create a dictionary named by a variable that is passed in. By way of example, I'm creating a class method to read data from a table (in this case it's an ArcGIS table, but that's not critical) and …

Member Avatar for JoshuaBurleson
0
435
Member Avatar for monkeybut

I am having trouble figuring out how to convert base 10 to base 3, I have tried several different attempts and this is my latest effort, anyone have any ideas. I was giving this algorithm but am having trouble creating a function for it: [B] 1. Set k to the …

Member Avatar for monkeybut
0
4K
Member Avatar for fredfletcher

Hello, I'd really like some help on this. How can I add the server's root folder of "english" to this: [B]~ s/_e\.shtml/_f\.shtml/ [/B] This searches all occurences of [B]_e.shtml[/B] and replaces them with [B]_f.shtml[/B] (it being in the same folder). Yet, in between that, I would like to add the …

Member Avatar for fredfletcher
0
124
Member Avatar for anders10

Hello! I have a problem in trying to convert a string into an integer. I'm not supposed to use the routine atoi, ie I have to do it on my own. Here is the code; [CODE] .data String: .asciz "1234\n" Show_integer: .asciz "The integer = %d\n" Intg: .long 0 .text …

Member Avatar for anders10
0
3K
Member Avatar for JoshuaBurleson

I was just wondering if anybody has any ideas on how I could allow a users input to be disguised on the screen when they're entering their passwords (such as the case about everywhere on the internet) i.e. gmail's black dots in place of the actual text of a password. …

Member Avatar for Gribouillis
0
352
Member Avatar for Jake.20

Guys, i have problem in my search button after i search the name it didn't highlight the name of the person. this is the code that i found on the internet. [CODE]Dim searchName As New TextBox Dim sname As String sname = InputBox("Search for gym user." & searchName.Text) Dim foundItem …

Member Avatar for LuckyBhumkar
0
205
Member Avatar for HelpStudents

If I have a vector of structs [CODE] struct widgets { string widgetName; int age; int color; }; [/CODE] and widgetName had multiple words in lets say widget one type 45 blue widget two 34 yellow widget eight 46 green widget ten type 33 pink and I wanted to search …

Member Avatar for arunp_eagle
0
152
Member Avatar for Oneryavuz

i have a reminder section in program and I want to see some icon when 2 days before to remind so i need to sort dates and i need to measure the time interval :) how can i do this thx for Answers :)

Member Avatar for Oneryavuz
0
64
Member Avatar for Bob1000

okay so ive finished this code but now i have to modify it so that it uses the following lines of code to make the program "easier" to understand private static void writeText(BillboardInterface billboard, int x, int y, String text) private static void writeLetter(BillboardInterface billboard, int x, int y, char …

Member Avatar for stevanity
0
128
Member Avatar for gganeriwal

Hi, I have positioned my images in PHP. Now what I am looking to do is add some animations: 1. try to drag a image from the mouse on the page 2. make the image dissapear and a new image in the same location after say 15sec 3. give the …

Member Avatar for limohire
0
711
Member Avatar for maydhyam

[B]Good Morning, I have a CSV file with thousands of rows of data, and I want to have this data uploaded into a table in a MySQL database. I also want an area where the file could be selected from the computer for the data to be uploaded. Could this …

Member Avatar for shailendra2614
0
534
Member Avatar for abhi10kumar

I am sending mail after a user enter his/her email. In email message there is link which will be opened by user. The anchor tag is working fine in Gmail but not in Yahoo Mail/Indiatimes Mail. Here is the code block: [CODE] { $emailurl="3gmobile.co.in/phone_details.php?id=".$_REQUEST['id']."&model=".$_REQUEST['model']."&redirect=1"; $headers = "From: Donotreply@domain.co.in\r\n"; $headers .= …

0
86
Member Avatar for HelpStudents

I am running into an issue trying to use an iterator to print. I am trying to print the widget name and widget type from a class and am getting an error on the iterator part. The rest of the code works fine but any comments on that are more …

Member Avatar for tajendra
0
114
Member Avatar for Ehtesham Siddiq

Hi, My application is in VS2008 coded in Vb.net.I have a datagridview which is populated from Database.I have a save button on the same form that has DatagridView. My requirement is i want that all the records that are populated in DatagridView should be saved in a certain table of …

Member Avatar for Ehtesham Siddiq
0
325
Member Avatar for rotten69

Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, …

Member Avatar for hericles
0
107
Member Avatar for berwick53

I'm currently trying to split a string into a 2d array. currently I've split it into a 1d array of each line using: [CODE]string[] LinesFile = streamReader.ReadToEnd().Split('\n');[/CODE] And now I'd like to Split it further into a new variable with a 2d array. how would I go about doing this. …

Member Avatar for manugm_1987
0
143
Member Avatar for Jared1337

I'm having trouble getting this program to work for roman numeral conversion. I hope it says that i have one error, which is C2110: cannot add two pointers. here's what i have so far... ANY help would be great, thanks a bunch! :) [CODE]#include <iostream> using namespace std; int main() …

Member Avatar for raptr_dflo
0
4K
Member Avatar for jper

so im basically new at c++. i need to generate 20 entries randomly from 1-20, and each number must be unique. i was able to generate the number but i don't know how to make them unique. any suggestions?[CODE]#include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int …

Member Avatar for jper
0
500
Member Avatar for behemothdave

Okay I am working on arrays in class this week and since it is an online course I don't have anyone to turn to. YAY me! Basically this is what I have been asked to do. [I]Create a class named TVShow.java. Data Fields can include a String containing the Name …

Member Avatar for behemothdave
0
249
Member Avatar for kalz

Hi I have a class which I have packed as a jar file.When I run the jar on its own the application executes as expected.I have got a JFrame(Main) which has a button which when clicked, fires off the jar. But the JasperViewer doesnt launch at the end unless the …

Member Avatar for NormR1
0
288
Member Avatar for mullerfourie

Hi, I need to finish a assignment on operator overloading but this one piece of code doesnt seem to make sense.. in my int main() i have int main() { Element a, b(5), c(7), d; cout << (5+b) << endl; this is just part of it, I have already implemented …

Member Avatar for mullerfourie
0
215
Member Avatar for kunnu

Hello, I want to make a Nokia S40 Software for my personal use. But I don't know which is the best tool for making this software. I can't find any tutorial on this on Daniweb forum, please help me and suggest me simple Mobile Dev tool.

Member Avatar for Drycola
0
496
Member Avatar for shivya jain

hello, I want to link a text file in my userform. [B]Can i use linklabel for hyperlink?[/B] please help me........... thanks in advance.:confused:

Member Avatar for Unhnd_Exception
0
280
Member Avatar for milil

Hello friends i am new on DaniWeb and new in Python... I have a few problems so i need help... I have a text document with a code from some web page, how can i extract some string between a two different strings in line and then that stings write …

Member Avatar for milil
0
194

The End.