64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for wael meto

HI ALL I HAVE SMALL PROPLEM I CANT SOLVE AND I THINK ITS SIMPLE I ONLY TRY TO FILL THE DATASET WITH TABLEADABTER BY SELECT WHERE IN FILL,GET METHOD BY SELECT STENAME, PATENT, RCOMER FROM FOURNI WHERE (RCOMER =@RCOMER) I ALWAYS GOT THE ERROR Error in WHERE clause near '@' …

Member Avatar for wael meto
0
224
Member Avatar for friknos

hi i am trying to create a dvd rental system, up till now i have entered the client's details into an array list and have created a loan for every client that rented a dvd. But now i need to edit a part of this loan, for eg i need …

Member Avatar for friknos
0
138
Member Avatar for virusisfound

how to create a discussion pages. like a blog and how to post comments on that or a small chat room. I am new in asp.net so any one can provide me some code or link where i can learn this. I want this for learning purpose so please help …

Member Avatar for virusisfound
0
129
Member Avatar for tarunfuture

Hey friends i just wanna know how can we change the url like if i have a index page now i want to include the login page on click to a link now the url should be index.php?action=login

Member Avatar for diafol
0
174
Member Avatar for morteza_ipo

Hi everybody. I have 2 selects tag. first select is country list. when user choses favorite country then the second select tag get new contents. I can make this with javascript but I wanna make this just with php and without any scripts! This is possible make this without any …

Member Avatar for morteza_ipo
0
248
Member Avatar for jhbalaji

I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me …

Member Avatar for diafol
0
165
Member Avatar for jrosh

I am using IIS 7.5 and ASP MVC3 . I have used a third party forum in my site (with username passwords). when user tries to access the forum for the 1st time it gives 302 error and shows the redirect link without redirecting to the forum. After the first …

Member Avatar for geniusvishal
0
195
Member Avatar for fastali

[CODE]char *ReadFile(string& filepath) { string buffer=""; char temp_char; ifstream file; file.open(filepath); while(!(file.eof())) { file.get(temp_char); buffer+=temp_char; } size=buffer.length(); char *result1=new char[size]; for(int i=0;i<buffer.length();i++) { result1[i]=buffer[i]; } file.close(); return result1; }[/CODE] code looks pretty normal right? but when I run it with the rest of the program this happens... [url]http://imageshack.us/photo/my-images/267/chararray0001.jpg/[/url] [url]http://imageshack.us/photo/my-images/28/chararray0002.jpg/[/url] [url]http://imageshack.us/photo/my-images/11/chararray0003.jpg/[/url] …

Member Avatar for fastali
0
144
Member Avatar for rue64ja

Hey all, I've finally embarked on my journey of Mobile app development in java and I've ran into a stop sign already, lol. So I am working with the latest stable release of NetBeans, totally new to it, And I am working with a macbook (leopard 10.5.8) yeah I've had …

Member Avatar for rue64ja
0
155
Member Avatar for LogicalOutlier

[CODE]public class Grades{ public int scoreTotal; public int numScores; double average; static String file = "randomNumbers.txt"; int lowest; int x; int temp; public static void main(String[] args) throws FileNotFoundException{ int scoreTotal = 0; int numScores = 0; double average = 0; int lowest = -1; int temp = 0; Scanner …

Member Avatar for NormR1
0
192
Member Avatar for gennesis

Hi a have 4 tables [ICODE]Table A ID | Data 1 --------------- 1 | A 2 | W [/ICODE] [ICODE]Table B ID | Data 2 ----------------- 1 | B 1 | C 2 | X [/ICODE] [ICODE]Table C ID | Data 3 ---------------- 1 | D 1 | E 1 …

Member Avatar for Ezzaral
0
316
Member Avatar for Lillylionhert

I was just wandering if there was a way to put information in to a string but increment a section of the text when putting it in the string. To put it simply: [CODE]string="to be put in string[this is to be incremented]";[/CODE] I was wandering if there is a way …

Member Avatar for Lillylionhert
0
132
Member Avatar for Youg

I think it's just ging to be something stupid that I've missed since the program itself runs, though doesn't solve the decrypted text. I've included the text from the decrypted file below the code and any help would be great. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Frequency_Analysis …

Member Avatar for phorce
0
486
Member Avatar for a.muqeet khan

guys i have a little problem in my file handling program that is i cant get the whole file to be saved just the end portion i want to know why this happens and how to counter it [CODE]// file handling flag testing and practise.cpp : Defines the entry point …

Member Avatar for thines01
-1
387
Member Avatar for jaskij

The program is supposed to compute the values of [URL="http://mathworld.wolfram.com/GammaFunction.html"]Euler's Gamma Function[/URL] using an infinite product (formula #15 in the link), and it does so decently for low values, but the error gets too big for bigger values. Using both Mathematica and Maxima for reference this is what I get …

Member Avatar for jaskij
0
212
Member Avatar for Lillylionhert

please disregard this as i have figured out what was going on. i will delete this as soon as i know how.

0
116
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> union REGS in,out; void hide_mouse(); void show_mouse(); void detect_mouse(); void detect(int*,int*,int*); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any …

Member Avatar for DeanMSands3
0
181
Member Avatar for Jigs28
Member Avatar for Momerath
0
1K
Member Avatar for vedro-compota

Hi there)) I know that one of the ways to pass variables values into thread -is to create a special structure which includes all needed parameters/ But what about getting values from thread? Is it any way to get value after modification from the thread ? I know only one …

Member Avatar for vedro-compota
0
221
Member Avatar for gerchi152

Hi! I have this code in my program [CODE]sqlstat= "select bookNum from booktitle" sqlstat2="select bookNum, bookName from booklist where bookNum not in " & sqlstat & "and bookAuthor like '" ListBook.SelectedItem & "'"[/CODE] but it has "Incorrect syntax near the keyword 'and'" error... please help me with this... response is …

Member Avatar for gerchi152
0
88
Member Avatar for Majestics

I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution.

Member Avatar for mKorbel
0
313
Member Avatar for zachattack05

I'm curious about something. If I have a listbox that is databound and a filter is applied to that listbox based on the value in a combobox, what would be the best way to handle the null reference exception thrown when the form loads or the filter changes and everything …

Member Avatar for thines01
0
85
Member Avatar for newbie26

please help me!!! im restarting the mysql server from putty: Empty pid file /var/lib/mysql/mysqld.pid for /usr/sbin/mysqld when i checked mysql status, unused running unused running what's the problem?? im using putty in configuring mysql server thanks in advance.

Member Avatar for Ezzaral
0
84
Member Avatar for jbrunet

I have a DLL file written in C++, using Microsoft Visual Studio 2008. The socket class coding is an adaptation of [url]http://www.adp-gmbh.ch/win/misc/sockets.html[/url] and the whole thing works when compiled as a 32 bit DLL, but the Internet connectivity does not work when I compile it as a 64 bit DLL. …

Member Avatar for jbrunet
0
206
Member Avatar for Macko888

Hey Peeps! Im not too familiar with jQuery, Ive been wanting to make a tooltip for a "search result grid", each trigger should have a unique comment in the tooltip. so say for instance i have a php call like so: [CODE] <?php $query = mysql_query("SELECT * FROM `Cars` ORDER …

Member Avatar for fobos
0
191
Member Avatar for mohamedasif18

Hello Every One ! How to show md5() password from MySql table in PHP, I have saved my user's password as , [CODE]$password = md5($_POST['password']); $save = mysql_query("INSERT into users(password) VALUES ($password)");[/CODE] Its encrypting nice and works fine when user logs in , that's not a problem, my question is …

Member Avatar for diafol
0
465
Member Avatar for trisha0906

hi, can someone help me? i am using vb.net2010 and mssql as my database. what i want to do is when i open the form, the database will auto increment the student id and show it on the text box.

Member Avatar for trisha0906
1
2K
Member Avatar for vivekanandaan

Hi, What's the problem in the below code... [CODE] Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim cb As New OleDb.OleDbCommandBuilder(da) Dim dsNewRow As DataRow dsNewRow = ds.Tables("mr_head").NewRow() [/CODE] I am getting the below error : Object reference not set to an instance of an object.

Member Avatar for thines01
0
248
Member Avatar for bhavan kamble

I have 1 Table Called "Menu" there are some textboxes and a combobox. I want to fill data in the Textbox called "Menu_Rate" on Selection of combobox selected item & coressponding rate of the Menu shoud be displayed in the textbox. [U]This is my Code[/U] [CODE]con.ConnectionString = "Data Source=localhost;Integrated Security=true;Initial …

Member Avatar for bhavan kamble
0
2K
Member Avatar for morrisproject

I want to validate a textbox, currently im using this: [CODE] <script type="text/javascript"> function validate_form (){ var Motor_Frame = document.getElementById('Motor_Frame'); if(Motor_Frame.value == ""){ alert("Please fill in Motor Frame. If no motor please fill in with N/M") document.forms[0].Motor_Frame.focus(); return false;} return true; } </script>[/CODE] but i want it to check a …

Member Avatar for sufyan2011
0
172
Member Avatar for jackbauer24

Here is my code: [CODE]class Catandmouse { public void CatAndMouse() { Animal cat = new Animal(); Animal mouse = new Animal(); int mouseCaught = (int) (Math.random() * 10); cat.CatchMouse(); int catgetsit = 0; if ( mouseCaught == cat.number ) { System.out.println("The cat caught the mouse!"); } else { System.out.println("The mouse …

Member Avatar for jackbauer24
0
88
Member Avatar for chasadjee

I am writing an application which calculates profit from 3 column values. The SQL is as follows in vb dataset designer; [CODE]SELECT ID, Sale - (Weight * 20) * (Rate -5) AS Profit From AgencyRegister WHERE (DatePart('yyyy', ArrivalDate) = ?) ORDER BY ArrivalDate[/CODE] I want to add another column of …

Member Avatar for chasadjee
0
538
Member Avatar for geniusvishal

Guys I am stuck with including Edit in my Grid View.. The Specifications of my problem are as follows:

Member Avatar for geniusvishal
0
110
Member Avatar for FakeTales

Hey I currently have a demo shopping cart , it works great . the user can add whatever items they want to it. However now i want to add just the bookId's , quantity and price to my sql table to simulate an order taking place. the shopping cart code …

Member Avatar for FakeTales
0
427
Member Avatar for jade_91

well basically i have this code working to display distance to nearest station and the station name but i want it to show what line the station nearest is located on i've tried to figure it out but just dont seem to be getting anywhere with it the code (including …

Member Avatar for DavidKroukamp
0
103
Member Avatar for hust921

Hey everyone, i need a little help with searching a string and putting that date into another string. ex: [CODE] String com = ""; String mystring = "sometext here: !com shutdown"; // Magic happens System.out.println(com); // Output: "shutdown" [/CODE] "!com" is the constant to search for, shutdown is variable.

Member Avatar for hust921
0
132
Member Avatar for Mr.BunyRabit

Hey there. How do i stop this damn computer form automatically filling in my second Qoute when i make the first one " and then i have to press space for there just to appear one. It messes me around sooo badly with my programming. it does that wiht quotes, …

Member Avatar for Mr.BunyRabit
0
700
Member Avatar for Melow

Hy I want to validate expression as such: [code]AO:10 EM:1 IO:102 AO:SA EM:SA,AKA,LLMN[/code] so on... I'm noe to Regex and i came out with the following function: [CODE] public void checkFormat(String line) { String expression = "^[ACEILMNOU.]{2}+\\B[:]{1}+\\w{2,4}+"; Pattern subscriptionExpretion = Pattern.compile(expression, Pattern.CASE_INSENSITIVE); Matcher matcher = subscriptionExpretion.matcher(line); if(matcher.matches()) { System.out.println("matches " …

Member Avatar for Melow
0
193
Member Avatar for warlord902

I have 4 buttons on my page and I want each one to make a different http post request on clicking them. I tried using form for each of them but that make them appear in different lines but I want all of them to be horizontally aligned. Is there …

0
157
Member Avatar for M.Waqas Aslam

Hello Every one ! i am trying to make query to show the growth of sale of the product month wise ,i have one table name Sales .having following fields , SalesID,ProductID,amt,Qty,SalesDate i use this query to show my records [CODE] select ProductID,Amt,Qty,substring (datename(month,SalesDate ),1,3)as months,DATENAME(YEAR,salesdate ) as years [/CODE] …

Member Avatar for M.Waqas Aslam
0
139
Member Avatar for geniusvishal

how can i write a code for deleting a row using gridview [CODE] # protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) # { # GridViewRow row = GridView1.Rows[e.RowIndex]; # # objCust.CustId = Convert.ToInt32(objCust.findCustId().Tables[0].Rows[0][0].ToString()); # # objCust.DeleteNewUser(); # # if (objCust.DeleteNewUser() == 1) # { # bindGvEdit(); # } # } [/CODE] …

Member Avatar for geniusvishal
0
145
Member Avatar for biojet

Hello, Could you please help me in following scenario in Perl scripting? I want to compare two text files & change the charter at the position. Output of this comparision in third file with flags C-CHANGE, N-SAME at the end of line. [CODE]IN PUT1: Posi 3 ATG 2 ACT 1 …

Member Avatar for biojet
0
199
Member Avatar for iFrolox

Well i don't know how to start, so i'll give some info to see if someone can help me start or give me a push or anything. I got a .txt file containing Example: 1 SN_MOB_THIEF_NPC 도적 0 0 盗贼 0 0 Thief 0 0 0 0 0 0 0 …

Member Avatar for iFrolox
0
124
Member Avatar for silvercats
Member Avatar for jbutardo

Hi, I have this program that uses OLEDB connection to open the excel file, and imports it's data. Then I use mysql connection to inserts all this data. Now my question is, is it possible that I can use mysql connection in opening the excel file, or only OLEDB connection …

Member Avatar for jbutardo
0
251
Member Avatar for silvercats

I've dumped hexadecimals of a text using windows debugger. So if those hexa values represent every single character by a single hex value,does it mean its binary is that hexa's converted binary value and pc deals with that character using binary but assembly language and people convert and use it …

Member Avatar for thines01
0
167
Member Avatar for pwolf

Write the function search(word, substring) that takes in a word and a substring as arguments and returns the position (0 indexed) of the substring if it is found in the word. The function returns -1 if the substring is not found. is there a method to do this? i tried; …

Member Avatar for TrustyTony
0
186
Member Avatar for triumphost

In pascal, you can have something like the following: [CODE] type TPoint = record X, Y: Integer; end; TPointArray = array of TPoint; T2DPointArray = array of TPointArray; [/CODE] In C++ I tried to replicate this and failed miserably. [CODE] struct Point { X: Integer; Y: Integer; }; struct PointArray …

Member Avatar for triumphost
0
7K
Member Avatar for vb.netfreak

Hi, I want to connect my vbform having two textboxes with a button.Each textbox will display some value from connected database in a loop (with interval of 5 sec for each value) on pressing button once. Front end :- Vb.net Database : MS Access Pls help me

Member Avatar for vb.netfreak
0
3K
Member Avatar for iamthesgt

For a (homework) project, I have a class ComplexNumber that needs to be printed. I have a number of operations that can be done on objects of the class (addition, subtraction, multiplication, division). Each operation returns a new ComplexNumber to be printed. How exactly do I print this? Do I …

Member Avatar for iamthesgt
0
162

The End.