199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jrotunda85

My site is broken into three different categories (which are stored on 3 separate tables) and I am looking at creating a functionality to let a user upload photos. Ideally, I would like the following to happen: [LIST=1][*]A user is viewing a single retail store on the site, for example …

Member Avatar for jkon
0
170
Member Avatar for SuPrAiCeR69

User clicks on a url, ie: example.com/AEQ438J When I perform this in the code below: [CODE] $referrer = $_GET['_url']; // echo $referrer displays the referrer ID contents correctly as "AEQ438J" if ( ! empty($referrer)) { $mysqli->query("UPDATE coming_soon_emails SET clicks = clicks + 1 WHERE code='" . $referrer ."'"); } // …

Member Avatar for SuPrAiCeR69
0
230
Member Avatar for jackmaverick1

Hi! I read the clearing input buffer article on the top of the c++ forum but I don't really get it, and it doesn't work. This is my problem, I know that cin is just like a file in that it has a buffer (correct me if I'm wrong, I …

Member Avatar for jackmaverick1
0
206
Member Avatar for harinath_2007

hey. i want to send a mail from my java application. the code below works fine except that it results in authentication error in runtime.. here is the code.. import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.Message.RecipientType; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class SendMail …

Member Avatar for mKorbel
0
250
Member Avatar for G_S

Hello I'm trying to make a verb conjugator for Spanish. The problem is that I need to get the last two characters in the verb to be able to determine the verb group to which it belongs. In Spanish, conjugation depends on the verb ending, among other factors. Verbs end …

Member Avatar for G_S
0
23K
Member Avatar for sdr001

Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my …

Member Avatar for sdr001
0
117
Member Avatar for NOVICE3

I was directed on how to read a hex file into an array and it worked out very well. I got the array loaded up from a file that contained hex bytes between 00 and ff. However, when I when to look at the decimal values in the array by …

Member Avatar for zachattack05
0
111
Member Avatar for highflyer8

Let's say you have made a class called threevector which takes stores three doubles. Then you define another class, a fourvector, which stores four doubles. I have seen this syntax used for the constructor of the fourvector: [CODE]fourvector(double fourth, threevector one_two_three): threevector (one_two_three) { fourth = 0.0; }[/CODE] I understand …

Member Avatar for Saith
0
137
Member Avatar for @Kui

Hi i have a program in which i want the main form to get information either from the login form or from the sign up form depending on which one is used. Here is the code below. The information does not seem to appear although there is no error. Please …

Member Avatar for Unhnd_Exception
0
268
Member Avatar for linuxoidoz

For example I have a non-ordered list of values [10, 20, 50, 200, 100, 300, 250, 150] I have this code which returns the next greater value: [CODE] def GetNextHighTemp(self, temp, templist): target = int(temp) list = [] for t in templist: if t != "": list.append(int(t)) return str(min((abs(target - …

Member Avatar for linuxoidoz
0
770
Member Avatar for Mike Bishop

I have a combo box with a list of my customers, when a user selects a customer i have the customer code populate a label called LBcustomer. here is how i populate my combo box [CODE] Dim connString As String = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV …

Member Avatar for Unhnd_Exception
0
152
Member Avatar for trume

Hello, How can I do it on a recursive way? (Function ''plus'' needs to call itself) [CODE]#!/bin/bash function plus { let GLOBAL=$GLOBAL+$1 } GLOBAL=0 n=$1 for ((i=1; i<=n; i++)) do plus $i done echo Answer: $GLOBAL[/CODE] Any help is welcome! Regards, trume

Member Avatar for griswolf
0
89
Member Avatar for jkoske

I am having problems accessing the members of the base class in my derived class. Is there anything wrong with the way I defined my base class as in: template <class T> class Stack : private Llist<T> Is there anything wrong with that? I am getting errors from gcc in …

Member Avatar for jkoske
0
214
Member Avatar for pythonbegin

Hi All Hope everyones doing good. I have two \t files with 3 columns, file1 contains 600050 rows and file2 contains 11221133 rows. I am comparing file2 with file1 to match common entries in first two columns, if file1[0:2] in file2[0:2 ,] write file2[0:2]+column 3 else fil1[0:2] + 5. I …

Member Avatar for griswolf
0
1K
Member Avatar for pink_872

I am trying to read from a txt file and counts the number of times each word appears. The problem is that it counts the EOL characters as well. I tried to use the rstrip, still it didn't do anything. So how can I handle these end-of-line characters? Please help. …

Member Avatar for griswolf
0
174
Member Avatar for Perl_enthusiast

Hello everyone who reads this. I am currently creating a program in which the user inputs a booking reference which will allow them to overview flight details that they have added to previosu flights. I have been having trouble working out which direction I should follow to sort out this …

Member Avatar for Perl_enthusiast
0
961
Member Avatar for m_wylie85

Hi all I need a bit of help I don’t know what I am looking for, basically I want a rich text box to display public variables like (pizza toppings dinks ect that have been selected in other forms) these variables have declare in a module. But I want the …

Member Avatar for codeorder
0
83
Member Avatar for lynnajoe

Hi, The following code is from a textbook. I cannot get it to work. Would someone be so kind as to look at the code as I am coming up with two errors. They are the two lines towards the bottom that read: int die1 = 1 + randomNumbers.nextInt(6); int …

Member Avatar for lynnajoe
0
216
Member Avatar for Kath_Fish

hi, I now face some problems in saving the content of the listBox to the exist text file. i need to append the content to the text file and canot overwrite the content in the text file.Who can help me..? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write, FileShare.ReadWrite);//create text …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for Nevillelajru

I have a datetimepicker which reads a date as dd-mm-yyyy. the sql im using(sql server 2008) is only reading mm-dd-yyyy. i am having a problem with changing the format of how the date is saved. i put a catch to the code and this came up System.Data.OleDb.OleDbException: Conversion failed when …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Member Avatar for Vega_Knight
0
1K
Member Avatar for digitup1

I am trying to time the execution of a quicksort algorithm in C++ but for some reason it constantly returns 0 for me, which clearly can't be right! I don't know where I am gooing wrong, so any help would be greatly appreciated!I have the code done for arrays of …

Member Avatar for template<>
0
191
Member Avatar for magnetpest2k5

Hello, I am looking into the matplotlib module to plot my data. The graph that I am interested is in the following code. Now I want to mention some labels over the each bar plot mentioning some string and values is there any function to do? Also I want to …

Member Avatar for GDICommander
0
216
Member Avatar for Kirielson

Thanks for helping me out with my coding last time. Now I have an error with a class not found for my servlet. In the log, the following shows up: [CODE]SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c0e45a cart.CartServlet java.lang.ClassNotFoundException: cart.CartServlet[/CODE] I've compiled all of the …

Member Avatar for Kirielson
0
136
Member Avatar for duranvskp

Hi I'm trying to build a master page. What I'm trying to do is have a header in the master page with login and register link buttons (which would change to username and sign out) and there are content pages like home.aspx, shoppingcart.aspx, checkout.aspx which would inherit the master page …

0
184
Member Avatar for benjybob

hi, i have a small problem with the rand operator. at first i tried using it without srand but gave me the same value each time. i have inserted srand(time(0)); but my compiler throws me up these errors: 1>c:\users\ben\documents\university work\year 2\c++\code\myc++\spritelab\asteroidsgame.cpp(17): error C4430: missing type specifier - int assumed. Note: …

Member Avatar for benjybob
0
425
Member Avatar for cycleFun

Hi all, I re-post my previous thread I sent 2 days ago, because I am still having this problem with a php email application: the code works fine, sends email messages and picks up the attachment and its path as well, but instead of placing the attachment to the attachment …

Member Avatar for diafol
0
261
Member Avatar for a.muqeet khan

hello ppl i am a new member of the programming club it been a week since i begin to program and i am doing it persnaly so i am sorry if what i posted is stupid but i want u u guys to have a look and tell me whats …

Member Avatar for a.muqeet khan
0
115
Member Avatar for supriyabirje

[B]hi friends..[/B] please help me with this little code... i have a html form with a few text boxes and a drop down menu.... On page load I want to blur the drop down menu... I have blurred the text boxes using [CODE]document.getElementById['id-of-text-box'].blur();[/CODE] i tried the same for select element …

Member Avatar for diafol
0
222
Member Avatar for Kadafiz

hey ... how can i delete multiple raws in a table at once using check box.. i mean if i want to delete all data i can select all check boxes and click delete button.. plz help me..

Member Avatar for diafol
0
72
Member Avatar for subith86

Hi friends, I was trying out some inheritance related stuff and found something. I just want to know the reason why. I have a ParentClass and a ChildClass. Both have an integer named [B]commonVar1[/B]. Also both have a getter method of the same name. Here goes the code. [CODE]class ParentClassOT …

Member Avatar for template<>
0
122
Member Avatar for hopefree

The problem is: Given two sorted lists, L1 and L2, then how i write a procedure to compute L1 n L2 (intersection) ? can anyone help me , please?

Member Avatar for Mitja Bonca
0
157
Member Avatar for COL_Milkshake

I'm working on a program using heaps and I have a few errors that I can't quite figure out. The first is error C2143: syntax error : missing ';' before 'using' line 2 and the second is error C2011: 'Heap' : 'class' type redefinition line 8 [CODE]#include <iostream> using namespace …

Member Avatar for template<>
0
110
Member Avatar for rohit2

Hi, I am trying to create an editor using JTextpane. Now I need to show a dynamic pop up menu while pressing Ctrl + space. But the problem is that I can trigger the pop up menu only by right click of mouse. The code snippet that I used is …

Member Avatar for mKorbel
0
186
Member Avatar for aaraf

hello I just started using headers and I have few problems that I don't know why and how to fix them I'am trying to set authentication for 6 users each one of them can't access his account unless the admin is logged in else they have an error message but …

Member Avatar for aaraf
0
107
Member Avatar for kay21

Hi everyone, Can someone please explain how to determine cardinality ratio for a relationship. For example; In a database for a hospital there is an entity Doctor and Patient. One or more doctors will treat a patient. So, is the cardinality ratio between Doctor and Patient is M:1 (one or …

Member Avatar for kay21
0
1K
Member Avatar for TheSassyDragon

Im starting to make a social network using all php, and I have a class that starts the session in the constructor, with session_start(); and tests if they are logged in. if at the end of that file I call the constructor... $session= new Session();... wouldn't that automatically start the …

Member Avatar for tinymark
0
150
Member Avatar for hilo890

I have a little program that I was testing strings with, for some reason when I add to much to a string variable, and run the program, the console cursor just flits around the screen (and the console doesn't clear, which is before any output was even supposed to happen), …

Member Avatar for Goalatio
0
144
Member Avatar for highflyer8

Hi, I don't understand the need for the while statement. Any help would be greatly appreciated. [CODE]double michel() { double x, y; do // The loop computes points on the graph of y against x. { x = 53.0*rand()/RAND_MAX; // x is the momentum. x is randomly generated. Min x …

Member Avatar for template<>
0
113
Member Avatar for Nat_xo

Okay, So I'm currently working on my A2 computing project, and I am having slight difficulties updating and saving the data in my database when it is entered on a form in VB. I cannot find any reason why it wouldn't work, but if someone could suggest a better way …

Member Avatar for Nat_xo
0
221
Member Avatar for assgar

I am trying to use a single select to get the first and last name for a group of users. Here are the two approaches (Test 1 & Test 2) I tried to get the data. Both approach gave the same error. [CODE] Error: Unknown column 'norma' in 'where clause' …

Member Avatar for assgar
0
1K
Member Avatar for andrewtrench

I have a foreign key linking two models. One is called ZumaDirectors, the other ZumaConsolidated. For some reason I cannot access fields on ZumaConsolidated from ZumaDirectors using foreign key. I can do this without a problem on ZumaDirectors with a foreign key linked to another table. I want to be …

Member Avatar for Kruptein
0
160
Member Avatar for cdn88

Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments …

Member Avatar for Ancient Dragon
0
224
Member Avatar for Wakesta

What free C++ programming tools do people recommend? And just to check I would be able to run my programme from this tool?

Member Avatar for Ancient Dragon
0
247
Member Avatar for makibao

please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know …

Member Avatar for Ancient Dragon
0
138
Member Avatar for rajandass65

hi, how to use different templates in cmsmadesimple i.e index page have template A and other pages will use template B. regards, rajan

Member Avatar for diafol
0
72
Member Avatar for waqaspuri

Hi Experts! Following mentioned code, displays the thumbs images in the out of series sorting, the files in the directory are copied by using the numeric code, e.g. 1.jpg, and 2.jpg .. onwards, if exports can change a code, in order to help out, that the script display the images …

Member Avatar for diafol
0
195
Member Avatar for asif49

In my class there are 2 objects, I have to get the one which has the smallest size with a method that begins with [CODE]public String smallest()[/CODE] so what I've been trying to do is roughly the following... [CODE]if (object1.getSize() < object2.getSize) { return object1.getName; } } if (object2.getSize() < …

Member Avatar for sj5536
0
94
Member Avatar for 68thorby68

Having spent the last 6-9 months getting to grips with the basics of PHP, I have inherited a number of Perl scripts. As I'm getting on with PHP and beginning to complete ever "complex" tasks, I would like to convert the inherited Perl into PHP. I am able to translate …

Member Avatar for 68thorby68
0
1K
Member Avatar for Nosa09

[COLOR="Green"][B]hi everyone .. I hope to help me :) .. i have java code.. the main idea of it the user selected from menu the equation (liner - Cubic - Quadratic ) need of them and then user enter the value of x and y and then draw the main …

Member Avatar for sj5536
0
775

The End.