199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lebo.bytes

Hi, I would like to be helped with automating my application. I work in an environment where we receive a high number of files daily. I am given a task to read a file extract strings and compare them with data in mysql database. I use visual studio 2010. Here's …

Member Avatar for Reverend Jim
0
214
Member Avatar for student_2012

De Morgan’s Laws. We have discussed the logical operators &&, ||, ^ and !. De Morgan’s Laws can sometimes make it more convenient for us to express a logical expression. These laws state that the expression !(condition1 && condition2) is logically equivalent to the expression (!condition1 || !condition2). Also, the …

Member Avatar for NormR1
0
429
Member Avatar for garyjohnson

I have gotten a php file where users can create their own user ids and login and out with them and it saves their name in mysql, now i want these users to be able to upload small videos, can someone please tell me a php code for how a …

Member Avatar for diafol
0
386
Member Avatar for pocix

i need help with building the controller by using MVC pattern view 1 import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class BankView { JFrame frame; JPanel one, two; BankSaving saving = new BankSaving(); BankCurrent current = new BankCurrent(); BankView(){ frame = new JFrame(); one = new JPanel(); JButton b1 = …

Member Avatar for pocix
0
457
Member Avatar for ryantroop

I have taken up the Python Challenge and I am stuck on challenge 6, which requires PIL - and sadly I am using 3.2 and there is no PIL support. Yes, alternatively I could simply download 2.7. However, I know there are some differences between 2.x and 3.x and I …

Member Avatar for ryantroop
0
162
Member Avatar for GTTravis

hi guys, i want to create a database driven panel, that is whenever the page loads how much ever entries in the database thats the amount of panels which must be created. any suggestions....tutorials would be welcomed i also would like to have each panel have the ajax collapsible extender …

Member Avatar for GTTravis
0
96
Member Avatar for hcbckwidpeace93

String Name; While(Name== "Himanshu" || "HIMANSHU" ) { //Both the names above are same but have Different because Capital and Small letters. } what to do in this ??

Member Avatar for andur92
0
115
Member Avatar for vishalonne

Hello All I want the same feature as **DaniWeb** have. If I Go on PHP forum and try to start new discussion without doing login process, it takes me to the login page and if enter my valid login id and password it directly takes me to page where I …

Member Avatar for cereal
0
145
Member Avatar for PM312

I have combobox on child form. combobox get populated when form is loaded. Now the problem is when child form is closed and reloaded combobox get populed twice with same items. it appears that combobox dosen get cleared when for is closed. Below code dosen work CboScrip.Items.Clear() Below code is …

Member Avatar for PM312
0
114
Member Avatar for jalpesh_007

i have write a code for making a string that is being read from CSV file. i want to make a string from particular location of each and every line. i have attached a code what i have done.but i want it as it for any number of location. In …

Member Avatar for jalpesh_007
0
297
Member Avatar for monica.slocum

Basically I am looking for a very simple popup box to come up after a user hits the submit button. I don't want it to say "Are you sure you want to submit this" or anything like that just simply "Thank you for your submission". Ideally the page would be …

Member Avatar for almostbob
0
11K
Member Avatar for Sobakaa

Hello, I have 3 tables, user, role and userrole. Userrole stores user_id and role_id, so every user is associated with some role(s). So, when i use this query to view all users, and if user has several roles, i can see several rows with identical info and just role column …

Member Avatar for WayneZ
0
161
Member Avatar for calomari

> Hello, I am hoping to get some advice on what I might be doing wrong. This is the second program I wrote but I am still very new at writing any JAVA code so please bear with me. Instructions are - Create a Mortgage Calculator to display the original …

Member Avatar for Taywin
0
127
Member Avatar for sabarinadh.ch

I have to retrevie data from the database using "SELECT * FROM $tbl_name WHERE cat1 = technicalfest ORDER BY id DESC"; can any one tell me how to use multiple

Member Avatar for diafol
0
319
Member Avatar for markfw

Hi I'm trying to use PySerial and I'm getting "Access Denied". I don't know if this is a bug from PySerial library or I'm doing something totally stupid :-) Specification: Windows XP pro SP3 PySerial-2.5.win32 (Installed from binary) Python 2.7.1 (I know it's a bit old :-)) [CODE] from serial …

Member Avatar for meistervision
0
3K
Member Avatar for mahinder.yadav

hi friends i am new in vb coding. i have two tables in ms access table 1 containing location column and id and table 2 containing id, name and date1, date 2...date 30 i have made form design in visual basic with "name" label with combo1 that selecting data from …

0
140
Member Avatar for Shefali

hello i need to read and store data from a device through serial port. i have searched the forum but havent found something which is really helping me. can anyone give me some resources or sample codes where i can figure out how to do it? thanks in advance. regards …

Member Avatar for mariospelekis
0
7K
Member Avatar for Kunal Lakhani

I have created an application with report features. report features is created via iReport My application also contains a reports folder containing all .japser files Here is the code public MyiReportViewer(InputStream stream,HashMap parameter) { this(); try { /* load the required JDBC driver and create the connection here JDBC Type …

Member Avatar for Kunal Lakhani
0
2K
Member Avatar for theju112

please visit the following link: http://www.techgig.com/codecontest/problem/Rolling-Dices-36 click on participate and please see the code editor on the right side. In the code skeleton there, you can see a function with taking two arguments,both character arrays. I know a method to solve this problem if both the arrays were integer arrays. …

Member Avatar for Lucaci Andrew
0
153
Member Avatar for Salman.developer

I'm a new programmer with C# can I ask afew Questions Because I need for your help

Member Avatar for JorgeM
0
83
Member Avatar for McLaren

Hello, I have experience in codeigniter, and in it just set the settings in database.php and you connect to the database. In zend, I have no idea. Bootstrap.php <?php class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function _initDB() { $dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/db.ini'); $dbAdapter = Zend_Db::factory($dbConfig->adapter, array( 'host' => …

Member Avatar for McLaren
0
481
Member Avatar for ITshard

i need help with the punctuation check box. there's no supposed to be punctuation when it's not check. Im using netbeans. ![new](/attachments/large/3/new.jpg "new") here's my code ![neww](/attachments/large/3/neww.png "neww")

Member Avatar for JamesCherrill
0
199
Member Avatar for dyingatmidnight

I realize this probably isn't something that can be done, or probably something that shouldn't be done. But here's my situation. Perhaps someone knows of a better way to go about it than I do. I have two sections that both have logins. Admin and Members. Some Admins can access …

Member Avatar for diafol
0
264
Member Avatar for mohithamgaonkar

i am creating an ecommerce site and i want to add and retrieve image from database within image tag please someone help me with it... i do not want to save the image path but whole image..... i want to use attribute width and height with the image....

Member Avatar for diafol
0
475
Member Avatar for GTTravis

hi guys, i am looking for a control which has several headings from a database, regardless of the heading when clicked it should it expands to reveal a list view which can be edited.

Member Avatar for GTTravis
0
111
Member Avatar for daniel36

<?php SESSION_START(); require 'config.php'; $query="SELECT * FROM topics WHERE student_id='".$_SESSION['id']."' AND id='".$_GET['id']."';"; $result=mysql_query($query) or die(mysql_error()); $rows=mysql_fetch_assoc($result); ?> <table> <tr> <td colspan="2"><?php echo $_SESSION['user_name']; ?></td> <td colspan="8"><b><?php echo $rows['title']; ?></b></td> </tr> <tr> <td colspan="2"></td> <td colspan="8"><?php echo $rows['description']; ?></td> </tr> <?php $sql="SELECT * FROM comments WHERE topic_id='".$_GET['id']."';"; $comment_result=mysql_query($query) or die(mysql_error()); While($row=mysql_fetch_assoc($comment_result)) …

Member Avatar for broj1
0
150
Member Avatar for Vish0203

Hey! i've been trying to create a header file using dev C++ but i'm stuck with sum errors. Can anyone help me out in this? #ifndef SUM_H #define SUM_H template <class T> class add { private: const T a,b; public: T sum(T,T); void displaysum(); }; template <class T> T add::sum(T …

Member Avatar for deceptikon
0
163
Member Avatar for penet.biz

I have this error :Parse error: syntax error, unexpected '$db_field' (T_VARIABLE) in C:\Program Files (x86)\EasyPHP-12.1\www\penet.hi2.ro\cheats.php on line 110 And the code is : <?PHP require ("connect.php"); //$db_handle = mysql_connect($server, $user_name, $password); =>$connect $db_found = mysql_select_db($_mysql_db, $connect); if ($db_found) { $SQL = "SELECT * FROM cheats"; $result = mysql_query($SQL); while ($db_field …

Member Avatar for broj1
0
314
Member Avatar for dante123

hi i have two menus that i use as include in index.php file: topmenu and leftmenu I'm using the same code in oder to show the active header switch (THIS_PAGE): Code for the "Top menu include": <?php define('THIS_PAGE', 'pagename'); $menuitem1 = '<a href="index.php">Home</a>'; $menuitem2 = '<a href="about.php">About</a>'; $menuitem3 = '<a …

Member Avatar for diafol
0
183
Member Avatar for Dzulham

I'm new in Vb.net and try to make a simple program. I need one variable to be used in all subs. How can i do that with this: RTB As Richtextbox = CType(TabControl1.SelectedTab.Controls.Item(0), Richtextbox)

Member Avatar for Dzulham
0
97
Member Avatar for modesto916

Hi, I have a homework to do for college, which asks me to write a pascal lexical analizer in C. I'm trying to figure out the best way to ignore the comments, so far I've written this code, which works, but I would like to know if there is an …

Member Avatar for modesto916
0
264
Member Avatar for every1play

Recently i saw this code on the net and i have some questions taht i dun understand. Hope some1 can help to ans. #include <iostream> #include <stdlib.h> #include <time.h> #include <string.h> using namespace std; struct combos { char key[3]; char holder[3]; }; void displayBoard(); //display board void computerMove(); //AI;s Move …

Member Avatar for nishavas01
0
212
Member Avatar for manaila

I want to make every single change on a local database to also be *immediately* done on the remote database. The remote database is always online but the local one is not. I was hoping of using RabbitMQ to queue the records so they could be sent immediately when the …

Member Avatar for manaila
0
181
Member Avatar for HibaPro

i have a datagridview , i need to change the col(6) to combobox and filling it with data , how i can do this ?? my DGV not bounded with data , its read from sqltable

Member Avatar for HibaPro
0
160
Member Avatar for angel06

I'm currently creating a program where a user should enter the correct color shown in it. This should be entered in text box. What code should I use to make the program accept both upper case and lower case text inputs? For example "red" should be equivalent to "Red" something …

Member Avatar for debasisdas
0
558
Member Avatar for New Abhi

Hi all, How to remove duplicates in Unix. Suppose i have file like bellow 1,primary,a 1,secondary,b 2,secondary,c 2,secondary,d i want the output as 1,primary,a 2,secondary,c Please give me the solution for this command.. Thanks in Advance..

Member Avatar for Kwetal
0
123
Member Avatar for klin1344

Hi. I am a very beginner at Java. I am taking an online course on Java and I'm stuck on an assignment. Anyone who is good with Java, can you please take a look at my code? This assignment was due yesterday but I couldn't finish it. It is very …

Member Avatar for JamesCherrill
0
715
Member Avatar for Riu 2009

i've displayed a table from database using php.and now what i want is to edit records seperately as i've placed an edit and a delete link in front of each record which edits the record from sql.and it is now giving this warning.Please help me to find the error correctly.as …

Member Avatar for diafol
0
333
Member Avatar for jakubee

Given an Arrayl.ist that contains a list of Employee object references, describe two ways in which you could write code to make a copy of that ArrayL ist. (Hint: one way would be a shallow copy). Use code examples to illustrate your answer. Discuss the implications of each way you …

Member Avatar for JamesCherrill
0
1K
Member Avatar for caierhui

i have two columnns start date : end date 01/01/2012:02/01/2012 02/01/2012:03/01/2012 03/01/2012:04/01/2012 how do i use the end date as my start date? the given data is only the end date.

Member Avatar for seslie
0
96
Member Avatar for jtodd

Hey guys! I am building a data base in SQL server and am hoping to get some advice on frontends. The database is going to log and report on employee productivity. We would like to be able to use the frontend's forms to enter date time and project info in …

Member Avatar for seslie
0
157
Member Avatar for Riu 2009

Hi everyone i dont know how to get the already filled value of radio buttons from sql using html/php here is my code but its giving error <?php include("../includes/config.php"); ?> <?php if ($_SESSION["isadmin"]) { $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $accountid=$_GET["id"]; $result = …

Member Avatar for Riu 2009
0
8K
Member Avatar for borchu

Hello guys, I start to learn&code some basic small client/server console applications in java -especially in android- and also I try to learn Threads, in fact, I managed to connect 2 different machine by uploading different projects to these machines, for example one project only consists of client and the …

Member Avatar for borchu
0
3K
Member Avatar for Goldfinch

The following script is supposed to take in a date formated YYYY-MM-DD and output an image. It is also designed to display an error image if the date inputed is before the start date defined in the script or after the current date. The problem is that it doesn't seem …

Member Avatar for broj1
0
124
Member Avatar for kwolfe

Hi, I'm trying to read IP and login info from a text file params.txt. The contents of the text file are: IP = '1.2.3.4' UID = 'anonymous' PWD = 'my@my.com' Upload Directory = '/' Home Directory = 'C:/Users/MyDocuments/Python/FilesUpload/' Can someone help me please? import ftplib import re import os import …

Member Avatar for snippsat
0
2K
Member Avatar for andy106

Hi I have a simple code below that fetches, make, model and year from the database, but for some weird reason I get: Fatal error: Cannot access protected property error, any ideas as to why this might be happening? (i btw have this code on a different server running with …

Member Avatar for johrocks124
0
3K
Member Avatar for semicolon

I have a Thread running sql query how can do i force stop the thread when i dont want to use it anymore. I have a form that loads 100k from sql server i retrieve first the 2k then the thread runs to retrieve the other data i want to …

Member Avatar for nmaillet
0
116
Member Avatar for cguan_77

hi guys, please help me out on this issue. i had this code to connect to mysql using php but there is no any message displayed. nothing is displayed on the screen, whether the connection is successful or there is an error. any ideas? i can connect to mysql using …

Member Avatar for cguan_77
0
180
Member Avatar for PhilEaton

I just thought of this and was wondering if it is possible. So similar to how you can relatively reference a parent folder using ../. Is there a way to access a parent directory if a domain name is associated with a sub-folder. For instance, on my server, I have …

Member Avatar for JorgeM
0
491
Member Avatar for PhilEaton

Hi! I recently created a website that has a contact form that sends an email with the PHP Mailer class. I had to use my gmail account because I cannot get my LAMP server's SMTP protocol working... In my mail.php file, I display the password and account quite openly as …

Member Avatar for PhilEaton
0
3K

The End.