199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alex.alekan

Hello, I'm trying to import xlsx to datagrid using oledb. but i'm geting this: Syntax error (missing operator) in query expression.I've read other related posts but didn't helped this is the code: private void button1_Click(object sender, EventArgs e) { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\alm1.xlsx" + @";Extended …

Member Avatar for alex.alekan
0
2K
Member Avatar for pritaeas

I have the following method: [ClaimsPrincipalPermission(SecurityAction.Demand, Resource = "Order", Operation = "Place")] public string PlaceNewOrder() { } When the `AuthorizationContext.Principal` does not have the required `Claims`, a [SecurityException](http://msdn.microsoft.com/en-us/library/system.security.securityexception_properties(v=vs.110).aspx) is thrown (as expected). Unfortunately, all the properties of this exception (such as `Action` or `Demanded`) are `null`. Is there a way …

Member Avatar for pritaeas
0
203
Member Avatar for metalix

first create the table [CODE] create table images ( image_id serial, filename varchar(255) not null, mime_type varchar(255) not null, file_size int not null, file_data longblob not null, primary key (image_id), index (filename) ); [/CODE] the file to output the images to the browser [B]picsrc.php[/B] [CODE]<?PHP //detect if image is called …

Member Avatar for guruparthi
0
1K
Member Avatar for mxwarning

Hello, I am supposed to modify my last inventory program. Here is the instructions. Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of …

Member Avatar for zolymo
0
941
Member Avatar for Slavi

Hey everyone, I am facing an implementaton issue here ... hopefully someone can give me a hand .. So I am implementing a client-server communication, where the server has to act as a print server. In other words, the client simulates to be next to a printer and can send …

Member Avatar for Slavi
0
193
Member Avatar for kayleigh0411

I am trying to make a program that will tell how much a ticket costs and what the admission status is for a movie based on the age of the person. For ages 1-4 and 55 and up, it is $0.00 and "Free". For ages 5-12 it is $4.25 and …

Member Avatar for stultuske
0
163
Member Avatar for MasterHacker110

I remember reading in Java's EULA that you acknoledge not to use it for certain things (real time applications). I did a bit of research on this matter and came to the conclusion that it is due to Java's garbage collector that makes Java slower and thus unfit / or …

Member Avatar for MasterHacker110
0
228
Member Avatar for COKEDUDE

Is this a good example of using multiple pipes. I need to fork 3 children. Would I just need to repeat the process in between the hyphens? Where would I add extra sleeps? Is it a bad idea to use WEXITSTATUS and WIFEXITED? Can anyone spot any errors? #include <stdio.h> …

0
103
Member Avatar for Gurjit_1

Hello friends, Please help me to sort out my problem , actually it is strange one and don't know why it appears. Actually I was trying to make a file upload form which I got success although a bit. A bit in the sense, if I include just <form> in …

Member Avatar for Gurjit_1
0
221
Member Avatar for Michael_29

G'day, I'm currently trying to get a input box with a submit button that puts the command into a string and executes it on a detached screen. Currently I have the following: **index.html** <form id="commandForm" method="post" action="command.php"> <input type="text" name="command" /> <input name="sendCommand" id="sendCommand" type="submit" value="Send" /> </form> **command.php** <?php …

Member Avatar for cereal
0
732
Member Avatar for lewashby

I'm a little confused about inlining member functions. Does all code actually have to be on one line or does it simply mean writing the whole function inside the class rather than from outside using the :: syntax?

Member Avatar for deceptikon
0
131
Member Avatar for mattsheets

Hello! I am needing a non-realitme note/reivew system like the former iWork.com's "Review" feature, I am hoping one already exsist but I haven't been able to find one yet. Here is a image if what I am hoping to find: http://cdn.appstorm.net/mac.appstorm.net/files/2009/01/picture-7-620x402.png

Member Avatar for mattsheets
0
145
Member Avatar for ToucheAmore

Im new at programming i started learning Visual Basic today to start things off because i plan on going to college for this type of thing. I was just curious, which type of coding/language do you use to write and create Smart-phone apps in my case Blackberry apps. I know …

Member Avatar for priyaspageo
0
550
Member Avatar for nadiam

hi, i was wondering if there is a difference between refreshing a page using jquery `.reload()` when submitting data using `$.post` and an automatic page refresh when submitting data using php?

Member Avatar for minitauros
0
168
Member Avatar for hiiiiii@

hi i need to search a particular record where the user will enter the name or id . this is my html form <html> <fieldset style=text-align:left> <form name="empdetails" id="empdetails" action="view.php"> ID : <input type="text" id="id" name="id" ><br> <input type="submit" id="submit" name="view" value="view" ><br> </form> </body> </html> my php file : …

Member Avatar for minitauros
0
194
Member Avatar for Louis4christ

Hi guys please I need your help. I created application in window application of C# with sql server database(.mdf) and when I installed it to the target computer, it is complaining of: unable to install or run the application. The application requires that assembly Microsoft.Synchronization Version 1.0.0.0 be installed in …

Member Avatar for javed.iqbal.3979
0
225
Member Avatar for Web_2

Hi everyone, i want Php script for regional Language e-paper like http://epaper.pudhari.com/ that because i want same Hard copy paper on to website in that block wise news reading option (e.g. when u select block news it display pop up or new page just see link above e-paper like that) …

Member Avatar for ankurtheprogrammer
0
2K
Member Avatar for superior7867

Dear Team I am creating a html form for data entry in mysql database and want to multiple rows inserted in one time when i filled a row then on enter key press a new row created automaticaly in html and php for more entering data so how is this …

Member Avatar for veedeoo
0
346
Member Avatar for kaye.santos.92

i have a code that select the columns in mysql and fill it in a datagridview... what i want to do is encrypt the 3 column in the datagridview since it is a password... can you help me??? here is my code Dim dbDataSet As New DataTable Dim SDA As …

Member Avatar for Santanu.Das
0
610
Member Avatar for Caroline_2

Hello All, Nice to meet you all, find this website. I am just 5 weeks into my final year of my BSc Honors Degree in Computing and am rather overwhelmed by the amount of work I have to do, and the intensity and level of the assignments I have to …

Member Avatar for mike_2000_17
0
180
Member Avatar for COKEDUDE

I have used this several times in the past for writing to files. Is there a problem with this? I'm just writing text. I have never had any issues. What is the difference with the binary file? I thought binary files usually weren't readable. I read those two links and …

Member Avatar for L7Sqr
0
1K
Member Avatar for Djmann1013

Anyone know of a way to auto-grab songs? I want to make a playlist of songs so that I can make a playlist and listen to them. I've tried making a script but it somewhat worked, it opens the menu but it doesn't add it to the playlist. Here is …

Member Avatar for Djmann1013
0
217
Member Avatar for haider885

I don't know what I am missing. Help me. import javax.swing.*; import java.util.Scanner; public class Operator { public static void main(String args[]) { String num1,num2,op; int ans; Scanner cin = new Scanner(System.in); num1 = JOptionPane.showInputDialog("Enter First Number"); op = JOptionPane.showInputDialog("Enter Operator"); num2 = JOptionPane.showInputDialog("Enter Second Number"); char c = (char) …

Member Avatar for zolymo
0
159
Member Avatar for Slavi

Hey guys, I can't understand why am I not getting anything from the server, it is supposed to return "Hello" to the client ... I have this code implemented for a game I made during the summer and it works perfectly(of course this is just part of the code), but …

Member Avatar for Slavi
0
190
Member Avatar for RonKevinT.Manuela

Is it possible to list down all files from a folder then have an option to delete them one by one?if so, can you give me the right way to do it?not the code but the step by step tutorial or explanation..well if its a code I just hope I …

Member Avatar for diafol
0
279
Member Avatar for Stuart_3

Hello, I am a new developer and am making my first app which will be open source after I finish it. How do you make a notification apply to all dynamically created objects rather than the last one in a linear layout? I have created 2 methods, one called CreateDialog(); …

0
161
Member Avatar for BleepyE

Hi, im wondering how I could contact my Call of Duty: Black Ops game server's console, through RCon, through an application I have created in VB.net All I want to beable to do is have the ingame console in a textbox or something, it doesnt even have to be live, …

Member Avatar for chris.weisskeiner
0
1K
Member Avatar for BibhutiAlmighty

Hello Friends, I am creating a windows application containing multiple forms which shows notify icons while running. I have kept the notify icon only once in the 1st form.When the first form loads it shows the notify icon. When a button is pressed the first form hides and the 2nd …

Member Avatar for JOSheaIV
0
146
Member Avatar for Tanushree_1

i'm making a hospital management project using java and there is a small error "symbol not found ". plzz help

Member Avatar for Slavi
0
95
Member Avatar for Abdu Rahman

hello I had a question that what is the meaning of function in C++. thank you

Member Avatar for AndrisP
0
102
Member Avatar for psichoman5

I dont know how to convert a matrix of 10x10 into 4 matrices of 5x5, for example: [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19], # matrix 10x10 [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], …

Member Avatar for vegaseat
0
259
Member Avatar for Triple_7

Here is a VB 6 fuction I used to calculate number of hours worked given a start time and an end time (24 hour format). This function worked even when start time > end time (17:00 start time - 03:12 end time next morning). The result is formatted in tenths …

Member Avatar for J.C. SolvoTerra
0
2K
Member Avatar for levunkosha.hihoha

I was following a tutorial by codeNmind on Youtube about Facebook SDK V4. I've followed everything, but I keep getting the error that Fatal error: Class 'Facebook\FacebookSignedRequestFromInputHelper' not found in... Anyone with an idea what that could be? And if there is another tutorial you can recommend for posting on …

Member Avatar for Natalya_1
0
588
Member Avatar for Anish_2

I am trying the below code by not able to execute it properly, because as soon as first if is cleared then the other if statement take the previous i value. that is when i = 2 is accepted then i remain 2 all time. below is the code i …

Member Avatar for Santanu.Das
0
127
Member Avatar for bradly.spicer

Hey! Long time no speak ^.^ I've been trying to make a query which would follow this logic (Which works in phpMyAdmin): UPDATE member_food SET food_id=12 WHERE member_id=4 AND food_type="breakfast" However, when I do it in PHP: $sql_breakfast1 = "UPDATE member_food SET food_id ='$breakfast1' WHERE member_id='$id' AND food_type='breakfast'"; if ($mysqli->query($sql_breakfast1) …

Member Avatar for bradly.spicer
0
132
Member Avatar for afaaro

Hello I have 5000 data how can i update one time dbquery("UPDATE ".CATEGORY_TABLE." SET name='".cleanString($data['title'])."'");

Member Avatar for afaaro
0
176
Member Avatar for Simon180

Am trying to build xinetd on my solaris system am using sun workshop c++/c to compile the code but I keep getting the following errors error: `sys_nerr` underclared (first use in this function) error: (each undeclared identifier is reported only once error: for each function is appears in.) error: `sys_errlist …

Member Avatar for NathanOliver
0
1K
Member Avatar for LoveAntwinette

I have been working on this program for days and I can not figure out what I am doing wrong. I have most of the code done but I am getting error messages with the radio buttons. The new user radio button is supposed to take the data inserted in …

Member Avatar for Santanu.Das
0
253
Member Avatar for gadgets1010

Hi. I'm trying to implement uniform interfaces for two breakout boards (adafruit's fona and sparkfun's Si4703 breakout) and I'm not sure how to go about writing wrapper classes. Can someone guide me through the basics of accomplishing this task?

Member Avatar for Banfa
0
163
Member Avatar for Sean_8

Problem1: Write the definition for a class named Vector2D that stores information about a two-dimensional vector. The class should have methods to get and set the x component and the y component, where x and y are integers. Next, overload the * operator so that it returns the dot product …

Member Avatar for Banfa
0
2K
Member Avatar for Hassan_9

hello guys,please i need some help .I have many folders that contains images .I have to store these folders in my database .And then use these images.Please i want an advice to know how to start .it's my first program of that type =( and i'm using Vb.net and Sql …

Member Avatar for Hassan_9
0
117
Member Avatar for Nurul_2

Hello, I had an error while compile this code. Can somebody help me.. I need the answer ASAP..Thank you search.html <form name="form" method="post" action="search0.php"> Search by Matric No.: <input type="text" name="patron_ID" placeholder="Student No."> <input type="submit" name="Submit" value="Search"> </form> search0.php <?php /* include db connection file*/ include("dbconnect.php"); /* capture student number …

Member Avatar for cereal
0
134
Member Avatar for silent lover

dear daniweb friends, i really need help. i want to parse a json from a file inside folder. that folder inside xcodeproj (not from URL). i use this code: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ /*NSData* kivaData = [NSData dataWithContentsOfURL: [NSURL URLWithString:@"http://json.comli.com/reportTextEn.json"] ];*/ NSString *filePath = [[NSBundle mainBundle] pathForResource:@"reportTextEn" ofType:@"json"]; NSError *error = …

0
179
Member Avatar for vizz

var mct1_Options = { sliderId: "mcts1", direction: "horizontal", scrollInterval: 1400, scrollDuration: 800, hoverPause: true, autoAdvance: true, scrollByEachThumb: true, circular: true, largeImageSlider: null, inSyncWithLargeImageSlider: true, license: "b2e98" }; var thumbnailSlider = new ThumbnailSlider(mct1_Options); function ThumbnailSlider(f) { var g = "length", i = "className", T = function (a, c) { var b …

Member Avatar for vizz
0
283
Member Avatar for Sumith Asanka

Hi Guys i have a formValidation Java Script on the form to validate username and password text boxes to check whether they are empty,and i am calling them on the Onclient Click even ton the button, But even If i enter some data into those text boxes the error message …

Member Avatar for AndrisP
0
341
Member Avatar for Dartz654

So, I just installed XAMPP on my PC running Windows 7. Here's what my website looks like: [B]/Header.php[/B][CODE] <?php session_start(); include("http://localhost/Functions.php"); connect(); ?> [/CODE] [B]/Functions.php[/B][CODE] <?php function connect(){ $username = "dartz654"; $password = "letmein"; $hostname = "localhost"; $con = mysql_connect($hostname,$username,$password) or die ("Unable to connect"); mysql_select_db(database, $con); } ?> [/CODE] …

Member Avatar for Asromi rOmi
0
933
Member Avatar for jonsan32

Let's say I have a banner on my site that randomly rotates between images that depict the month of January. Is it possible to have 10 images randomly rotate the entire month, then to have a new 10 images rotate randomly for the following month? I also need each image …

Member Avatar for mattster
0
506
Member Avatar for lithium112

I'm needing some LINQ expert advice. I am having to convert a SQL stored proceedure over to LINQ. The SQL statement is structured like below: SELECT SUM((Amt) FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID WHERE Table1.Date < endDate GROUP BY Table2.Name How would I group all of the …

Member Avatar for AleMonteiro
0
154
Member Avatar for better.atbcs

Here is the problem: Write a program to find future value of monthly investments. Start with an initial investment, make a deposit every 30days, calculate interest on principle compounded daily, display a table showing beginning balance, deposit for the year, interest earned for the year, and ending balance. The table …

Member Avatar for AleMonteiro
0
229
Member Avatar for Richtofen345

Hi, I am trying to connect to mysql from php Below is the sample code i used. [COLOR="Green"]<?php <?php $username = "root"; $password = "pwd"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); print "Connected to MySQL<br>"; mysql_close($dbh); ?>[/COLOR] The problem here is I …

Member Avatar for Deepika_6
0
2K

The End.