199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HunainHafeez

in databse tabel i have fieild with type varbinary(max) for storing image, so i achieved it and stored my image but the problem is that when i use this line SqlParameter p8 = new SqlParameter("logo", SqlDbType.VarBinary).Value= productImage; then it gives me an error but when i use this line : …

Member Avatar for HunainHafeez
0
216
Member Avatar for lizziekadango

help me out, it says rand cant be used as a fuction when compiling. #include <cstdlib> #include <iostream> #include <math.h> #include <ctime> using namespace std; int main(int argc, char *argv[]) { int i,rnumber,number,power,base,rand; int randomise();//initialises random number generator srand(time(0)); cout<<"ten random numbers from 0 to 99\n\n"; for(i=0;i<10;i++){ rnumber= rand()%100; cout<<rnumber<<endl; …

Member Avatar for lizziekadango
0
161
Member Avatar for yoyo12345

Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4

Member Avatar for Squidge
0
315
Member Avatar for revelator

Can anyone help me with giving me an idea how to make a basic Car Rental Application using Switch, for, if loop in C language. Help will be appreciated. I am newbie and i have been given this problem to solve. pLz Help

Member Avatar for revelator
0
171
Member Avatar for DelilahDemented

The program runs and gives the correct data until it gets to the 4th line of the input. At the 4th line, the calculation is incorrect and when it gets to line 6 of the input, it just stops completely. I can't quite figure it out. Any help is greatly …

0
142
Member Avatar for saraalaa.khodeir

code should do this : a) Given an unsorted array of integers, your task is to sort the array by applying the following algorithm (Assume that the input doesn’t contain duplicates ):  Execute the following steps starting from the first element in the array: – Count the number of …

Member Avatar for Taywin
0
183
Member Avatar for James singizi

hello, im using a wamp server and i want to sent an email and after writting the code, im getting an error that says 'warning: mail() [function.mail]: failed to connect to mail server at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set().' Im not …

Member Avatar for LastMitch
0
296
Member Avatar for Pelle_3

I can't seem to figure this out. The multidimensional array "structure" changes its values without any reason. I am using Visual Studio 2010 for debugging, and when it enters "structure[x][y] = readData" for the first time, it changes the array's value, but it changes back on next line. I don't …

Member Avatar for deceptikon
0
152
Member Avatar for asaidi

Hi i m trying to output pdf file from html..this html is a result of a php script i have this error from html2pdf impossible to load the image litre.php?start=2012-09-1&end=2012-09-30&client=13 any help please

Member Avatar for LastMitch
0
8K
Member Avatar for Cappagh

<html> <head> <script> var count = 6; var time = setInterval(countdown, 1000); function countdown() { count = count - 1; var cx = document.getElementById("cdown"); if (count < 0) { count = 5 } cx.innerHTML = count; } </script> <body> <p id="cdown">5</p> </body> </html> This is a script for a count …

Member Avatar for JorgeM
0
197
Member Avatar for philo.meena.1

iam in a hurry to create a database for the printers and its working in a shop and ..can u just help me ,how to write a program using java program for the above statement... i hope u guys help me....

Member Avatar for JamesCherrill
0
138
Member Avatar for Upendra76

I am triying to write a shell script which do the following steps: 1)Check the status of File (ie:Rejected,Processed and Processed_with_errors) from Database(i am using TOAD tool). 2)If the file is rejected ,then the script should immediatly send a MAIL ALERT to me. 3)If the file is processed_with_errors with mare …

Member Avatar for L7Sqr
0
334
Member Avatar for Arjun_Sarankulu

I have a crontab job in which data from csv file get insert into mysql table at regular interval. Now i want the same table data to be inserted in ms sqlserver database. I know i can write code again to take data from csv to ms sqlserver database. But …

Member Avatar for rayidi
0
148
Member Avatar for DelilahDemented

I have a program that is supposed to match opening and closing braces. It's supposed to work like a stack. It works until the last line of the input file. The last line is matching, but because it thinks the array size is zero it drops out and states that …

Member Avatar for DelilahDemented
0
192
Member Avatar for Kayla1993

I need some help starting my project. You will have the following functions (no violation of these interfaces) and you may have others, as needed: − public static void GenerateRandomTriangles(int numTriangles) to create a file RandomTriangles.dat having the following format (including some comments like the ones shown below) with random …

Member Avatar for JamesCherrill
0
176
Member Avatar for Stuugie

Hi all, I have the following VB.NET code where I am attempting to connect to a SQL Server table, query it to find out if a date in the table is between a derived date called "fileCreateDate" and now/today. Sub getDateModified() Dim fileCreatedDate As DateTime = File.GetCreationTime(strFilePath + "\CPI1.csv") Dim …

Member Avatar for Stuugie
0
221
Member Avatar for emeka.l.iwuagwu

good day all, i was having a little difficulty in trying to code an application in python to read sms i do something like this import inbox import sms but i still dont know where to go from there. The main objective of the code is to intercept sms messages …

Member Avatar for M.S.
0
438
Member Avatar for amit.chaudhari.71

i want to create a text report and i have use this coding:- <?php $f=fopen("c:\amit.txt", "wb"); // adding header $text="\n Your text to write \n ".date('d')."-".date('m')."-".date('Y')."\n\n"; fputs($f, $text); fclose($f); ?> which results me some thing like when i open it in windows [i.e my computer->c drive->mit.txt] :- > []Your text …

Member Avatar for amit.chaudhari.71
0
215
Member Avatar for Darshan5

I'm a programmer.. I love to code.. But sometimes it gets really hard to think about the solution of some problems. I have basic knowledge of c, c++ and java. I also know web programming languages like html, javascript, php, css etc. But when it comes to experience, I have …

Member Avatar for rhowell
0
240
Member Avatar for shoebodh

I am a beginner in VB. I am trying to make a simple unit converter. Can please some body tell me how can I delete the last character of the number I enter in my inputbox? thank you

Member Avatar for Reverend Jim
0
31K
Member Avatar for HunainHafeez

if i have table in database(sql server) and has 1500 records and i run 2 applications(at same time) that will retrieve 500 records each so how can i do this app1 will retrieve first 500 records app2 will retrieve next 500 records means no over lap SET Transaction Isolation Level …

Member Avatar for HunainHafeez
0
299
Member Avatar for HunainHafeez

i stored session variable in string variable in .cs page , but now i want to retrieve that string variable on .aspx page and want to put into selectcommand of sqldatasource how ?

Member Avatar for JorgeM
0
251
Member Avatar for Riu 2009

Hi everyone :) im a new in php and mysql and doing my final year project..i want to my teacher module to create quizes for students and then want to further grade them after evaluating the marks..i want to put fill in the blanks, MCQs and true false in those …

Member Avatar for Riu 2009
0
131
Member Avatar for Koji01

hi guys...i have a problem concerning strcmpi not equal while inside a while loop. Check out my code below: #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> main() { char yr[4],new_yr[4]; int x=0; FILE *fp1; printf("Enter Year: ");scanf("%s",new_yr); printf("\n"); printf("You Entered Year %s\n\n",&new_yr); if(strlen(new_yr)==4) { fp1=fopen("year.txt","r"); while(fscanf(fp1,"%s",yr)>0) { if(strcmpi(yr,new_yr)!=0) { fp1=fopen("year.txt","a"); fprintf(fp1,"\n%s",new_yr); fclose(fp1); x=1; …

Member Avatar for Koji01
0
121
Member Avatar for mikesr

Hi! I'm trying to read wstring from file. This is an file content example: "83 118 269 ... " The number 83 represent "S", 118 represent "v", 269 represent "č", and so on.. So, I tried to read the numbers into int. But the problem is, that I don't know …

Member Avatar for mikesr
0
175
Member Avatar for Skate Bart

I'm using a MSHFlexGrid (fgdVehicle) to input data from a database ( via a recordset (rsVehicle) ). You can either enter the data into the database in two ways : 1. From the database application 2. From a form. The problem is present in the second method. There are specific …

Member Avatar for AndreRet
0
595
Member Avatar for SH3H@N

Hello everyone. I am making a game trainer in vb.net. and want to know how to write a "TEXT" wherever your cursor is. I have already found shortkey mechanism but still looking for this one. Example: I am playing game. I pressed Shift+f3 and no matter which windows is focused …

Member Avatar for SH3H@N
0
197
Member Avatar for jhedonghae

can anyone help me in adding items to a listview? here is what i want to do: when i click the login button the date and time will be added in the column date and time in, here is my code and it works[Click Here](null): Private Sub LoginButton_Click(ByVal sender As …

Member Avatar for jhedonghae
0
194
Member Avatar for xNZxAssAssiNx

So I have a default installation of WAMP on my computer (it is turned to online) and I can't access it on LAN. I tried installing it on another computer and it worked fine, so it isn't anything to do with my router. I am completely stumped as to what …

Member Avatar for xNZxAssAssiNx
0
96
Member Avatar for siram1

write a programe that read amount of money ranging from rm0.10 up to rm5.00(multiple of 10cents). Display number of coins that can be used tp form the above amount. eg. input=rm1.40 , output: 50cents=2, 20cents=2, 10cents=0

Member Avatar for Despairy
0
82
Member Avatar for priya1988

I have a question about asp.net.I Want to edit an selected gridview row values in textbox and I want update that value back in gridview again by clicking Update button in form.

Member Avatar for starrrlatika
0
159
Member Avatar for Priti_P

Hi, I have a doubt as if i have a "xml format" text message in my email body then how can i cobert it into an array so that i can fetch each node form it for example: my email body containts xml format: <?xml version="1.0" ?> <candidate> <name>Superduper automation</name> …

Member Avatar for Priti_P
0
2K
Member Avatar for James singizi

i need help ordering my data from a database using time in ascending order.

Member Avatar for James singizi
0
104
Member Avatar for rotten69

hey guys, I don't seem to understand why this code is throwing a type error at me. It is saying the variable is undefined. The error I'm getting is this **TypeError: datasplits is undefined datasplit2s = datasplits.split(":");** var urlphp = 'ajaxgamesperday.php?&start_date=' + startDate + '&end_date=' + endDate; $.ajax({ url: urlphp, …

Member Avatar for rotten69
0
172
Member Avatar for t0kipot

hi, can u help me my Datagrid which connected to ADODC1 was updating evrytime i click my ADD command button, then i made another command button to CLEAR what data is in the grid, i used this codes to do that but always error like this "KEY COLUMN INFO IS …

Member Avatar for shahidpk
0
2K
Member Avatar for StephenopolousINC

Hello, I am trying to call an audio file using the onload event. I am able to do it using the media player plugin but I need to be able to call it without the use of a plugin and have play directly in the browser. I think the <audio> …

Member Avatar for StephenopolousINC
0
335
Member Avatar for gelmi

--->>> when i click the yes button me.show, disappears, it suppose to stay, i don't know that the problem is. I hope someone can help thanks in advanced ^_^ Public Class MagicBeans Private Sub MagicBeans_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load MessageBox.Show("WELCOME TO MAGIC BEANS INC. ^_^ …

Member Avatar for poojavb
0
269
Member Avatar for strizh

I'm trying to override equals method, but I'm getting error I have two classes one abstract and the inherited class. public abstract class MyData extends Object { public abstract boolean equals(MyData ohtherData); } public class IntData extends MyData { protected int num; public IntData (int n) { this.num = n; …

Member Avatar for stultuske
0
182
Member Avatar for alanso

hey...how can i use the dialog box joption for now i just use the normal display when i do the joption there alot of error can anyone help thanks. package javaapplication1; import java.util.Scanner; public class JavaApplication1 { static int MicrowaveNetPerIntem =638,JuicerNetPerIntem=270,CookerNetPerItem=216,OvenNetPerItem=229; static Scanner input=new Scanner(System.in); static int MicrowaveSellingPrice=1338; static int …

Member Avatar for stultuske
0
234
Member Avatar for consc197

Hello everyone, I have a problem, i am unsure how to read the data from my Access Database into my vb.net form. I did some searching but i didn't manage to find anything useful so i would appreciate any pointers. Here is the code from frmAddNewCandidate i am using that …

Member Avatar for consc197
0
3K
Member Avatar for davy_yg

Hello, I am trying to migrate sql file from one computer to another computer. And while trying to import the sql file these error appears why is it? I am trying to migrate sql from Joomla. Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE …

Member Avatar for davy_yg
0
290
Member Avatar for Clanstrom

I need to pass a variable from page1 to page2 without URL, or without making the variable visible to users, to I figured, I might use the hidden field method, but I can't do this with the following script <form method="POST" action="page1.php"> Username: <input type="text" maxlength="25" name="username" value="" class="i_login" /> …

Member Avatar for moneeshot
0
253
Member Avatar for bmaglar3

*i Have written 2 php codes and one js thata are shown above. The first code selects the categories of the table and by selecting the category i want to let me select one of the product for example of the selected category. The result of these codes is by …

Member Avatar for ryantroop
0
131
Member Avatar for Dave-B

I have to live with a javascript gizmo on my pages. I've edited it's background color to better suit my html / css, but I'd really like to make the background transparent. I'm revising my html to use far fewer images, and more css, so I have to update the …

Member Avatar for ryantroop
0
164
Member Avatar for Jorox03

I am writing a program which converts a Gregorian calender date to a Julian day number. I am having some problems implementing the portion which includes time. For reference - http://en.wikipedia.org/wiki/Julian_day (scroll to calculation section) My code: jdn_t gregorian_to_jdn_with_time( year_t year, month_t month, day_t day, hour_t hour, min_t min, sec_t …

Member Avatar for Jorox03
0
199
Member Avatar for DelilahDemented

I have a custom class that consists of patient data. I am pulling data from three different sql tables and combining it into a list of patients. If the patient doesn't exist in the last table then I am inserting the patient into that table. From this last table, I …

Member Avatar for DelilahDemented
0
195
Member Avatar for HunainHafeez

am using asp.net 3.5(c#) + sql server 200 DB, doing this GIVES me an error , *Error:The multi-part identifier "email@yahoo.com" could not be bound* why ??? using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; …

Member Avatar for JorgeM
0
700
Member Avatar for goyofoyo
Member Avatar for goyofoyo
0
68
Member Avatar for keven.pirritano

I'm creating a web page that will have software information on: basic description, operating system, free/commercial, etc. All the content will be placed (or generated) on one page. Dropdown filters at the top of the content will allow someone to select a "filter" (i.e. Windows) and it will auto remove …

Member Avatar for keven.pirritano
0
400
Member Avatar for double_cola

Good afternoon everyone. I need to write out a simple validation. It needs to validate only if a user enters certain keywords. Here what I have so far: if(!preg_match("Indiana, Ohio", $state)) { $errors .= "You have entered the wrong state."; } What would be the correct preg_match function to only …

Member Avatar for double_cola
0
189

The End.