64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Guy Perkins

It's been a while since I have had to create a search box to search and display data from sql data base. Just need a little push to refresh my memory. Thanks

Member Avatar for iamchamith
0
90
Member Avatar for girl.java

hello everyone could u please solve this for me Write embedded JavaScript code in the required HTML tags that accepts three numbers from the user and pring out the maximum as the following result : First Number is : 3 Second Number is : 4 Third Number is : 5 …

Member Avatar for girl.java
0
103
Member Avatar for ruwanaru

What i need is Toggle the each div with the relevant check box ex:- when i checked "[B]div1chk[/B]" i want to toggle "[B]div1[/B]" [CODE] <input type="checkbox" id="div1chk" /> <input type="checkbox" id="div2chk" /> <input type="checkbox" id="div3chk" /> <div id="div1"> div1 showed </div> <div id="div2"> div2 showed </div> <div id="div3"> div3 showed …

Member Avatar for terrial
0
127
Member Avatar for Stefano Mtangoo

Hi guys, its me again. How do you write templates for your sites (without template engine)? Pure php or what? I want to hear how you do it

Member Avatar for terrial
0
96
Member Avatar for ravmonster88

hi experts. this is my first post here hope you could help me.. [CODE] Private Sub FindFile() On Error GoTo x 'capture if error occurs Dim idx As Integer 'index to be incremented For idx = 1 To Combo.ListCount - 1 'loop to find the and load the text file …

Member Avatar for vb5prgrmr
0
80
Member Avatar for Kystadio

Right now, I have a PHP script which - ideally - selects "posts" from a table, based whether or not the the time in the post is greater than the current time. [code]if(isset($_POST['id'])) { $id=addslashes($_POST['id']); $time=date("h:i:s"); $sql=mysql_query("SELECT * FROM public_wis WHERE mig_id='$id' AND time >= '$time'"); if(mysql_num_rows($sql)!=0) { while($rows=mysql_fetch_array($sql)) { …

Member Avatar for pritaeas
0
98
Member Avatar for kobalt

Hello all! I'm very much a noob to c#... and programming for that matter... and xml! So, I'm having troubles with a project that I'm working on that I hope someone here can help me with. I wish to search through an xml file that is generated by a Share …

Member Avatar for kobalt
0
104
Member Avatar for Dazpenn

Hi I was wondering if anyone can help me. I have a program that has an MDIChild form which contains a button that opens up a second MDIChild form. This second form has a listbox checkbox on it that allows the user to select from. Once they have finished selecting, …

Member Avatar for Dazpenn
-1
89
Member Avatar for FancyShoes

I want it so that when a user doesn't enter char r,p,g,m,c,y it will come up and say incorrect input enter 4 correct values. This is what I have. [CODE]while( (g.one || g.two || g.three || g.four) != ('r' || 'p' || 'g' || 'm' || 'c' || 'y') );[/CODE] …

Member Avatar for FancyShoes
0
133
Member Avatar for emilio

hi i wanted to write a windows application that sends keyboard strokes to another application something like a virtual keyboard. i researched the subject and read few articles. i managed to find a code that partially works. in the sample code above i'm trying to send strokes to a word …

Member Avatar for emilio
0
3K
Member Avatar for psychoangelo89

I have a trouble in my login form. The program doesnt execute my else statement, especially if I'm going input wrong usernames and passwords. It just did nothing. NO error warnings, etc... please help.. :( [CODE] private bool CompareStrings(string string1, string string2) { return String.Compare(string1, string2, true, System.Globalization.CultureInfo.InvariantCulture) == 0 …

Member Avatar for psychoangelo89
0
148
Member Avatar for nychick

Hey everyone, I'm trying to implement a operator overload of several operators. I want to make sure my syntax is correct. Here's my old Class implementation: [CODE]#include <iostream> using namespace std; class Date { private: int mn; //month component of a date int dy; //day component of a date int …

Member Avatar for jonsca
0
89
Member Avatar for rt.arti

Hello, I am trying to generate multiple files out of a single text file by changing one parameter. My text file is of the form -- p 3 6 [COLOR="Red"]n 1 1 n 3 -1[/COLOR] a 1 2 0.8 a 1 3 0.7 e 1 2 1 2 0.7 e …

Member Avatar for nezachem
0
100
Member Avatar for mymyzzz

I need to finish this program, but i have no idea how to! please help me figure this out. [code] #include <iostream> #include <fstream> using namespace std; void printShips(char [15][15]); void fire(int row, int col, char ocean[15][15], char &result, char &ship); struct counter { int B, C, D, F, T, …

Member Avatar for Clinton Portis
0
404
Member Avatar for beforetheyknew

Hi guys, I'm returning this, it is similar to how you percieve dollars, $"32.95" etc. I calculate it in cents which is an int, but the problem is the second half cuts off the 10s of cents part if the number is less than that. eg/ 32.08. Any ideas ? …

Member Avatar for gunjannigam
0
81
Member Avatar for mahela007
Member Avatar for RogerI

I need to read in a large amount of data from a csv file into arrays. I am using Numpy as I need to later manipulate and plot the results. I have decided to use numpy.loadtxt as this appears to be the most efficient method to read in the data. …

Member Avatar for RogerI
0
2K
Member Avatar for amel036yippee

Hello! I'm a newbie here... Straight to the point, I tried to create a program as stated in the title above musing C++. Below are the code I used: [CODE]#include <iostream> #include <cstdlib> const board=8; const pop=20; using std::cout; using std::endl; double table[board][board]; int r; int c; int main() { …

Member Avatar for amel036yippee
0
102
Member Avatar for vinnijain

Hi!!!! how can I convert words into numerals...In first textbox i enter word and on button click equivalent numeral is displayed in another textbox for Example we enter "One crore twenty lakh thirty four thousand seven hundred eighty four" , then its corresponding numeral should be "12034784". What will be …

Member Avatar for vinnijain
0
136
Member Avatar for Stefano Mtangoo

I see alot of libraries written in C and I like C++ OOP way. How can I use a given C library functions in C++?

Member Avatar for Stefano Mtangoo
0
176
Member Avatar for draxous

I used below code to display some data using crystal report.i used separate dataSet() object and connected it to the crystal report setDataSourse. There are no compile errors,but after running it gives me the error [B]"Load report failed". [/B] plz help.. The code. [CODE] String ConnectionString = ConfigurationManager.ConnectionStrings[0].ConnectionString; SqlConnection con …

0
51
Member Avatar for tig2810

Hi all I'm new to the Entity Framework and trying to get my head around it but struggling somewhat. I'm trying to do something basic like the below but it bombs out with a 'Null reference exception - Object reference not set to an instance of an object." when I …

Member Avatar for tig2810
0
119
Member Avatar for 07tr0wa07

Hi guys i'm new in C++..:icon_wink: I have a homework that i need to pass soon and i need help because i only have 1 error and i'm staring at it for 2 hours:icon_cry: going back and forth to my book and came up with no solution:icon_sad:. ok so heres …

Member Avatar for Lerner
0
276
Member Avatar for richman0829

I think the pieces, taken separately, are okay, but they don't seem to play together well. [CODE] //lab12: This program requests input of ten employee names and salaries; //a file is created and they are written into it, and the file is closed. //The file is then reopened and the …

Member Avatar for Lerner
0
108
Member Avatar for checker

[CODE]class Database(Student): def __init__(self): g = [] choice = ['Basketball','Football','Other','Baseball','Handball','Soccer','Volleyball','I do not like sport'] data = student.sport k = len(student.fname) print k freq = {} for i in data: freq[i] = freq.get(i, 0) + 1 for i in choice: if i not in freq: freq[i] = 0 for i in …

Member Avatar for checker
0
207
Member Avatar for SoulMazer

Okay, well I've been looking for at least an hour now for some straight-forward python-xlib documentation, and I have been unable to find any. Luckily...I have quite the easy problem. If somebody would be able to help me create a simple script that would say "Hello" every time the left …

Member Avatar for SoulMazer
0
586
Member Avatar for BigTito89

Hello, for my final team project for C++ we are making a simple space invaders clone with the [URL="http://www.libsdl.org/"]SDL[/URL] libraries. Most of it is working great so far but in order to 'destroy' the enemies, they must not be drawn anymore and should be destructed. ER is just the # …

Member Avatar for BigTito89
0
161
Member Avatar for ahspats

How could one find the length of longest row of same elements in a list. For example if i have a list list = [0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1] and i …

Member Avatar for woooee
0
145
Member Avatar for girl.java

hi all this is my code i got an error but unfortunately i can't see it:( please help me.... [CODE] public class QUSTION5 { public static void main (String args[]) { double n = 20; int counter= 0; for (int t =0; t<=25; t++) { n= (220/(1+10*Math.pow(0.83>,t))); System.out.println("At t = …

Member Avatar for girl.java
0
113
Member Avatar for Kadjii

Hi, I was wondering if it was possible to update the value of a mySQL cell by a method similar to using += in php code. For example, I'd like to do: [code] $sql = "UPDATE inventory WHERE userID = '$_SESSION[userID]' SET money+='$ssmoney'"; [/code] I know I can instead run …

Member Avatar for Kadjii
0
128
Member Avatar for amishraa

So I have calculated the total of students on all of their 6 grades but now I want to be able to calculate the average of all the grades and list the averages next to the total column. Any help would be greatly appreciated! [CODE] //preprocessor directive #include<iostream> #include<iomanip> #include<fstream> …

Member Avatar for cibaiciao
0
394
Member Avatar for confusedndazed

Hello guys....I appreciate any and all replies I get but I really needed to be [I]shown[/I] how to incorporate a program title and a function call into this code and have it properly execute. I am really lost with programming so I don't usually understand explanations unless I can actually …

Member Avatar for confusedndazed
0
102
Member Avatar for itisnot_me

ok so what i am trying to do it have the app that i am working more private as in make the browser clear the data with in the input forms so that it is not displayng info. for example if i was to type my name in a name …

Member Avatar for itisnot_me
0
90
Member Avatar for Tekkno

I have a javascript that displays a countdown in the browser. The problem is that if the element does not load immediately the countdown turns to negative. Here is the script: [code=javascript] <script> var time = 10; //How long (in seconds) to countdown var page = '<?php echo $page ?>'; …

Member Avatar for Airshow
0
258
Member Avatar for pac-man

Quick q, What function takes precedence with a template function vs a non-template function? I set up the following code but my result had the following output Template Template even though a guide I read said it should read: Template Non-template [CODE]// Testing template function vs non-template function to see …

Member Avatar for mrnutty
0
113
Member Avatar for agent154

OK, so i'm trying to write some code to save a file in my default documents library in windows 7... This is not C:\Users\username\Docuements as is default... I have added another folder in my root D:\ to handle documents. Normally when I save a file using word or any other …

Member Avatar for sknake
0
165
Member Avatar for gp04lch

hey guys, recently i came across a code to parse the name of an enum and was wondering if there's anything similar to doing it for a textbox: the coding looks something like this: [CODE]int result = (int)Enum.Parse(typeof(Cars.Engines), inputfixed, true);[/CODE] i would actually like to use the above code structure …

Member Avatar for pokopolo
0
92
Member Avatar for Snippset

Hi, I need to check if two provided words doesn't have the same letter in it. And as I just started with this text thingy, I don't really know much about. For starters I got this code: [CODE] if (strcmp(Z1, Z2) == 0) Memo1->Lines->Add("Z1==Z2"); else if (strcmp(Z1, Z2) < 0) …

Member Avatar for Snippset
0
170
Member Avatar for sidra 100

can anyone guide me about the type of questions which can b asked in the paper of programing. i m student of mcs first semester.plz help me

Member Avatar for mrnutty
0
64
Member Avatar for guccitan88

I'm not understanding my assignment and what I've read has really confused me. This is what I need to do: write a function to initialize an integer Partially Loaded Array with distinct random values. The array has room for 50 elements. The actual number of elements to store will be …

Member Avatar for guccitan88
0
134
Member Avatar for vizz

How to send SMS on mobile from website for user account registrration using PHP, Mysql ? How to send SMS that contain username & auto-generated password? Plerase, anybody ?......, it's urgent.............. THANK YOU in advance

Member Avatar for vizz
0
731
Member Avatar for maxicube

urmm, hey guys. im getting a 503 error on my program i'm making. It's used to backup multiple files to a online ftp server. and on the 5th file it gets it on this line... [CODE] Stream requestStream = request.GetRequestStream(); [/CODE] heres my code (for the upload)... [CODE] public void …

Member Avatar for maxicube
0
279
Member Avatar for grib

I'm attempting to use a specialized function to search an array of c strings for the longest (or first tied for longest) member. Right now, I'm getting [inlinecode]line 87 error: invalid conversion from `char' to `const char*'|[/inlinecode] on my comparison statement. If I switch the templates' inputs to const, I …

Member Avatar for DavidRead
1
125
Member Avatar for bharanidharanit

Hello sir, I am creating student attendance tracking system in asp.net. With attendance i need to track students attendance every day and want to generate charts with those data. Charts for Daily Attendance report, Weekly Report, and monthly Report. For this how to design database in msaccess?

Member Avatar for bharanidharanit
0
935
Member Avatar for bharanidharanit

Hello, How to create hover menu. I want to create exactly as attached in the picture. When i mouse over the attendance, the menu should be displayed as such in the picture. Anyone help in this? Thankyou. [ATTACH]12847[/ATTACH]

Member Avatar for bharanidharanit
0
300
Member Avatar for bharanidharanit

Hello sir, how to change this coding to vb.net coding? [CODE] Stream photoStream = PhotoUpload.PostedFile.InputStream; int photoLength = PhotoUpload.PostedFile.ContentLength; string photoMime = PhotoUpload.PostedFile.ContentType; string photoName = Path.GetFileName(PhotoUpload.PostedFile.FileName); byte[] photoData = new byte[photoLength]; photoStream.Read(photoData, 0, photoLength); [/CODE]

Member Avatar for bharanidharanit
0
152
Member Avatar for bharanidharanit

Hi used the below coding for enrypting and decrypting a text. But with this i dont know how to save to a database, when i tried i am getting many errors. How to do this? [CODE]Private Sub cmdEncrypt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' Encrypt MyText …

Member Avatar for bharanidharanit
0
109
Member Avatar for gedas

hey everyone, i am trying to create a web page using Ajax to create a dictionary well simply when you write down a word its definition would show up straight away. the definition would be stored in the file followed by the word. can anyone recommend me how to start …

Member Avatar for gedas
0
243
Member Avatar for samarudge

Hi, What is the function/opperator to calculate a power with C# I tryed [code=c] powerof = anumber ^ anothernumber; [/code] and that clearly doesn't work (1^3 is 2, 2^3 is 1 etc.) How do I do it??? I looked under [icode]Math.[/icode] functions and there was nothing and I spent ages …

Member Avatar for ddanbe
1
184
Member Avatar for Cy137

So far, this has worked relatively nicely. However, I am having trouble in outputting to two separate files, and I'm hoping that you guys and gals can help me out. I'm reading in from a file, and outputting to two different files, based on what the input is. If anyone …

Member Avatar for Cy137
1
184

The End.