199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for java123456

hey guys so i am having a problem in my assinghmnet . i am making a text file and it has to import to java and make a table from the text file . so there is what the txt file looks. 3 // this should be the rows 1,2,3, …

Member Avatar for subramanya.vl
0
264
Member Avatar for dancks

This is based on advise given ina previous thread I posted awhile ago for protecting data. I tried the following: <?php function base_encode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_left(substr($text,0,1),4); $text=substr($text,-1); } return $str; } function base_decode($text) { $size = strlen($text); $str=""; for($i=0;$i<$size;$i++) { $str=$str.slide_right(substr($text,0,1),4); $text=substr($text,-1); } return $str; …

Member Avatar for pritaeas
0
201
Member Avatar for CHOCHOCHO
Member Avatar for hasan101002

why the code is not running? #include<iostream> #include<string.h> using namespace std; class person { char name[20]; float age; public: person(char *s,float a) { strcpy(name,s); age=a; } person & person::greater(person &x) { if(x.age>=age) return x; else return *this; } void display(void) { cout<<"Name:"<<name<<"\n"<<"Age:"<<age<<"\n"; } int main() { person P1("John",37.50),P2("Ahmed",29.0),P3("Hebber",40.25); person P('\0',o); …

Member Avatar for hasan101002
0
405
Member Avatar for anandschiru
Member Avatar for cdays

this code is giving me a blank page <?php session_start(); include("header.php"); include("conection.php"); include("modal.php"); $abc = 100; if($_GET["view"] == "delete") { mysql_query("DELETE FROM administrator WHERE adminname ='$_GET[slid]'"); } if(isset($_SESSION["userid"])) { if(isset($_GET[first])) { } else { $_GET[first] =0; $_GET[last] = 10; } $result = mysql_query("SELECT * FROM administrator LIMIT $_GET[first] , $_GET[last]"); …

Member Avatar for simplypixie
0
173
Member Avatar for nHulk

[CODE] <tr> [B][U]<td><a href="inbox.jsp" ><%=rs.getString(1)%></a></td>[/U][/B] <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr>[/CODE] See lines in Bold.....after i click it has to set session variable with value reterived from <%=rs.getString(1)% >based on which i am going to display particular contents in redirected page

Member Avatar for jalpesh_007
0
1K
Member Avatar for SmackFN22

Hello, I'm working on a project that needs to be done in PHP, however, everything has to be done locally. To test files that I'm editing I have installed Xampp on my computer. As far as I can tell, I have installed everything properly. When I load up this page, …

Member Avatar for axymak
0
279
Member Avatar for jcomputing

I have a contact form on my site when I click send I get the following errors: can anyone help please. Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:25 (Connection refused) in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line 102 Warning: fgets(): supplied argument is not a valid stream resource in /home/jholmes6/public_html/contact/contactpage/sendmail.php on line …

Member Avatar for jalpesh_007
0
410
Member Avatar for nseeley3

Hey everyone! So I want to make a simple console based chat client as my first java project (ambitious I know) so here is what I have brain stormed as to What this program will entail (Let me know if I missed anything. * Cases (to handle arguments such as …

Member Avatar for subramanya.vl
0
246
Member Avatar for jsp418

Hi. I'm writing a program that reads information from three seperate classes. public class Animal { protected int id,animalTotal; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, double weight) { id …

Member Avatar for subramanya.vl
0
205
Member Avatar for ponkhiraj

Hi, In my program, i have created 10 richtextbox dynamically. in all richtextbox i gather text form various websites. All is going fine. now what i want is- i need to print all/selected richtextbox text to printer and also saves it to Word file as following formate: * Richtextbox1 (or …

Member Avatar for tinstaafl
0
656
Member Avatar for nickcolb

So I'm working on a small calculator applet and whenever a button is pressed (generating an action event) i get this: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException. Something about a missing source? The variable m is an instance of my myFunctions class which houses all the necessary formulas. I believe the …

Member Avatar for radhakrishna.p
0
225
Member Avatar for myk45

Hello All, i am trying to tidy-up some code and i'm not completely sure how this can be done. What i have is this: (This is some sort of psuedocode that i just wrote to explain the problem, not proper code) void foo1(typeofList1 list1) { for (i = 0; i …

Member Avatar for myk45
0
192
Member Avatar for ImZick

Help i need to import excel to my listview using adodb or oledb but i dont know how? in vb6 i use adodb and the code is like here Dim lngI as Long Dim lvItem as listItem *'adodb connection goes here...* *'then this code will import all excel data in …

Member Avatar for ImZick
0
2K
Member Avatar for AndresOend

Hey all; I've been reading SICP and been wanting to write code from the book and the solutions to exercises and execute that code. I find MIT-GNU Scheme, the recommended interpreter, to be very confusing and very slow or impossible to use. I can't even get some of the basic …

Member Avatar for ahmadajmi
0
349
Member Avatar for rotten69

Hi everyone, I am trying to compile a sencha touch 2 project to build an android app but it doesn't compile fully and successfully. When I run this command, `sencha app build native` targeting android/iOS platform. The error I get is as follows below: [WRN] [ [1000] : Yui Compressor …

Member Avatar for rotten69
0
377
Member Avatar for arcticM

i have a div and an icon, i connected the 2 with toggle() <img .... onclick=" jQuery('#my_div').toggle();" > it works great, but how do i hide the div (once it's visible) when other area on the screen is clicked (besides the icon)? basicly what i need is <div id= 'my_div' …

Member Avatar for arcticM
0
782
Member Avatar for fishsticks1907

Im trying to read in data using both getline and cin from a file. But, it only reads in the first line and it leaves everything else empty and/or gives garbage values. output: John Brown grades: 73 57 94 grades: 0 32767 1252009800 grades: 0 0 1263344400 /* data.txt John …

Member Avatar for vmanes
0
228
Member Avatar for eyeda

Anybody can help me with this code? Why the pop up message for deactivated account did not showed up? <? include("database.php"); $myid=$_POST['myid']; $mypassword=$_POST['mypassword']; $status=$_POST['mystatus']; if ($_POST['user']='Admin'){ $resultad = mysql_query("SELECT * FROM staff WHERE staff_id='$myid' AND level='ADMIN' AND password='$mypassword'" ); $count1 = mysql_num_rows($resultad); $row1 = mysql_fetch_array($resultad); if($count1==1){ header('Location:adLandingPage.php'); $insertSQL = "INSERT …

Member Avatar for eyeda
0
119
Member Avatar for kc.smith.100

We are developing a mobile payment system which enable our Agents to collect cash (in person) from our members and update our online database via PHP/MySQL. Our Android Smartphone Agents CAN send an instant SMS receipt to the Member at the time of payment (despite lots of expert advice saying …

Member Avatar for LastMitch
0
277
Member Avatar for Behseini

I am trying to create a secure login app using php and MySQLi by following this tutorial: Link To Tutorial The tutorial is using a table(members) with 5 fields as:"id", "username","email","password",and "salt". but at the very beginning there is a an SQL INSERT function which is confusing me INSERT INTO …

Member Avatar for veedeoo
0
356
Member Avatar for fabio.bozzo

Hi to all, I'm using the WIA Aut. Library [url]http://www.microsoft.com/downloads/details.aspx?familyid=a332a77a-01b8-4de6-91c2-b7ea32537e29&displaylang=en[/url] , trying to capture photos from 5 digital cameras (Nikon D90) USB-connected to my pc. Now, I partially achieved my goal, what I do is: - loop through the attached devices, connecting to every camera; - fotocamera.ExecuteCommand (WIA.CommandID.wiaCommandTakePicture) ; - …

Member Avatar for vince8290
0
534
Member Avatar for Lethugs

Query to make movement of a record I have this tables User Description Item UID Name DeID Dgroup ID DeID Name 1 Jose 1 Printer 1 1 Stylus 2 James 2 Monitor 2 1 Epson 3 2 Viewsonic Transaction Details Ttype IID UserName NewUser Release 1 Jose Release 2 Jose …

Member Avatar for Lethugs
0
286
Member Avatar for laksraju

I have 2 file File1 1. amayaM 2. vismayaM 3. vismayaN File2 1. amayamAn 2. vismayamAn 3. vismayamer I need to check each character by character between 2 files and if the nonmatching character in first file is M then print the word in first file else no output. output …

Member Avatar for 2teez
0
153
Member Avatar for Sudo Bash

Hi all, I am fairly confident with Python, and am now turning my focus from learning how to program the language to learning to program it well. I am wondering what the best way to approch classes which have too many variables in them. I an writing a platformer game, …

Member Avatar for Sudo Bash
0
254
Member Avatar for Uniquenickfj

**Please Help Me! I'm Getting this error:** > Error 2 C:\Users\Nick\Documents\Visual Studio 2010\Projects\HTMLGrabber\HTMLGrabber\Form1.vb 143 'System.Data.Keywords' is not accessible in this context because it is 'Friend'. 38 HTMLGrabber **My current code is:** Public Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged Dim line As Integer = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart) Dim …

Member Avatar for Uniquenickfj
0
227
Member Avatar for poisonousgu

I am currently working on my assignment about a simple text editor that can open, add line and delete line and so and so... I designed an algorithm to add new line to the doc and it works for the first time but didnt work after it, I dont know …

Member Avatar for Ancient Dragon
0
286
Member Avatar for dancks

Hey guys its me again: Basically everything on this page, at least the parts I'm able to test, are working, problem is addproduct.php is supposed to print errors when error checking the form and repopulate the data fields with the previously submitted data. I'm doing this by populating $_SESSION. addproduct.php: …

Member Avatar for gavinflud
0
420
Member Avatar for Cally_Law

Hi, I have some problem that I can display the image in picturebox before save into database when browse but after browse, the image path is lost in fileupload and I unable to save the path into database. Can I display and image in picturebox , but the path still …

Member Avatar for JOSheaIV
0
164
Member Avatar for ravenj92

Hi guys, I have a problem and would appreciate some guidance. The problem I have is that on my design screen I have 5 progress bars (progressBarHour1,2,3,4,5) and also have an array with a size of [4] as seen below. I would like the array to store values given by …

Member Avatar for JOSheaIV
0
268
Member Avatar for WDrago

All, I am working on a project in C# with Visual studio 10 (on WinXP 32bit with .NET 4.0) and I need to use SQLite. I am totally confused by the SQLite installation process. [This FAQ](http://system.data.sqlite.org/index.html/doc/trunk/www/faq.wiki#q8) says that there is no need to install SQLite, but the [instructions given here](http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki) …

Member Avatar for JOSheaIV
0
335
Member Avatar for diya45

hi all add button coding rec.Gender = gender.SelectedValue.ToString(); rec.Martial_status= martial.SelectedValue.ToString(); when i run the code the following error occur in gender Object reference not set to an instance of an object

Member Avatar for JOSheaIV
0
188
Member Avatar for jason007thomas

I'm just doing a basic practice project that envolves a street light and the light/image changes color at the push of a button. at design time I can see all three of my images clearly but at runtime none of them will show up. I searched the hell out of …

Member Avatar for JOSheaIV
0
149
Member Avatar for DarkVision

here my code now my problem i wonder if you can do something to access specific method from each object example i want to access from Dalek class his method but i cant do this "alien[i]->" will only access method from class ExtraTerrestre any help will be appreciate sorry for …

Member Avatar for Ancient Dragon
0
154
Member Avatar for RobRTaylor

Frusterated... Should be simple. I have several forms that all do the same thing and I re-use the same basic code in all of them. But this one form is pitching a fit. I have a DataGridView that is able to read data I have saved in a local DB. …

Member Avatar for john.knapp
0
2K
Member Avatar for Rachna0309

Hi all.I am trying to send mail through my vb.net application but i am getting error "Failure sending mail." Can any1 help me to solve this problem?Below is the code I have written. Private Sub Send_Mail(ByVal SendTo As String, ByVal Subject As String, ByVal Body As String) Dim strFrom As …

Member Avatar for troxin
0
1K
Member Avatar for june.pierre.311

I'm writting a program that will take a file as input and go through the list of numbers in the file and return the max number uing recusions. I'm not very good with recursions here is what I have so far. Also I'm not allowed to use the max command. …

Member Avatar for vegaseat
0
347
Member Avatar for WDrago

All, I am collaborating by email on a project with 2 other programmers. We're all pretty new to Visual Studio and C#. One of us is designing and bulding all the GUI forms, I'm doing the database work, and the third guy is doing the main app code. What files …

Member Avatar for TnTinMN
0
123
Member Avatar for Violet_82

Hi there, I am trying to find an explanation for what the `findWithinHorizon()` does. I landed on this page http://docs.oracle.com/javase/7/docs/api/ and I know that the method is part of the `java.util.Scanner` class (isn't it?). How do I find it in the page above please? thanks

Member Avatar for Violet_82
0
248
Member Avatar for manoj323
Member Avatar for pxalpine

Is there a way to read in a two-columned CSV file, and based on the fields in 1st column, output many different files? The input/output looks something like: input.csv call Call Mom. call Call T-Mobile. go Go home. go Go to school. go Go to gas station. play Play music. …

Member Avatar for rrashkin
0
199
Member Avatar for visweswaran28

Hi, I have a DSD file. I am reading DSD file content into XMLdocument, after some modification and trying to save that entire content in same exising DSD file. No Error / Exception has occured. But the DSD file is updated. (FYI, this is running in Win 7) Please suggest …

Member Avatar for tinstaafl
0
111
Member Avatar for NicAx64

Circuit, [Circuit Diagram](https://picasaweb.google.com/116591322380497799116/December52012#) Video: [Video](http://www.youtube.com/watch?v=qGoM_ydAtBc)

0
489
Member Avatar for shawnjohn

Hey i am having trouble creating a piglatin converter using dynamic arrays in vb this is my code so far. the problem is i cant convert multiple words into piglatin Private Sub insertWay(ByVal convertWord As String) 'function will add -way to the words that do not contain vouls Const nonVoul …

Member Avatar for tinstaafl
0
160
Member Avatar for Jbvo

I am having a hard time figuring out polymorphism with vectors. I keep getting random numbers which I'm guessing is the memory location. If that is the case what am I doing wrong with pointers. And here is part of my .cpp file. Thanks in advance for your help. // …

Member Avatar for Jbvo
0
95
Member Avatar for vishalonne

Hello I am just testing how to get the fatorial of a number by using MACRO - Here is my wrong code - #include <stdio.h> #include <conio.h> #define FAC(n) for(typeof(n) i=2; i<=n; i++){f *= i} void main() { int i=5; int j=FAC(i); printf("%d",j); getch(); } And these are error Error …

Member Avatar for Tumlee
0
137
Member Avatar for crazydevelopervish

Is it possible to set two DataKeyField in DataList........... If yes then pls help me out...................

Member Avatar for AleMonteiro
0
204
Member Avatar for toldav

Hello, everyone I'm new into databases. I have an Oracle insert sequence that I need to convert to SQL server if anyone could help me to get this to work. I'm not sure if nextval is compatible with SQL Server. Here is the code: // original insert into invoice select …

Member Avatar for toldav
0
239
Member Avatar for eman neercs

I've got 2 tables, basically this weeks stock list and last weeks. Each has around 25,000 SKU's. I'm trying to run a comparison programme to see where there are stock-outs i.e. SKU missing from the latest table. Table structures identical. Both about 20mb in size. Script is timing out so …

Member Avatar for jstfsklh211
0
148

The End.