To all database genius out there, I hope you can help me with this error I encountered when importing excel file to SQL Server 2005. This is the error: [CODE]Executing (Error) Messages Error 0xc020901c: Data Flow Task 1: There was an error with output column "Description" (21) on output "Excel Source Output" (9). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard) Error 0xc020902a: Data Flow Task 1: The "output column "Description" (21)" failed because truncation occurred, and the truncation row disposition …

Member Avatar
Member Avatar
+0 forum 14

The API was working fine for the past few months ago..But now I'm getting a notice in that output and message is not delivered. The notice is -" Undefined offset: 1 in C:\wamp\www\sms\sms trial.php on line 90" line 90 in my code is $userID = $match[1]; please help me to debug this error. here is my complete code.... <?php $userID="xxxxxxxxxx"; //sender's num $userPWD="xxxx"; //password $recerverNO="yyyyyyyyyy"; // receiver's Num $message="hiiiii"; function send_sms($userID,$userPWD,$recerverNO,$message) { if(strlen($message)>140) // check for message length {echo "Error : Message length exceeds 140 characters" ; exit(); } if (!function_exists('curl_init')) // check for curl library installation {echo "Error : …

Member Avatar
Member Avatar
+0 forum 6

Hello everyone. I recently started using C++ and blah blah blah you know the rest. Using my extremely limited knowledge, I attempted to make a basic 4 function calculator CUI in C++. The code I wrote is as follows. [CODE]#include <iostream> #include <string> #include <sstream> using namespace std; char operator -; char operator +; char operator *; char operator /; int myoperator; float num1; float num2; float result; int mainproc () { cout << "Welcome to the 4-Basic-Calculator!\nEnter first number: "; cin >> num1; cout << "\nEnter the operator: "; cin >> operator; if(operator == "+") myoperator = 1; if(operator …

Member Avatar
Member Avatar
-2 forum 16

Hi, i am working through Christian Daries PHP and Mysql Ecommerce chapter 4 and am receiving a Fatal Error. [I]Fatal error: Class 'Catalog' not found in C:\xampp\htdocs\myshop\presentation\departments_list.php on line 23[/I] Can anyone please help me with this error? Many thanks in advance. Here is the code from the files associated and i have attached my file structure also. [B]index:[/B] [code=php]<?php // include utility files require_once 'include/config.php'; // load the application page template require_once PRESENTATION_DIR . 'application.php'; // load Smarty template file $application = new Application(); // display the page $application->display('store_front.tpl'); //load database handler script require_once BUSINESS_DIR . 'database_handler.php'; //load business …

Member Avatar
Member Avatar
+0 forum 7

I have the following code in my php files, but i am having a following error while loading my page? "Notice: Undefined variable: username in C:\xampp\htdocs\fyp\cms\cms.php on line 48" My page is successfully loading up, but username is not being shown in the page and the error is popped up in it. Can someone tell whats the error here? login.php <?php include_once("../includes/connection.php");?> <!DOCTYPE html> <?php session_start(); ?> <html lang='en'> <head> <meta charset="UTF-8" /> <title> HTML Document Structure </title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="wrapper"> <?php $current_page = $_SERVER['PHP_SELF']; ?> <form name="login-form" class="login-form" action= "<?php echo $current_page;?>" method="post"> …

Member Avatar
Member Avatar
+0 forum 7

For my Java homework I had to make a program that simulates 100,000 people going 25 times around a monopoly board and finding the percentage times a space is landing on. I get this error when I run it. Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 39 at Monopoly.analyze(Monopoly.java:86) at TestMonopoly.main(TestMonopoly.java:6) Here is my main code. public class Monopoly { String[] names = new String[39]; Dice roller = new Dice(); final int numPlayers = 100000; final int timesAround = 25; public void setUpBoard() { names[0] = "Go"; names[1] = "Mediterranean Avenue"; names[2] = "Community Chest"; names[3] = "Baltic Avenue"; names[4] = "Income …

Member Avatar
Member Avatar
+0 forum 4

Hi, In one of my services in the webservice I have to return an array of objects. I am using Axis1.1 and Tomact6.0 and developing code using eclipse 3.4.1 and JDK5. Here is my sample code This is what my web service has [code=java]public class WebLibSvcs { public List<DocumentInfo> getAllDocuments(BigDecimal workflow_id) { boolean statusWL = WLGlobalVar.getInstance().isDctmWLRun(); logger.info("Status of WebLibrary: " + statusWL); WebLibSvcAction callSVC = new WebLibSvcAction(); List<DocumentInfo> results = new ArrayList<DocumentInfo>(); results = callSVC.getAllDocumentsImpl(workflow_id); return results; } }[/code] Implementation class: [code=java]public class WebLibSvcAction { public List<DocumentInfo> getAllDocumentsImpl(BigDecimal workflow_id) { List<DocumentInfo> result = new ArrayList<DocumentInfo>(); try{ DocumentInfo docInfo = new …

Member Avatar
Member Avatar
+0 forum 3

Greetings everybody, I have been using libusb for a few days, I developed a program to transmit data via USB port which gives no error, but when I developed a program for receive mode, it gives a run time error related to submit urb. When I took a look at other forums, [Click Here](http://libusb.6.n5.nabble.com/usbfs-usb-submit-urb-returned-121-td511104.html), it might be related to kernel bug or data length of the received data. So I also checked lsusb -vvv . The code length is 7 for audio, at least for my USB device. The terminal output is below: AudioControl Endpoint Descriptor: bLength 7 bDescriptorType 37 …

Member Avatar
+0 forum 0

please i have a little problem creating a class and making it run. The class is created separately as a header file with it's source code. whenever i build the source code of the class, i get an error that says: undefined reference to 'WinMain@16'. And whenever I run the main, it gives me the error: undefined reference to 'samclass::samclass' here's my code main #include<iostream> #include "samclass.h" using namespace std; int main(){ samclass obj; return 0;} header #ifndef SAMCLASS_H #define SAMCLASS_H #include <iostream> using namespace std; class samclass { public: samclass(); void printcrap(); }; #endif // SAMCLASS_H header source code …

Member Avatar
Member Avatar
+0 forum 3

Hi guys, Error- collect2.exe:fatal error:cannot find 'ld' compilation terminated Compiler:gcc library:mingw I have done quite a bit of internet search and followed a discussion pertaining to this on daniweb,but to no avail.Am working on code blocks. Initially there was no problem, then i linked libws2_32.a and even though it compiled for some time with no problem, but then it started giving me the error collect2: cannot find `ld'. I have reinstalled codeblocks, ld.bfd.exe is present in mingw, however the problem persists. I even tried using the ld.exe from another user, but it did not work, it crashes midway.(It was just …

Member Avatar
Member Avatar
+0 forum 2

Hi there, I have a problam with my code, and i cant fix it, please help. The problam is with the mysql_num_rows on line 4 ; Here is the code: $sql_query = mysql_query("SELECT * FROM upload WHERE MATCH(username,text) AGAINST('$search_term')"); //additional check. Insurance method to re-search the database again in case of too many matches (too many matches cause returning of 0 results) if($results = mysql_num_rows($sql_query) != 0) //Error on this line !!!! { $sql = "SELECT * FROM upload WHERE MATCH(username,subject) AGAINST('$search_term') LIMIT $first_pos, $RESULTS_LIMIT"; $sql_result_query = mysql_query($sql); } Thanks for your help!

Member Avatar
Member Avatar
+0 forum 8

Hi all, I have a J2EE web application that I am integrating with LDAP to implment Password Reset functionality to allow AD users to change their own password. My code works at times, and sometimes it stops working throwing [code]LDAP error code 52, initializing SSL/TLS error.[/code] I don't know why this intermittent error is being thrown? Here's the line of code that gives error. StartTlsResponse tls = (StartTlsResponse) myLdapContext.extendedOperation(new StartTlsRequest()); Any idea, please? thanks.

Member Avatar
Member Avatar
+0 forum 4

hi all, I have a piece of code, I can delete the first value but fails and give notice InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If ComboBox1.Items.Count > 0 Then If e.KeyCode = Keys.Delete Then ComboBox1.Items.Remove(ComboBox1.SelectedItem) 'or 'ComboBox1.Items.RemoveAt(ComboBox1.SelectedIndex) End If End If End Sub thank help !

Member Avatar
Member Avatar
+0 forum 3

I'm hosting my php file in WAMPSERVER PHP Version 5.4.3 and my database is somewhere in the uni server I keep getting this error and I don't know why * A connection attempt failed because the connected party did not properly respond after a period of time or established connection failed because connected host has failed to respond. in C:\wamp\www\test3.php on line 4* However I also tried to host the php file in the uni server with PHP Version 5.4.11 and I get this error when I use mysql_connect or my mysqli_connect *Call to undefined function mysqli_connect() * *Call to …

Member Avatar
Member Avatar
+0 forum 1

There is a little bit prob with my code, My Prob: When i type name or place etc in search bar it show me the entire data stored in database, i need it show what i searching for... script for Search: <div id="wb_Form1" style="position:absolute;width:864px;height:147px;"> <form name="q" method="get" action="test-result.php" id="Form1"> <input type="text" id="Editbox1" style="position:absolute;left:13px;top:7px;width:836px;height:50px;line-height:50px;z-index:5;" name="query" value="" title="Test" placeholder="Type your place or address to find"> <input type="submit" id="Button1" name="" value="Search" style="position:absolute;left:322px;top:76px;width:239px;height:53px;z-index:6;"> </form> </div> and my action script (test-result.php) <Strong><Font size="3"> <?php $host="localhost"; // Host name $username="user"; // Mysql username $password="pass"; // Mysql password $db_name="search"; // Database name $tbl_name="list"; // Table name // …

Member Avatar
Member Avatar
+0 forum 44

hi there im currently do some simple webpage that can submit the data save into database into MYSQL Workbench. But currently i have an error for insert into table. The error is --------------------------- App_Web_kclqmsmh --------------------------- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change,reasonchange,problem,priority,reasondescription,systemrequest) VALUES ('C' at line 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change,reasonchange,problem,priority,reasondescription,systemrequest) VALUES ('C' at line 1 --------------------------- OK --------------------------- Below …

Member Avatar
Member Avatar
+0 forum 1

Hello, I was working on some code, when I ran into this: foreach ($products as $product). One problem, it was not defined. How could this be? Here is the book I got it from: http://english-common.googlecode.com/svn-history/r100/trunk/huyliem/01-Murach.PHP.MySQL/Murach.PHP.and.MySQL.Nov.2010.pdf . It is on 161-163. I don't understand where the $product came from. And one more thing. Doe fetch() turn the mysql variables into arrays? Thanks

Member Avatar
Member Avatar
+0 forum 6

The End.