64,152 Solved Topics
Remove Filter ![]() | |
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 '@' … | |
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 … | |
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 … | |
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 ![]() | |
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 … | |
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 … ![]() | |
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 … | |
[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] … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
please disregard this as i have figured out what was going on. i will delete this as soon as i know how. | |
[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 … | |
How to set case sensitivity in ms access database? I need it for password column. | |
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 … | |
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 … | |
I m trying to pass a 10.10 value to double and it takes 10.1 instead of this? Any solution. | |
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 … | |
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. | |
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. … | |
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 … | |
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 … ![]() | |
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. | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
Guys I am stuck with including Edit in my Grid View.. The Specifications of my problem are as follows: | |
![]() | 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 … ![]() |
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 … | |
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. | |
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, … | |
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 " … | |
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 … | |
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] … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 | |
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 … |
The End.