64,152 Solved Topics
Remove Filter ![]() | |
Hi! I need to be able to change the location of the database at runtime through a menu in my program. My question is how to best achieve this. If for example the ip to the server change, the user need to be able to update the database path; i.e. … | |
Hi, today for the first time I get this error Lock wait timeout exceeded; try restarting transaction when using sentence [CODE] UPDATE info_psl SET eil_nr = eil_nr + 1 WHERE eil_nr >= 4 [/CODE] The table is such [CODE] CREATE TABLE IF NOT EXISTS `info_psl` ( `psl_id` int(11) NOT NULL … | |
Hi, I am getting below error. "syntax error, unexpected '"', expecting T_STRING or T_VARIABLE or T_NUM_STRING " 1. welcomecaller.php [CODE]<form action="send_email_works2.php" method="post"> Name: <input type="text" name="fname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> [/CODE] 2. send_email_works2.php [CODE]<?php $to = "safiullah12@hotmail.com"; $subject = "Brought to you by BenagaliList.com"; … | |
Hi I can successfully parse data from a form in one page to a table in another page, but I'm having problems displaying the data in the same page as the search form. Below I have set up a simple one field search and table in the same page. I … | |
Hello all, I'm trying to get through this tutorial, but running into a brick wall. I'm not very versed with PHP, so the error may be simple. I'm trying to call the data that the user inputted to the PHP form, but it's only displaying blank lines for me. I've … | |
Hi, I'm trying to create an excel 2003 workbook from my vb.net project I referenced the code from this website [url]http://www.dotnetspider.com/resources/20382-To-create-Excel-file-vb-net.aspx[/url] However i'm getting error on this line "objSheets = objBook.Worksheets" Can any please tell me what's wrong? [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click … | |
Hello Is it possible to use an <a href> tag without adding any text link to it, usually we write <a href="....">Link to text</a>, but I want to omit the Link to text part, which however is completely removing my a tag. Any solution to this? I need the <a> … | |
could you please tell me whats happening at line number 8 because, the output is 3,2,30. How can the value be incremented twice with just one increment. Thanks ! [code=c]#include<stdio.h> #include<conio.h> int main() { int b[5]={10,1,30,40,50}; int j,i,k=1,m; i=++b[1]; j=b[1]++; m=b[i++]; printf("%d %d %d",i,j,m); getch(); } [/code] | |
hi ppl of the forum.. i am so glad i joined this forum, members here play a big role in my learning PHP, n im able to work on a PHP project so soon all thanks to the forum and its members.. n here i'm back again, with another piece … | |
hi i'm writing a c# script to be used in ssis.... i'm trying to pull an image from a website... i'm new to c# and i'm not sure whether the data types i'm using are right... i'm posting my code here... [CODE] using System; using System.Data; using Microsoft.SqlServer.Dts.Runtime; using System.Windows.Forms; … | |
please I need a sql command similar to decode in oracle becuase am getting an error when i verified as an sql command. below is my code which, please help by correting the problem [CODE=SQL]SELECT dbo.Trans_Head.Doc_Date, dbo.Trans_Head.Document_No, dbo.Trans_Head.Account_Type, dbo.NewAccount.Surname + '' + dbo.NewAccount.First_Name AS Account_Holder, dbo.Trans_Details.Account_Name,SUM(NVL(DECODE(dbo.Trans_Details.Trans_type, 'DR', dbo.Trans_Details.Amount), 0)) Payemnt, … | |
I am working on an application where I am presented a string that has some information, its always in the same order, but not always the same length with no special separators, here is an example "May 30 10:08 am ARRIVAL AT UNIT WILMINGTON DE 19850" I need to be … | |
I've constructed an inventory program that relies on a database for information. Previously, I've used Access 2007, because it is easy and n00b friendly. Unfortunately, I'm not so sure Access can handle the requirements (Multiple simultaneous users over a LAN connection). So I switched to SQL Server 2005 Express. And … | |
Hi, Could anyone tell me the best way to implement a propertygrid? currently I'm doing it like this but I'm having truble setting the value of the private variable with the values returned but a single SqlDataReader: [CODE] [DefaultPropertyAttribute("ObjectTypeID")] public class ObjectType { private int _objTypeID; private int _stateType; private … | |
thanks guys.. please clear one more doubt.. lets say, i have a table(Name) with fields first_name, mid_name and last_name. records in the table are as follows: 1. tom-robert-hanks 2. angel-diva-hanks 3. nick-kick-hanks 4. jingle-doll-bond 5. james-cool-bond 6. john-mac-bond now i want to fetch all the first_name having last_name as bond … | |
hi frens, i have a weird doubt haunting me. please clear it for me.. lets say i have a table(EMP) containing fields emp_name and emp_dept, n there are around 10 records in the table. now i want to print all the emp_name. i know we can do as follows $empname=mysql_fetch_array($result); … | |
in vb6 we can declaration arecord like this [COLOR="Green"]Type x a As Integer b As String End Type[/COLOR] and deal to this record by dim s as x s.a=1 s.b="hi" but i cant do that in vb.net any one can help me please | |
Hey Guys, Currently, I am doing a project. I don't know how to pass a value from one windows form to another windows form using c#.net. Suppose, I have two forms parent form and child form. Parent form consists of a combo box & button and I want to pass … | |
Hi all, i have a small email database (32k emails) and i want to create a newsletter system. Unofortunately the script where handles those 32k emails to send a html text times out as request exceed the default value and i dont wish to chagen that. I tried breaking the … | |
Hello All! Please i designed a website and hosted it. The problem is, it displays the custom error page whenever i try to view the registration page which is meant for data entry. What could be the possible error because it works perfectly when tested on the LAN | |
I am developing a search engine that match keyword search for game title and category game that is limited for three keyword search.i am facing some problem that need to swap among the keywords more than using one keyword search.Any guys can help me or give me some guide on … | |
Hi All, I have an xml file like [CODE]<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet type="text/xsl" href="InProcess1.xsl"?> <Rowsets DateCreated="2011-02-14T12:24:00" EndDate="2011-02-14T12:24:00" StartDate="2011-02-14T11:24:00" Version="12.0.2 Build(88)"> <Rowset> <Columns> <Column Description="BatchNumber" MaxRange="1" MinRange="0" Name="BatchNumber" SQLDataType="12" SourceColumn="BatchNumber" /> <Column Description="VersionCode" MaxRange="1" MinRange="0" Name="VersionCode" SQLDataType="3" SourceColumn="VersionCode" /> <Column Description="MaterialType" MaxRange="1" MinRange="0" Name="MaterialType" SQLDataType="12" SourceColumn="MaterialType" /> <Column Description="LotNumber" MaxRange="1" … | |
Hi all Does anyone know if it is possible to open a firefox webbrowser in a form. Or does it take you default web browser as the webbrowser to open in form. Eg - My Default Browser is Firefox - so does that mean the webbrowser control would be a … | |
Hello, I'm using PythonWin and I have a problem. i don't know how to run script from Python shell Pythonwin Interactive Window). For example I wrote this code (from tutorial): [code] import sys print 'Begining... now...' for x in sys.argv: print x [/code] and I save it as Script.py in … | |
Hello, I just started learning c++ and I'm dabbling with file input/output. But now I have encountered an issue with this code: [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { ifstream inFile("values.txt", ios_base::binary); string Value1; int Value2; int Value3; int Value4; if(inFile) { inFile.read((char*)&Value1, sizeof(string)); inFile.read((char*)&Value2, … | |
Hi Guyz, i just wanna know how to fix my problem, or rather fix my code and simply my code base on my MODULE. heres the error " You have an error in your SQL syntax; check the manual that corresponds to your mysql server version for the right syntax … | |
Hi im trying to calculate the average of an inputfile using a 2d array. I tried to calculate the average per row and add them all together but my code gives me an average of zero. I was wondering if anyone can see what im doing wrong or a better … | |
hello all. i have this code... [CODE]@mkdir("C:\wamp\www\uma\member media\member tracks'$memberid'") or die(mysql_error());[/CODE] ... it works but the folder it makes is in single quotes. i'd like to have the folder it makes have no quotes at all. its creating 'FOLDER' when i just want it to read FOLDER. i've tried... [CODE]@mkdir("C:\wamp\www\uma\member … | |
Hi, I am importing data from excel (don't know yet I am going to do that) and export it back into excel. I don't want to have users to import data using excel (due to lack of intelligence) and also it would be faster and more streamline. I already had … | |
Hi, I began file I/O and I did exactly what it said in the book I was using and it doesn't seem to work for some reason. Am I doing something wrong? [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin("hello.txt"); if (fin.is_open()) cout << "It's good"; … | |
Hi, im trying to upload a file(.pdf, .jpg, .bmp, etc.. ) but I'm getting this error message.. check the file I've attached, it contains the output on the page but with errors.. [CODE]<?php define("REPOSITORY", "/www/parctice/test/htdocs"); if(isset($_POST['submit'])){ if(is_uploaded_file($_FILES['fileupload']['tmp_name'])){ echo "temperory file name: " . $_FILES['fileupload']['tmp_name'] . "<br />"; echo "file name: … | |
Hi everyone, My javascript code is absolutely ok but its not working. I know it sounds funny but its happening with me. Please view below code and tell me is there any mistake in it. Javascript code: Which change image when i click on button. [code] var myImages = new … | |
Hi ~ As you can see from the code below I am in school for programming. I have come across this homework assignment a few times on the site already however the requirements for mine are different. I cannot use arrays. Three functions - I only have two coded. The … | |
I have a class which extends JDialog which by default has some text on it and a couple of buttons. Most of the instance of the buttons are "Ok" and "Cancel" so the two buttons have their bounds set. If I try to change the label on the Ok button … | |
How do I display the results of list<t>. I put rangeChecker objects in range and now I want to display the rangeChecker objects in range. How whould I do that? [CODE] static void display(RangeChecker[] rangeChecker, int SIZE) { //displays values for x, y, z, and how many times z was … | |
Hello, I'm working on a project that once ran (the main window) becomes maximised and then another window (Form2) pops up allowing the user to login OR register. I have created the main project and added a form (called form2) but when I try to display Form2 when Form1 loads … | |
I'm attempting to recreate the Unix shell program "todo.txt" using C++ on Windows. An example use of my program in the Command Prompt would be: [CODE]>todo /A "I like cheese."[/CODE] which would append the item "I like cheese." to the file "todo.txt". In my program, there is a line which … | |
am trying to create a new class for a binary search program in c# I keep getting this compilation error [COLOR="Red"]A namespace cannot directly contain members such as fields or methods [/COLOR] here is my code [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1{ // Create a new … | |
Hi everyone. Please I'd like to know if anybody has encountered this problem before. Here's the scenario. I've got a datagrid view Bthat is a child table from another table A. one of the fields is the productID which I have bounded to the Product Table to display the name … | |
Hello again everyone, I have just finshed a neat little c++ program, but now I just realized that I don't know how to save the file as an executable so that I can use the program on any computer whether or not it has a compiler. Please Help. PS: I … | |
Hello, I'm a biologist trying to do some bioinformatics, so new to Java and new to this forum. I've searched all over the forum for previous threads on this topic, but can't find an answer that has helped me. Apologies if I've missed something already posted that may help solve … | |
Hey there. i have a listbox thats databound. Now i want to select in that massive list, lets say a sting "dog", i want it to hightligh that word in there. But i cant seem to get it to work with this databound listbox. Coz i know how to do … | |
I don't know why. At all. Just that it won't repaint! My code: [CODE]import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JPanel; @SuppressWarnings("serial") public class Frame extends JFrame implements KeyListener{ JPanel content; int W = 200; int H = 200; public Frame(){ setSize(700,250); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setResizable(false); content = new JPanel(); … | |
I have several buttons in my applet, however in certain case i use fillRect function to draw my whole applet go black, but i want to leave one Jbutton visible. The fillRect function hides my button, but the button comes visible if i move mouse cursor on top of it. … | |
hi, i'm having a bit of trouble with grid views. see i can show stuff in them but i want to manipulate and use a certain selected record or field in it ( e.g : delete it from table in the DB or copy it into a textbox.). i'll be … | |
[CODE]Imports MySql.Data.MySqlClient Public Class Form8 Dim connection As MySqlConnection Dim con As MySqlConnection Dim da As MySqlDataAdapter Dim dt As DataTable Dim strQuery As String Private Sub Form8_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load strQuery = "server=localhost; user id=root; password=phoenix0931; database=accounts;" con = New MySqlConnection(strQuery) con.Open() Me.Text … | |
Hi, I'm novice by complete to webservices et al. I've created successfully a webservice and referenced it in a console application. By simplification let assume that the webservice contains a webmethod, the 'classic' CelsiusToFarenheit (string Celsius). Once referenced i can see my new namespace ServiceReference1 with the following classes inside: … | |
what if i can not implement a feature in my university project can i kick out that feature from the project in contingency plan? | |
Hi there! I have some problem with java. I developing a multiplayer applet, there a class called userServer registry new users and logging in other users. the problem is, that I don't know how to append in a array. [CODE] user Users[]; int cnt=0; Users[cnt] = new user("emorjon2", "password"); cnt++; … |
The End.