199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brown23

Hey Guys, How would I go about echo'ing a large amount of symbols (#"'~/\|*&^%!) in an echo statement without having to put a backlash at all the clashing ones, specifically " and '? [CODE]\"`+w\"`2x'`!_\"`%&+` S%`1a&`&Y+`%\\4`(&+`$N!1`+n(`&&\"`$#\"9`#1#`$R&`\"H6`2+#`)9!`\"C#`(;\"`/x!`0^)`+k\"`,T'`.w4`.>%`';(4B`!{!F`!-!` B!64`&U#42`\"6$`\"e\"`02%`-i'`#4#`)]$`$.;`+B*`3d)`#u0`)@#`#o*`#4&`$6!5`)Z-`\"k\"`&>+`)X#`&h\"`$S\"`) %`!x!`0;%`//\"`$j,`*?!`#k(32%3` 6!48`+U&73`\"\"#61`&u!`(J%` ,\"`%P\"`+_%7%6D`\"p#7`-W'3`,P\"`*?$`,,\"`3C#4`#!$`$l$`+w\"`3s/1`%]*`),%`*q\"`$T!`%w+7`! \"`/W'6F`#-!9`!u$`28\"`%!'`!()`-&\"`)/\"`%G(`&i$6C`$x$`'S\"7`%3!`\"8%`-8%`-t+`%!!6C` Q!`,o$`(J\"6D%7` V\"`'8\"`%n\"`)*$6A`!K!`2D\"`-t\"`!8\"`,?$`!1#D`\"i!`&2%` 9!`$S\"`#C)`# \"`\">\"7`)Q$`+Y\"C`!B!`%2\"`(e\"`($-`&M(`&C#F`$Q$`-P(`$P\"`#Q-`\"A\"`$CA`1e1` 5(`2GC0%2`&x!`'\"#`,i$`%D\"77`\"W!`%K!`$A.`/q+`(V\"`!J\"`,/\"`//%6E`$:#`.%)`\"u!`.d&`,K$`&F#`#V%`!z%`#2\"` &\"`&0!`3.&`2V%`)#+`\"t\"`.,\"` E!`(m&`3P(7`%l*`#q\"`-Q!`(#\"`&#1`1)\"` kC`#P+`$I2`-#\"`3<66`0H!`,|&6`#d#`$}.`)7#`#k%`&A\"`$t\"`#z\"D`1^#`,&%`*e%`$R2`\"K'74%1`%J%`\" %`&V%8`2c$`*Q'`%\\+`\"()`%J4E%3C%62`\"+#2F%3E%3C` \",`3A1`%D+`+V1`+7&`*6!`\"e\"`\"|#A`*)`-F#D`\"o!`*_\"`*D\"`% …

Member Avatar for hielo
0
170
Member Avatar for sleepybug

hey friends :D! alright i was tryin to work with serialization basics and now i am stuck with this problem of reading an object from a file named 0x.txt. and i know ths program is really a hell lot full of bugs but i have just started sp plz dont …

Member Avatar for JamesCherrill
0
163
Member Avatar for svatstika

Hello everyone! I'm trying to understand the following code: [CODE]class char_queue { protected: struct charNode { public: char val; charNode* next; charNode(char ch, charList* ptr) { val = ch; next = ptr; } }; protected: charNode* begin; charNode* end; void clearCharNode(); public: char_queue(); bool find(char ch); virtual void add(char ch); …

Member Avatar for svatstika
0
127
Member Avatar for Goyle

Hi, i am in need of some help with an assignment. The Question : [I]Write a program which will think of a word and ask the user to guess the word. The user may guess a letter at a time and your program will print out wherever the letter occurs. …

Member Avatar for Goyle
0
138
Member Avatar for CEVGames

I am not sure where to begin with this code or how to go about it. I was wondering if anyone could give me some ideas as to where to start or ideas on how to accomplish this (If you want to help with sample codes I'd love that too, …

Member Avatar for CEVGames
0
289
Member Avatar for CEVGames

I have a log in system and upon logging in, I cannot get the page to redirect to the members section. I've tried a bunch of different methods, and none seem to work. Here is my current code, can anyone offer some suggestions please? [CODE]{ $username = mysql_real_escape_string($username); $password = …

Member Avatar for CEVGames
0
130
Member Avatar for Pinchanzee

I'm having trouble redirecting a form via JS. This code (accidentally) works fine as long as there is only one variable: [CODE]<SCRIPT language="JavaScript"> <!-- function Page(thisform) { with (thisform){ var page = thisform.p.value; } } //--> </SCRIPT>[/CODE] [CODE]<form class="box" action="/user/fave.php" onsubmit="return Page(this);">[/CODE] Which just adds the variable to the URL …

Member Avatar for @developer
0
762
Member Avatar for foamy

Hi all, I'm attempting to get some numbers from an XAL database (MS SQL Server 2005). My query is below. There are some conditions commented out. If I add either one of the lower ones the query executes in a matter of seconds but if I replace them with the …

Member Avatar for foamy
0
181
Member Avatar for deucalion0

Hey guys, I have a million questions but the main one I need ahelp with is that I have a method in a class that plays sound and I am trying to call that method in the mainscreen class. So I create a new instance of the class that contains …

Member Avatar for nick.crane
0
120
Member Avatar for funfullson

Hello friends. In my project I need to know if some one is online or offline. and other problem is that some one are online but are invisible. At all how I can find the users state? for example users of yahoo or google. I realy know nothing about this …

Member Avatar for richieking
0
275
Member Avatar for dreamer_lek91

The question I am going to ask involves Mircrosoft Access and VB and I am stuck with it. This is the question: I have 4 peoeple: L, M, N, O, P there are 4 object: a, b, c, d, e L has: a, c, d M has: a, d, e …

Member Avatar for AndreRet
0
197
Member Avatar for george61

Ok I created some flash rotator-onclick event to change swf files. But this won't work in IE because the javascript isn't able to create a closing embed tag. Here is the script: [CODE]<script type="text/javascript"> var flashNumber = 0; var items = 3; var i = 0; films = new Array(items) …

Member Avatar for Airshow
0
169
Member Avatar for Joe34

That's all of my code and you can see at the end there's a die function can you tell me what I did wrong? It's this die function.... [code] if(!$Query) { die("There was an error creating your product!"); } else { echo "Yes! Your product was created I hope " …

Member Avatar for nonshatter
0
168
Member Avatar for LianaN

Hi! I have two classes: 1) Class A extends JPanel 2) Class B extends JFrame I would like to use some methods from Class A in Class B. How could I implement it? Thanks!

Member Avatar for LianaN
0
117
Member Avatar for suger

Hi guys I have 2 problems here: 1) Below code does not draw a black Polygon on the frame, only shows an empty Frame named "Poppy" 2) Once the frame shows, I can't close it by clicking "x" at the right top corner. Does anyone know why? Thanks heaps code: …

Member Avatar for suger
0
91
Member Avatar for cavern

hello everyone, i need help, can anyone help me to check out the coding?? [CODE] Private Sub cmdBatal_Click() paparan.Show Me.Hide Unload Me End Sub Private Sub cmdSimpan_Click(Index As Integer) If InsuData = True Then con.Execute "Insert into Pemilik(Na,Nokad,Warganegara,Notel,Harga,Tingkat) values ('" & txtNama.Text & "','" & txtNoKad.Text & "', '" & …

Member Avatar for abelingaw
0
158
Member Avatar for Shaabangbang

Hi guys, i have to create a program that would store a persons full name, phone number, address, and postal code into a file named contactlist.dat, so far no problems, but im also supposed to use char for every single one, even the phone number, does anyone know how to …

Member Avatar for mfaisalm
0
231
Member Avatar for 000033858

Java Help - Need help making a program that checks if a letter appears consecutively in a string? I need help creating a java program that returns true if a letter appears consecutively in a string like for example : the "O" in noodles Also a program that returns the …

Member Avatar for jon.kiparsky
0
148
Member Avatar for ud_gs_sj

in the update query its giving an exception as [B][COLOR="Red"]Operand data type varchar is invalid for subtract operator[/COLOR][/B] so pls help me how to solve this [code] da7 = new SqlDataAdapter("SELECT item_name, item_quan,item_cat FROM c_item WHERE (item_name = '" + fname + "') AND (item_cat = '1')", con); da7.Fill(dt7); string …

Member Avatar for searchsource
0
121
Member Avatar for shinsengumi

Hi everyone. I'm using sqlite3 in Linux and I currently have a problem. I have a database and 2 tables in it: db1 and db2. db1 has 3 columns: empID, empName, empAddr. db2 has just 1 column: empID and its value is set to 0 by default. I created a …

Member Avatar for shinsengumi
0
551
Member Avatar for shena

Hi all, I have two textboxes only in a form. At textbox1, upon pressing enter/carriage return it suppose to setfocus to textbox2 instead it's performing textbox2's keypress event by calling a command button. How to handle this? Where am i doing wrong? Please help. [CODE]Private Sub txtSNO_KeyPress(KeyAscii As Integer) If …

Member Avatar for AndreRet
0
2K
Member Avatar for tech9x

[code=c++] int i; string *opening; string *ending; int *num1, *num2, *num3, *num4, *num5, *num6; char chr, chr1, chr2, chr3; for(i= 0; i< sizeOfArray; i++) { getline(cin,opening[i]); cin >> num1[i] >> chr >> num2[i] >> num3[i] >> chr1 >> num4[i] >> chr2 >> num5[i] >> chr3 >> num6[i]; getline(cin,ending[i]); } [/code] …

Member Avatar for jonsca
0
153
Member Avatar for jegana

demo.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My First Project in PHP</title> </head> <body bgcolor=tan> <h1><font color="firebrick">PHP MySQL </font></h1> <form action="success.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="box" value="100000"> <table width="500" border="1"> <tr><td><b><label for='name'>Name :</b></label></td> <td><input type="text" name="Uname" size="20" /></td></tr> <tr><td><b><label for='mail'>Email :</b></label></td><td><input type="text" name="mail" size="20" /></td></tr> <tr><td><b> <label for='Updated_file'>Attachements:</b></label></td> …

Member Avatar for jegana
0
301
Member Avatar for svatstika

Hi everybody! I'm working on a following program: [CODE] #include "stdafx.h" #include <iostream> using namespace std; class char_queue { protected: struct charList { public: char val; charList* next; charList(char ch, charList* ptr) { val = ch; next = ptr; } }; protected: charList* begin; charList* end; void clearCharList(); public: char_queue(); …

Member Avatar for jonsca
0
158
Member Avatar for iin_Tina

good morning ... I wanted to ask you, how to make file backup and restore sql server 2000 through visual basic 6.0 application already many forums I visit and ask, but until now there is no single person who can help me Can you help me? your help is much …

Member Avatar for AndreRet
0
2K
Member Avatar for Tsunami49

Hi there. I am creating a mock up of a physics library currently, and I am currently trying to deal with 2d arrays. Right now I am having issues with transposing the array. here is the code with the messy stuff cut out [CODE] //TMatrix.h #pragma once #include "main.h" class …

Member Avatar for Tsunami49
0
108
Member Avatar for pradeeppatil110

I want to download multiple files (file is in zip format ) from server to client machine to specific path with unzip format please give me the code for it......... please tell me....... (Technology : JSP)

Member Avatar for masijade
0
201
Member Avatar for xcarbonx

Hi, I have made a basic calculator program, but need help with some minor things. I have created two radio buttons for the user to click on. If the first is clicked/selected, then the output would be formatted in floating point value (radFloat). If the second is selected, then the …

Member Avatar for Netcode
0
130
Member Avatar for Xtremefaith

So I am new to PHP but I have put forth a lot of effort to research my answer before taking it to the community. So far this what I have: [CODE=php] <?php $id=$_GET['id']; include("config.php"); include("openDB.php"); $table = 'vendors'; $sortBy = 'Company/Name'; $query=" SELECT * FROM `$table` WHERE id='$id'"; $result=mysql_query($query); …

Member Avatar for Xtremefaith
0
152
Member Avatar for DoubleShot

I have read all sorts of positive reasons for using the PreparedStatement type in Java when working with SQL. Does anyone know of any reason why you'd ever choose the Statement type instead?

Member Avatar for masijade
0
92
Member Avatar for titan5

I have a file say which has 5000 characters. I am reading the first 1000 characters and closing my file. I want to delete these first 1000 characters from the file. How can I do that?

Member Avatar for masijade
0
90
Member Avatar for Cool&Awesome

Hi guys, Can anyone refer me to some very basic and simplified MVC tutorial? Yes, I googled, and read a lot, also did try frameworks, but my goal here is to be able to write and understand the MVC code myself. I'm also new to OOP, so even with tuts …

Member Avatar for diafol
0
291
Member Avatar for ChristinaS

Hi! I'm trying to find min variance (both value [U]and[/U] index). I have x# of product defects tracked over y# of days. prod1 prod2 prod3... Day1: 1 1 1 Day2: 1 2 2 I have arrays that store max & min defects, by product#. minVar = maxDefect[]-minDefect[] gives me the …

Member Avatar for ChristinaS
0
193
Member Avatar for erum

i have code [CODE]<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $('#<%= btnTest.ClientID %>').click(function () { var checkedControls = $('#<%= CheckBoxList1.ClientID %>').find('input:checkbox:checked'); if (checkedControls.length > 0) { alert('Valid'); } else { alert('Please select atleast one checkbox'); } return false; }); }); </script> </head> <body> …

Member Avatar for erum
0
177
Member Avatar for gunjannigam

I have saved generated an image using a byte[] by using [CODE]Toolkit.getDefaultToolkit().createImage(image);[/CODE] where image is a byte[]. The image generated by this is of java.awt.Image instance. Now I want to save this image into my local hard disk as JPEG (the image was decoded as JPEG). How would I do …

Member Avatar for gunjannigam
0
162
Member Avatar for freebanana

But he didn't get the tenure and he ended up going to a tech company in a high position getting like 120k, but then that only lasted about 8 months before there was a mass lay off so he's searching for a job. He said he was lucky getting into …

Member Avatar for jon.kiparsky
0
132
Member Avatar for bio-grad

I need some help setting up a perl script which will provide the statistics on some data I have in an excel file. My plan was to copy the excel file into a text file (with tab delineated columns) and run the script off of that. I downloaded a simple …

Member Avatar for anushaahenry
0
272
Member Avatar for Unidennn

Hi, i have a problem with passing the array of structs into another function. Line 15 and 20 - errors. Here the code [CODE] #include<stdio.h> struct point { int x; int y; }pointar[3]; typedef struct point POINT; struct circle { int x; int y; float radius; }circlear[3]; typedef struct point …

Member Avatar for Adak
0
203
Member Avatar for dvspinay

Here is my initial code. It is linking, but giving me an error code that I can't comprehend. I have to basically write a program to do the following: In main declare a Player Name array and a score array. Declare the size of the arrays to be 100. In …

Member Avatar for Ancient Dragon
0
167
Member Avatar for AlvinLiu

[CODE]int[] list; int n, value; input n; list = new int[n]; for (int i = 0; i < n; i++) { input value; list[i] = value; } int m = 0; for (int i = 0; i < n; i++) { for (int j = i+1, j < n; j++) …

Member Avatar for gnanasemantic
0
120
Member Avatar for geryin

This was part of a questionnaire. I have no idea what they are asking... my closest guess is float rational please help! thank you.

Member Avatar for Ancient Dragon
0
146
Member Avatar for ChrisATO

Hello, thanks for reading my thread. I'm still new to web development so I appreciate your help in advance. I am having a problem that I am sure many people have run across in the past. In my project, I have sidebar menus loaded based upon the user permission level …

Member Avatar for ChrisATO
0
2K
Member Avatar for hqrtt

Hey guys, I'm a newbie in C and I've got to make an app: Users enter 10 numbers; I've got to compare them; At the end tell the user if a) Number are decreasing (ex: 10 9 8 7 6 5 4 3 2 1 0) b) Number are creasing …

Member Avatar for Snehamathur
0
124
Member Avatar for Cstonehouse

I know there are many other threads about this same error, but none have helpped me, here is my code: [CODE] <?php $mysql_id = mysql_connect('mysql3.000webhost.com', 'a2778852_556875', 'pendolino390'); mysql_select_db('a2778852_555676', $mysql_id); $result = mysql_query("SELECT personalexperience, sex, age, sexuality, FROM Personal_experience"); while($row = mysql_fetch_array($result)) { echo $row['personalexperience'], $row['sex'], $row['age'], $row['sexuality']; } mysql_close($mysql_id); ?>[/CODE] …

Member Avatar for Stefano Mtangoo
0
149
Member Avatar for luke noob

i have a field in my database with numbers like this....... ,27,,277,,4277,,677,,678,,6688,,8754,,123478, each number was updated (added) like this .. ,27, all numbers updated are unique, when i try to match ,27, i get ,27, ,277, ,4277, not just ,27, my code is like this... [code=php] $id = 27 $string …

Member Avatar for luke noob
0
631
Member Avatar for manshipboy

I am trying to generate a new checkbox in a different form. [code] Public Class frmAdd Public Sub btnitemadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnitemadd.Click Dim chklowerleft As New CheckBox Dim chkhandleft As New CheckBox Dim indexcounter As Integer = 4 If chkleftlowerarm.Checked = True Then frmMain.chklistLA.Items.Add(chklowerleft, …

Member Avatar for Unhnd_Exception
0
143
Member Avatar for burcin erek

I made a simple color finding game. the problem is that my color input guess is not good so complex I want them in one line and also I want to see my tries at certain places. can you help me thanks in advance. [CODE]#include <cstdlib> #include <iostream> #include <string> …

Member Avatar for mrnutty
0
137
Member Avatar for 123balboa123

HI everyone I have a little problem with an exercise I have been given for homework. We were given sample server, client, compressedmessage, encryptedmessage documents to build upon. Now what is meant to happen is the server listens on port 2000 for incoming client requests, once a client makes a …

Member Avatar for 123balboa123
0
114
Member Avatar for KLane

I have written the program below to calculate Standard deviation and mean of a given file of data. If I run it gives the wrong answers. Can someone help me go along? #include <cstdlib> #include <iostream> #include <cmath> #include <fstream> using namespace std; class Statistics{ double x; int n; double …

Member Avatar for mrnutty
0
118
Member Avatar for tech9x

here is my code [code=c++] int main() { int i; char * cstr; char * p; string *userInput; int sizeOfArray; cin >> sizeOfArray; add(i,userInput,sizeOfArray); system("PAUSE"); } void add(int i, string *userInput, int sizeOfArray) { string Input; char * cstr; char * p; userInput = new string [sizeOfArray]; for(i= 0; i< …

Member Avatar for Zjarek
0
280

The End.