199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for muralibobby2015

[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = …

Member Avatar for venkat0904
0
124
Member Avatar for jrosh

I got a query to calculate the percentage as , [CODE] Select votes, rating, votes/sum(votes) as percentage [/CODE] But I want to take the values from two different tables. I tried [CODE] Select elec.sum(votes) from elec, stat.sum(rating) from stat where year=2009, elec.sum(votes)/tat.sum(rating) as percentage; [/CODE] This doesn't work. plz help.

Member Avatar for jrosh
0
100
Member Avatar for n_hernandez

I have created a website using dreamweaver. I am very new to all of this and have kind of been learning along the way. At any rate, I CANNOT get the booking request form to submit the gathered info to my email. I do not like the mailto: option because …

Member Avatar for phpbeginners
0
182
Member Avatar for whizkidash

Hi Team, I have multiple shell scripts created(already prepared), but my Project Manager insisted me to run/call the script as one script.. eg: Script1-"It finds whether file exist or not" Script2-"It replace a word in a file" Script3-"it searches the line and linenumber of a file" i need to run …

Member Avatar for sknake
0
216
Member Avatar for phouse512

Hello, I've looked on google for information about storing multiple pieces of information in one database column, but I can't find anything helpful. If I want to have some sort of etc. inventory, and there is more than one 'item', how would I store multiple items inside the database? Thanks

Member Avatar for Designer_101
0
110
Member Avatar for ramjeev
Member Avatar for masijade
0
195
Member Avatar for angelsherin

hi...I got solution after initializing stInfo..Thank u soooooooooooooooooooo much.....Thanks for ur helping heart... Could u plzzzzzzzz help me to solve another one problem... i have one dll created by using C#.Net...I refered that dll and i could access all the C# methods inside my VC++ applications.. this is the method …

Member Avatar for amit.mcanitw
0
184
Member Avatar for jiten_raulo

I am little bit confuse about this operator. Can any one tell me what does operator -> internally. And what are the importance of -> in pointer? Appreciated in advance for help (all daniweb group).

Member Avatar for dkalita
0
81
Member Avatar for Justea

hi, Im coding a sodoku program base on backtracking, but somehow it did not work as what I expected, can help me figure out what's the problem? [CODE]sodoku.c #include <stdio.h> #include <stdlib.h> #define true 1 #define false 0 void printGrid(int board[]) { int i,j; if (board==NULL){ printf("No Solution\n"); return; } …

Member Avatar for dkalita
0
74
Member Avatar for ArunRaj.SRM

Hi, Can anyone provide a sample application that usses a login page, in which users can login and the login details will be checked from the oracle db. Thanks in advance.:)

Member Avatar for peter_budo
0
87
Member Avatar for pytup

I've got that. that should be displayed after log on ( it can be rewrite with use IF statement) [CODE]Private Sub cmdLogon_Click() Dim age As Integer age = InputBox("please enter your age") Select Case age Case Is >= 18 MsgBox "you are" & " " & age & ", let's …

Member Avatar for akhileshbc
0
128
Member Avatar for muraliinfy04
Member Avatar for Ashutosh shukla
0
705
Member Avatar for Jaisonkv

Hi.... I am a student. When i tried to connect VB with Access, it is giving me this message "Run-time error 13, Type Mismatch" Below is the code [code=vb]Dim DBase As Database Dim RBase As Recordset Set DBase = OpenDatabase("DB Name") Set RBase = DBase.OpenRecordset("Table name") [/code] The funniest thing …

Member Avatar for akhileshbc
0
138
Member Avatar for Israelsimba

My subscription system is now running though with errors here and there.the error that concerns me a lot is a runtime error that says [QUOTE]multiple steps generated an error check value status[/QUOTE] and points to this code....[CODE]r.Fields("companyphone") = txtcphone.Text r.Fields("companywebsite") = txtcwebsite.Text[/CODE] and this code is in my save button. …

Member Avatar for akhileshbc
0
106
Member Avatar for leegeorg07

Hi, i currently have these 2 files: [code] #!C:\Python26\python.exe #index.py print 'Content-type: text/html\n\n' print '<html><head>' print '<title>My Page</title>' print '</head><body>' print '<h1>Powers of two</h1>\n<ol>' print '<form action="sqr.py" method="post">' print '<label>How many numbers?</label>' print '<input type="text" name="b"/>' print '</ol></body></html>' [/code] and [code] #!C:\Python26\python.exe #sqr.py import cgi a = cgi.FieldStorage() b = …

Member Avatar for leegeorg07
0
255
Member Avatar for TheManual

I have managed to create a custom sized grid which prints correctly but when I try and print X or 0 a new line is started. Please see the "test" result below. [code] def createBoard(): global rows,columns,board rows = input("How many rows (more than 4)? ") columns = input("How many …

Member Avatar for TheManual
0
323
Member Avatar for marulu

I am in the process of learning PHP with JS and Ajax and have the foll. problems. I have created a class to generate master data entry screens. (1) Javascript code that works when I run master.class.php independently does not work when I run users.php. I came across this problem …

0
145
Member Avatar for Carcinosi

Hello, I have a MySQL 5.0 Database used for management of my service, with 13 tables. The two tables most important now are "customers" and "cust_packages". The table "customers" has one column "cust_email". This column has e-mails of customers of the my service. The table named "cust_packages" has one column …

Member Avatar for nav33n
0
129
Member Avatar for dpatz

Hi, I am reading in a bunch of files to upload but they are in an array: [CODE]<input id="tab1file0" class="tab1Files files" type="file" name="tab1file[]" /> <input id="tab1file1" class="tab1Files files" type="file" name="tab1file[]" />[/CODE] To upload the files I call a function uploadFile() which looks like this: [CODE]function uploadFile($thefile) { $base_path = "files/"; …

Member Avatar for network18
0
166
Member Avatar for Evenbit

[i]Taking the "fright" out of Opcodes and Hex-numbers.[/i] High Level Assembly (HLA) is a modern [b]assembler[/b] + [b]standard library[/b] package that allows a programmer to ease his way toward ASM coding by leveraging concepts already learned from typical high-level languages. By using HLA, one can investigate and play with a …

Member Avatar for borland7
0
361
Member Avatar for matrix0978

hey guys, i programmed a bubble sort function in C and it doesnt seem to be sorting properly. Ive searched the forums and have seen similar posts and tried them but they dont work. :( Hoping someone could look over it to see if the concept/sytax is right. [CODE] typedef …

Member Avatar for matrix0978
0
243
Member Avatar for tiger86

Hey; I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really …

Member Avatar for codejoust
0
273
Member Avatar for yasaswyg

So I have part of my code done and I'm stuck on how to sort structures. This is the code i have until now. Its supposed to ask the user 3 things title, artist name, rating of song and im supposed to ask the user to sort them in certain …

Member Avatar for dkalita
0
203
Member Avatar for Bluesilver

I need help on an assignment I have. The first part was to write a program that would declare an array with 150 elements, assign the "#" symbol to each element, then print the elements in such a way that it would spell a letter (in this case, "A") within …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for imolorhe

hello. please i would want to know how i can communicate with the system and find the system's present status such as logging off, shutting down, etc. vb codes would be most appreciated. thaNKS

Member Avatar for abu taher
0
80
Member Avatar for vuyiswamb

Good Day All am restoring a Database Programatically in Sql. Now if the backup is located in the remote machine i use a Share [QUOTE]\\Vuyiswa\MyShare\[/QUOTE] but i will get the Following Error [QUOTE] Exception caught in: ExecuteStoredProc: The file "\\Vuyiswa\Databases\\REmoteTest33.mdf" is on a network path that is not supported for …

Member Avatar for Ramesh S
0
198
Member Avatar for angermanaged

I am having a problem wih the compiling of my code. The whole program consists of a driver program and a header file. the problem is showing up around where it is compiling the header file. since the header file only has template functions in it and no input file …

Member Avatar for dkalita
0
120
Member Avatar for InsaneVr6

I am having trouble getting PHP to run on Windows 7 under Apache. I know I installed everything properly because I have them running on 3 different machines (one with XP, one with Vista), but for some reason when I use my phpinfo(); script it shows up as plain text …

Member Avatar for network18
0
83
Member Avatar for Syakoban

Hi, We are web/Flash people but were asked if we can take on a project that I would describe as creating a shell environment for Windows (probably XP), to hide the normal Windows Interface. The idea is for the company's employees to work in this environment and only have access …

Member Avatar for Ancient Dragon
0
99
Member Avatar for steball

I am trying to load a list of image files into an image array. The following code snippet works: Graphics gImage(hdc); Image iTiles[intNumTiles] = {L"Image[0].jpg", L"Image[1].jpg", L"Image[3].jpg", ...}; gImage.DrawImage(&iTiles[0], 100, 50); gImage.DrawImage(&iTiles[1], 140, 90); gImage.DrawImage(&iTiles[1], 180, 130); ... The problem is, I don't know how many image files there are, …

Member Avatar for Ancient Dragon
0
135
Member Avatar for valkerye

I'm having a lot of issues with a program I'm working on and I really use any suggestions I could get. The purpose of the program is to take an input file that has a users name, the number of minutes in their call plan, and the number of minutes …

Member Avatar for vmanes
0
165
Member Avatar for gerard4143

I wrote this very small program that works fine until I remove the comments for the fprintf function. Basically the program will prompt the user for a numeric value, when the user guesses right(1234) the program exits. When I remove the comments the program never exits...Does anyone have any idea …

Member Avatar for gerard4143
0
133
Member Avatar for cabosun

So I am suppose to write a program that will implementing one method if computing checksums for a file containing integers. I am executing the program by a command line from the following form: p4a inputfile outputfile I can compile the program in Dev C++ compiler with no errors. But …

Member Avatar for gerard4143
0
81
Member Avatar for valkerye

I'm having an issue with an end of file while loop. I have narrowed a problem with a previous program into a smaller bit of code and the error is in the read in and i hove no idea what to do about it... I have done this kind of …

Member Avatar for Ancient Dragon
0
199
Member Avatar for fiz

#include<stdio.h> void AddMatrix(int[2][3],int[2][3],int[2][3],int,int); int main() { int i,j; int matrixA[2][3], matrixB[2][3], matrixC[2][3]; printf("This Program is to find the summation of matrixA and matrixB\n\n"); for(i=0;i<=1;i++){ for(j=0;j<=2;j++){ printf("Please enter matrixA[%d][%d]:",i+1,j+1); scanf("%d", &matrixA[j]); } } printf("\n\n"); for(i=0;i<=1;i++){ for(j=0;j<=2;j++){ printf("Please enter matrixB[%d][%d]:",i+1,j+1); scanf("%d", &matrixB[j]); } } printf("\n\n"); AddMatirix(matrixA,matrixB,matrixC); return 0; } void AddMatrix(int matrixC[2][3], …

Member Avatar for xavier666
0
105
Member Avatar for pankaj.garg

i have 2 forms..when i start my application..form1 loads...then i navigate to form2 and adds some data in database using controls on form2, which should also reflect on form1... My data is not getting reflected on form1, after i hide form2...before giving "form2.hide", i tried giving "form1.show" and "form1.refresh" but …

Member Avatar for abu taher
0
274
Member Avatar for Danman290

I'm new to this forum and to python in general, so be easy on me please. :icon_smile: I'm making a class to handle all events including mouse events. (I'm using pygame by the way) Heres how it looks so far: [CODE] class Event: #controlls all actions relating to events including …

Member Avatar for Danman290
0
16K
Member Avatar for lookatmills

If I have a text file that contains strings and integers such as: Alabama 3200 Denver 4500 Chicago 3200 Atlanta 2000 what code could I use to print the smallest number (2000) after reading in that textfile. I know I first have to split the text so I'm just operating …

Member Avatar for pythopian
0
71
Member Avatar for venkatnams

[B]hello everybody, im venkat doing my b.e 3rd year... Im currently working on my project of college administration system using vb6. I need help on how to save an image in the access database...i have got the code on how to browse an image. but i'm not able to find …

Member Avatar for RobCr
0
3K
Member Avatar for .11

Hey everyone... Well I am sorting items based upon a number. My first case is if tail == null, if so that the first element to be added in the list. My second case is if the element I want to add number is greater than the tail. If so …

Member Avatar for .11
0
130
Member Avatar for mebob

Hi, i have two questions about making a c++ based programming language. the first: is there a c++ function or something that can separate text by commas and parenthesis, so if i wanted to write function [I]foo[/I] with argument [I]arg1[/I] and [I]arg2[/I], i would need code to take foo(arg1,arg2) and …

Member Avatar for mebob
0
102
Member Avatar for leoeroy

I need help with my java program. I can't seem to figure out how to print my output in 10 numbers and then go to the next line. For example: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 here's my code [CODE] …

Member Avatar for leoeroy
0
108
Member Avatar for persianprez

I should be getting this as my output, but it keeps going through each result: [CODE]10 -> 5 -> 16 -> 8 -> 4 -> 2 -> 1 ; length = 7 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> …

Member Avatar for persianprez
0
125
Member Avatar for Bhuddha

Hey, I'm trying to get a form submit to work, I've got this made: <?php $to = "xxx@xxx.xxx" ; $subject = "Application form" ; $firstname = $_REQUEST['first_name'] ; $charname = $_REQUEST['char_name'] ; $class = $_REQUEST['class'] ; $level = $_REQUEST['level'] ; $age = $_REQUEST['age'] ; $timezone = $_REQUEST['timezone'] ; $raidavail = …

Member Avatar for phouse512
0
112
Member Avatar for donaldw

I am writing a program which should output some frequency shift keyed (FSK) audio. I am using a sin(...) function to find some values to plug into an array of unsigned ints which I am outputting using waveOutWrite with a sample rate of 44100 specified in the header. The values …

Member Avatar for donaldw
0
513
Member Avatar for thure

I'm having trouble with a forking program. One process writes to a file, the other waits for the file to be written, prints something out, then deletes it. They essentially process in order based on whether the file is there or not. The processes should be outputting more useful information …

Member Avatar for thure
0
115
Member Avatar for ytregnn

I just bought this script; [url]http://www.scriptsez.net/index.php?action=details&cat=Reviews+and+Ratings&id=2519672139[/url] You can see a demo of the script here: [url]http://www.scriptsez.com/ez_comment/demo.html[/url] I'd like to create an 'average' of the total votes for each review/comments. Is this possible to do in an easy way? I would also like to create a top 10 list based upon …

Member Avatar for diafol
0
91
Member Avatar for abie

I am trying to optimize code for Monte Carlo simulation. Even minute performance differences piles up after 100 million iterations and thus I need to squeeze every nanosecond from math operations! One area where I thought I could save a lot stems from the fact that I only require precision …

Member Avatar for mrnutty
0
173
Member Avatar for webmastercook

I have a clone script and i have uploaded it to my server i followed the instructions but to be frank with you all i don't have a clue whats happened or why its happened but i keep getting error page at this site [url]www.freefacebookinfo.co.cc[/url] "Internal Server Error The server …

Member Avatar for webmastercook
0
142
Member Avatar for axed

[code] vector<int> vi(3); for (int i=0; i<vi.size(); i++) { cout << vi[i] << endl; } [/code] output1: 0 0 0 [code] vector<int *> vi(3); for (int i=0; i<vi.size(); i++) { cout << vi[i] << endl; } [/code] output2: 0 0 0 [code] vector<int *> vi(3); for (int i=0; i<vi.size(); i++) …

Member Avatar for mrnutty
0
111

The End.