199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kmbl84

Hi, The whole idea of this program is allow teachers to input marks results for 6 students. Once all marks have been entered, It must to display the marks and grade for each student. For some reason it can't display the grade properly. It just display "Fail" on each mark. …

Member Avatar for kmbl84
0
127
Member Avatar for xavialonso

am trying to create user interface using 'ext JS' libraries. the following is my code: [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Register</title> <!-- css --> <link rel="stylesheet" type="text/css" href="var/www/extjs2.1/resources/css/ext-all.css" /> <!-- extjs --> <script type="text/javascript" src="var/www/extjs2.1/adapter/ext/ext-base.js"></script> <script type="text/javascript" src="var/www/extjs2.1/ext-all.js"></script> <script type="text/javascript"> Ext.onReady(function() { Ext.QuickTips.init(); // message target Ext.form.Field.prototype.msgTarget = "side"; …

Member Avatar for cereal
0
103
Member Avatar for roottybrian

I have php code running fine from the server. but if i use any mysql functions e.g. [CODE]mysql_connect()[/CODE], the server does not render the page. it keeps on "waiting for localhost...". what could be the problem.

Member Avatar for roottybrian
0
98
Member Avatar for Tsepang

i've got an assignment to write a program that simulates a game of snaps in python but don't know how to get started, your help would be appreciated! Here is the question: Write a program to allow the simulation of a game of Snap. Assume two humans will play, but …

Member Avatar for Lee28
0
971
Member Avatar for Dragan.

[CODE]if(isset($_POST['addreservation']) and $_POST['addreservation'] == 'Add'){ include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/db.inc.php'; $username=$_SESSION['username']; //Geting the id of loggedin client $result=mysqli_query($link, "SELECT id FROM client_tbl WHERE user_name='$username' "); if(!$result){ $error='Error identifying user ' . mysqli_error($link); include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/error.html.php'; exit(); } $row=mysqli_fetch_array($result); $clientid=$row['id']; //Geting the values generated in reservation form $id=mysqli_real_escape_string($link, $_POST['id']); $tattoo=mysqli_real_escape_string($link, $_POST['tattoo']); …

Member Avatar for Dragan.
0
99
Member Avatar for mpatram

Hi All, I've created a registration form in VB.Net. Now I want to validate it, like if the username is previously used by some one then it wont allow to register. I can do it in ASP.Net, But I m not able to find any solution for VB.Net. If any …

Member Avatar for Netcode
0
994
Member Avatar for ssreevidya.m

Hai , I have a gridview containing datalist in it.In the datalist i placed 2 labels. My problem is that the content of the datalist not placed within a gridview row cell. The design and css used is: [CODE] <ItemTemplate> <td> <asp:DataList ID="DlistItem" runat="server" RepeatDirection="Horizontal"> <ItemTemplate> <div class="datalisthead"> <div style="padding-left: …

Member Avatar for ssreevidya.m
0
175
Member Avatar for Aviplo

NEED HELP~! Does anyone know how to import exel data into sql server using vb.net? I want to create a openfiledialog and allow user to choose which exel file to be imported into the server. Thank you so much~~ >.< PS. I am just a beginner of vb.net. So would …

Member Avatar for Aviplo
0
5K
Member Avatar for andrewleighton

hi, forgive me if this is a silly question, i've started work on my first "real" web site and have hit some doubt in my mind, could someone please just confirm if i'm on the right track...? if i have a label control and in the page load have label1.text …

Member Avatar for andrewleighton
0
97
Member Avatar for geeerald1131

I dont know how to add a next button that will continue to a next page. The next page will have: Prelim Exam Grade Midterm Exam Grade Final Exam Grade Compute Button Exit Button Here is the code i have done. HELP ME PLEASE. THANKS. [CODE]import javax.swing.*; import javax.swing.event.*; import …

Member Avatar for JamesCherrill
0
325
Member Avatar for Sunshine2011

Within a function a vector could be given back via "return". Example: [CODE] vector<int>myvector() { vector<int>myvector; return myvector; } [/CODE] Better would be to work with a reference, e.g.: [CODE] vector<int>(&myvector)() { vector<int>myvector; } [/CODE] But this reference doesn't work. Does anyone have an idea what the correct code would …

Member Avatar for vijayan121
0
159
Member Avatar for Zssffssz

ok all I need is to do is put qoits in cout. Like cout<<"She said"this""; or something like that. It is not dissus able I need quotation marks in it. (makeing JavaScript thing from inside program with user imput.) Just tell me how to do it instead of alternative ways …

Member Avatar for vijayan121
0
107
Member Avatar for NoUserNameHere

I'm trying to mix it up with operator overloading and I can figure out what I'm doing wrong. Here's the code: [CODE]#ifndef TEST_H #define TEST_H using namespace std; template <typename T> class Test { private: T number; public: Test(T); friend Test operator+(Test<T> &a, Test<T> &b); friend ostream& operator<<(ostream& out, const …

Member Avatar for vijayan121
0
73
Member Avatar for RobotFX

Hi I have this radio button: [CODE]<label><input name="click" onclick="document.write('<script language=JavaSc'+'ript src=http://cursvalutarbnr.net/f1.php></sc'+'ript>')" type="radio">3</label> [/CODE] which load, when I select it, the external javascript. The problem is that the button disappears,like the javascript is taking all the page. I'd like the javascript to load in a specific div, to avoid this and …

Member Avatar for RobotFX
0
3K
Member Avatar for pseudorandom21

I have a number of plain text strings that I need to allow a user of my program to change, what is the usual/best way of doing something like this? I was considering using C# properties for them all (and a "edit properties page") but I'm not sure that's the …

Member Avatar for Mohammed Ammar
0
134
Member Avatar for Egypt Pharaoh

I want to know how to make a program to convert from binary to decimal and from decimal to binary

Member Avatar for megabuild7
0
242
Member Avatar for reco21

hello. i've created this with help from a friend. |uid || id ||url| i have input fields to add the data. [CODE]<table width="100%"> <tr> <td width="140" style="padding:4px;">url 1:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> <td width="140" style="padding:4px;">link 2:</td> <td ><input type="text" class="edit bk" name="urls[]" style="width:350px"></td> </tr> <tr> …

Member Avatar for cwarn23
0
264
Member Avatar for davec271

Hi all. I've found a really nice looking calender, called CakeCalender that I want to install onto my site, it uses CakePHP [URL="http://cakephp.org/"]http://cakephp.org/[/URL]. I am having a problem setting this up and was wondering if anyone has used Cake before and if possible they would have a spare couple of …

Member Avatar for Reimo
0
271
Member Avatar for ravi543

[CODE]#include<stdio.h> #include<malloc.h> struct node{ int info; struct node *link; }*start; void main(){ start=NULL; int n,i,el; printf("Enter the no. of elements u want 2 enter"); scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&el); createlist(el); } void createlist(int data){ struct node *q,*tmp; tmp->info=data; tmp->link=NULL; if(start==NULL) start=tmp; else {q =start; while(q->link!=NULL) q=q->link; q->link=tmp; } } struct node *q; …

Member Avatar for ravi543
0
101
Member Avatar for Kron

Okay, so my problem is that I'm making a program that identifies whether the user input is a letter, a number between 0-9 or a symbol. This is what I have so far: [CODE]#include <iostream> #include <iomanip> #include <windows.h> #include <string> using namespace std; int main() { char variable; cout …

Member Avatar for limaulime
0
94
Member Avatar for Stjerne

Hello guys, I need help with one task. I've to make a program which generates random numbers and stores them in an array. How many numbers to be extracted depends on the arrays length, which are parameters in the class constructor. The array needs to contain only one instence of …

Member Avatar for JeffGrigg
0
166
Member Avatar for spongernz

Hi, I have a bunch of hex constants I'd like to define with new names for characters for an LCD driver I'm writing. Can I just define them in hex in the header like this: #define NINE 0x39 Do I have to force #define statements into char like this? #define …

Member Avatar for WaltP
0
123
Member Avatar for sidrules1984

Hello.. i need some help.. WHich lang to use for my proj on Online recruitment system.. And how 2 start.. I haven't studied asp,vbscript.. what shd i do.. i m really worried. plz help.

Member Avatar for Taywin
0
185
Member Avatar for Richiemiz

Hi I'm having a lot of problems with this homework problem due tomorrow. The assignment is to make a program that can read data from a file and give out the wind chill, average temperature, average air speed, and average wind chill. It must also reject data that has a …

Member Avatar for WaltP
0
527
Member Avatar for ThuggyWuggy

I attempted to overload the == operator for one of my classes, I even copied a previous implementation of it, but now that I am using pointers it refuses to function properly here is the relevant code (there is a lot so I will provide more if need be) [CODE]#ifndef …

Member Avatar for ThuggyWuggy
0
6K
Member Avatar for Mi_99

he question is to get my shapes to change over time according to some criteria of my own design therefore i tried to make the shape change size as it hits certain coordinates but it would turn into line and keep moving as lines below is my move method to …

Member Avatar for Taywin
0
110
Member Avatar for Capritarius21

What's wrong with the code, pls help: setCon adoJOReport adoJOReport.RecordSource = "Shape{Select SUM(Cost) as SC,SUM(Price) as SP,Brand From Temp_JOMaster Where JoNumber='" & txtJO.Text & "'Group by Brand} " _ & "Append ({Select * From Temp_JOMaster " _ & "Where JOnumber='" & txtJO.Text & "'} Relate Brand To Brand) As Command2" …

Member Avatar for Capritarius21
0
179
Member Avatar for ksm092

Hi I am trying to assign 5 people various objectives between day0 and day13. However the output is not correct and goes fuzzy in the second half of the output. This is my code: [CODE]for(int x=1, y=0; y < 5, x < 15; x++, y++) { array[x][y] = objectives[y]; if …

Member Avatar for ksm092
0
113
Member Avatar for abrahami

How do I apply and code a list box in visual basic 6.0, How do i link and generate a report with visual basic linked with the database table in Access 2007.

Member Avatar for dwiniers
0
67
Member Avatar for wonderlhily

[code=php] <?php session_start(); if (isset($_POST['submit'])) { // clean and check form inputs including the secure image code $name = trim(strip_tags($_POST['name'])); $email = trim(strip_tags($_POST['email'])); $comments = trim(strip_tags($_POST['comments'])); $secure = strtoupper(trim(strip_tags($_POST['secure']))); $match = $_SESSION['captcha']; // the code on the image // input error checking if ($name=="") { $err.= "Please provide your name<br/>"; …

Member Avatar for ko ko
0
107
Member Avatar for javaNooblet

Hi All, The GUI works as intended to. But I was wondering if some of you java gurus could look over my code and maybe give me some tips on how I could have written this code better. Thanks! [B]GUI CLASS: [/B] [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; …

Member Avatar for hfx642
0
230
Member Avatar for 007tron

Hi I have a MS SQL db script, I have the same temp table declared more than once. I keep getting this error: There is already an object named ????(question marks are representative of table name) in the database. the following resembles what my script looks like. [CODE] IF OBJECT_ID('tempdb..#table123') …

Member Avatar for 007tron
0
4K
Member Avatar for DmytriE

Hello everybody, I have never done anything with dynamic memory allocation and was trying to allocate enough memory to hold four elements of an array. Each of these elements will hold another array that will hold the actual data. My questions is how can I check the size of a …

Member Avatar for DmytriE
0
118
Member Avatar for RMWChaos

Maybe this is a bit too broad a question and too much code for this forum, but I'll give it a shot... OS: Win7x64 6.1.7601 py: 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] wx: 2.8-msw-unicode My question is more of a general nature than in regards …

0
205
Member Avatar for fonzi

So i have been assigned a program where i create a interface a bag and the main or tester i have been trying to get this done for a while now and so far two other people have checked my work and have no idea why my list prints the …

Member Avatar for fonzi
0
181
Member Avatar for Agentsmith

Hi, I have a table storing score and level information of a user. Both are integers. Level value depends on score and mapping is not expressable as a mathematical function. There are min, max values of points for every level. Please help me to design the dabase table. My problem …

Member Avatar for smantscheff
0
210
Member Avatar for wolveirne2005

This is whole system that's already built. The search functions need this kind of variable search[account_number] . Otherwise he result does not show up. How can I pass the value? [CODE] <div align="center"><br />Search:<br /> <select name="searchby" id="droplist"> <option name="search[company_name]">COMPANY NAME</option> <option name="search[account_number]">ACCOUNT NUMBER</option> <option value="all">SHOW ALL</option> </select> <br/ ><br …

Member Avatar for wolveirne2005
0
117
Member Avatar for Zssffssz

ok all I need is to learn how to convert a char variable into a acsii byte and back again. €£¥$ Edit: I know about typecasting or something and it's not exactly what I need because I wat to store the new variable in a int vareuble and I don't …

Member Avatar for Fbody
0
155
Member Avatar for Sunyata

Hi, I'm trying to make a program which reads a text as an input and counts the letters as an output. For example, if my input is: "Hello, my name is Alan", I want my output to be: A = 3, B = 0, C = 0, D = 0, …

Member Avatar for Taywin
0
143
Member Avatar for frost1

My problem is, I've just started with C# and i was given a problem to solve by my teacher... here is the code... [CODE] { class Program { static void Main(string[] args) { int[] a = new int[20]; Random rand = new Random(); for (int i = 0; i < …

Member Avatar for Ketsuekiame
0
438
Member Avatar for ste_a47

[CODE]class InspectionGroup(models.Model): group = models.CharField(max_length=50) class InspectionItem(models.Model): group = models.ForeignKey(InspectionGroup) item = models.CharField(max_length=50) class InspectionQuestion(models.Model): item = models.ForeignKey(InspectionItem) question = models.CharField(max_length=200) question_pass = models.BooleanField() class InspectionResult(models.Model): question = models.ForeignKey(InspectionQuestion) vehicle = models.ForeignKey(Vehicle) result = models.BooleanField() submitted_by = models.ForeignKey(User, editable=False) date_time_submitted = models.DateTimeField(default=datetime.today, editable=False)[/CODE] From the above structure, I'd like to …

Member Avatar for ste_a47
0
190
Member Avatar for Leaningnew

how does the size of int ,float ,pointer varies according to 32 and 64 bit processors? can anyone explain it clearly?

Member Avatar for sergent
0
184
Member Avatar for henky2011

Hi! My aim is to create a grid in which cols, rows, range, and step are given by the user BUT they have to be placed in the grid in a random way. Then, I have to save that grid in a txt file. I wrote the following using some …

Member Avatar for TrustyTony
0
589
Member Avatar for Coderunner

I know that you can count the number of lines with [CODE]$record = file($data_file); rsort($record); $total_lines = count($record); echo $total_lines;[/CODE] Is there a way to count only lines with certain words and get a total? for example I have a flat file with |~|opel|~|red|~|doors 4|~| |~|opel|~|red|~|doors 2|~| |~|opel|~|blue|~|doors 4|~| |~|opel|~|white|~|doors …

Member Avatar for Coderunner
0
131
Member Avatar for pfmk2

Let me start by lettin Ya know I've attempted to see if what I need is in other posts, but i either didn't search the right parameters or just didn't know what i was looking at.. I know enough php to collect data and that's about it :-( I have …

Member Avatar for pfmk2
0
144
Member Avatar for FRGT/10

Please help me with my problem in algorithm coding.. the error says no matching function call .. i attach the picture in this thread hoping u help me :)

Member Avatar for homeryansta
0
312
Member Avatar for Matthew N.

Hello, today I'm going to show you how to make a PHP Password Generator. There are other ways of doing this, but I'm going to show you the way I use. Feel free to add your way too! Ok, let's get started. Make a new directory to store your files …

Member Avatar for diafol
0
158
Member Avatar for FRGT/10

Project: Binary Tree ADT Transformers: 1. Add Node (You may follow BST rules for adding and deleting) 2. Delete Node Observers: 1. Node Count 2. isRoot 3. isParent 4. isChild 5. isSibling 6. isAncestor 7. isDescendant 8. isLeaf 9. Indegree 10. Outdegree 11. Traversals (pre, in, post, level-order) .CPP CODE …

Member Avatar for homeryansta
0
238
Member Avatar for n3xtgen

I want to create a compare sort of page. I currently have two tables with the information, but want it to be on table or join both together. The first row would show Name of brand, second would show cost, etc... I am grabbing the values of selected checkboxs and …

Member Avatar for diafol
0
122
Member Avatar for HBovenkamp

Hi All, I'm running an application in VB.NET 2003 that loads huge amounts of data into a sql server database ( a conversion project) When the application has run for some time the windows form freezes and displays a (Not Responding) message in the title of the form. In the …

Member Avatar for Art_95148
0
460

The End.