199,114 Archived Topics
Remove Filter ![]() | |
[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 = … | |
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. | |
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 … | |
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 … | |
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 | |
How can I use Mysql for JDBC connection.How to make data source? I can able to done with MS-SQL. | |
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 … | |
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). | |
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; } … | |
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.:) | |
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 … | |
hi all, i want to display some data in dropdown from database using java.please send the code | |
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 … | |
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. … | |
![]() | 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 = … ![]() |
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 … | |
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 … | |
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 … | |
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/"; … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
#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], … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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] … | |
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 -> … | |
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 = … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
[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++) … |
The End.