64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fabzster

Hi I am trying to get this function to work but having issues [CODE] // check that policy number not entered on the DB if no policy is entered skip Mysql query function validatePolicyNumber($PolicyNumber){ //Return Session Value so user does not have to retype entry return $_SESSION['PolicyNumberAdd'] = $PolicyNumber; $Connection …

Member Avatar for fabzster
0
113
Member Avatar for chabo

hello i need a countdown timer that count from 10 to 0 and then give me a msg "win"....??

Member Avatar for manimaran.m
0
111
Member Avatar for Annettest

Hello all: I would be grateful for some basic advice about C++ error handling. From my reading, I understand that the "try, throw, catch" method is preferable to dealing with return values, which can be cryptic. But I'm not sure if I understand exactly how this works. I made a …

Member Avatar for Moschops
0
174
Member Avatar for Shanti C

Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti

Member Avatar for Shanti C
0
239
Member Avatar for EMT

I am not getting the difference between the [B][COLOR="Red"]action and onsubmit[/COLOR][/B] tags of the form in html. [CODE] <form method=GET action="xyz.php" onsubmit="return xyz()"> [/CODE] my problem is [B][COLOR="Red"]"which will be called when"[/COLOR][/B] and [B]limitations of each tag[/B].Kindly Help....:(

Member Avatar for pritaeas
0
385
Member Avatar for alex9292

hi im trying to make a simple guess a number game for an assignment and i dont get why im getting a does not exist in the current context error here is my code i put the part that gets an error in red any help appreciated thx [CODE]using System; …

Member Avatar for alex9292
0
159
Member Avatar for ofir0803

example: [CODE]<img src="img.jpg" alt="" /> <a href="#" alt="" />[/CODE] i want to do someting if the string="alt" exist in the img tag and someting else if the alt exist in the href tag

Member Avatar for ofir0803
0
155
Member Avatar for Neversleepin

Hello, here is a code for retrieving some lines from a text file. i'd like to extract data from line2 to line4 ---> this is working but in the same time i want to data from Line10 to line12 here is the code, my conditions is not working: Thank you …

Member Avatar for Neversleepin
0
167
Member Avatar for Climber Ty

I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int …

Member Avatar for Climber Ty
0
8K
Member Avatar for ash07

Dear all I am developing an application in VB & Access .I am trying to secure application by adding user control,trace modules,database password. (just today i saw how to make a folder inaccesible+ not to allow delete.) 1)I would like to know how do i secure my application.. am i …

Member Avatar for AndreRet
0
157
Member Avatar for TIP.Synergy

I want to UPDATE query instead INSERT INTO using this code help me thanks. [CODE] Dim cmd As New OleDbCommand("INSERT INTO tblPurchase_Order ([Order_Id],[Supplier_Id],[Address],[Project_Id],[dtpDate],[Material_Id],[Material_Name],[Unit],[Quantity],[Unit_Price],[Amount]) VALUES (@Order_Id,@Supplier_Id,@Address,@Project_Id,@dtpDate,@Material_Id,@Material_Name,@Unit,@Quantity,@Unit_Price,@Amount)", conn) cmd.Connection = conn cmd.CommandType = CommandType.Text cmd.Parameters.AddWithValue("@Order_Id", lstItems.Items(i).SubItems(0).Text) cmd.Parameters.AddWithValue("@Supplier_Id", lstItems.Items(i).SubItems(1).Text) cmd.Parameters.AddWithValue("@Address", lstItems.Items(i).SubItems(2).Text) cmd.Parameters.AddWithValue("@Project_Id", lstItems.Items(i).SubItems(3).Text) cmd.Parameters.AddWithValue("@dtpDate", lstItems.Items(i).SubItems(4).Text) cmd.Parameters.AddWithValue("@Material_Id", lstItems.Items(i).SubItems(5).Text) cmd.Parameters.AddWithValue("@Material_Name", lstItems.Items(i).SubItems(6).Text) cmd.Parameters.AddWithValue("@Unit", lstItems.Items(i).SubItems(7).Text) cmd.Parameters.AddWithValue("@Quantity", lstItems.Items(i).SubItems(8).Text) …

Member Avatar for TIP.Synergy
0
222
Member Avatar for Latvija13

I don't understand how to check for non-alpha characters in a string that has more than one word. I'm basically asking for a retype if the string has more than 3 words or if it has non-alpha characters. I'm wondering if Character.isLetter is not what I'm looking for since it …

Member Avatar for JamesCherrill
0
123
Member Avatar for fishcer

i'm new in php, especially php array and i wanna learn more about array, i found this forum sound interesting to solve my problem. i have some array like this : [CODE] Array ( [0] => Array ( [0] => Printer_B //printer [1] => IDDHARMAHE //user ) [1] => Array …

Member Avatar for fishcer
0
7K
Member Avatar for wafieali

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\eUTM\login\logincheck.php on line 13 here is the code: <?php //login check require_once("dbconn.php"); $con=connectdb(); $idpengguna=$_POST['idpengguna']; $katalaluan=$_POST['katalaluan']; //login PELAJAR from table pelajar $pekerja_query="SELECT * FROM pengguna where idpengguna = '$idpengguna' AND katalaluan = '$katalaluan'"; $pekerja_result=mysql_query($pekerja_query,$con); $pekerja_row=mysql_fetch_array($pekerja_result); if(!$nama_id && !$katalaluan) { $err=1; …

Member Avatar for wafieali
0
446
Member Avatar for tape enterprise

I need to know how to sort my authors into their respective categories I have a mysql table with the authors details and another with the categories this is my code to get the info from the tables (i realize I spelled category wrong in my database) [CODE]$sql = 'select …

Member Avatar for jrivera
0
126
Member Avatar for anirban1087

Hi, I am working on a project where I have to deal with hierarchical data. The data looks like Member-1 | --------------- | | member2 member3 |---------------| | member4 member6 ---------------- | | member7 member5 I have searched a lot to find a good solution to store this data, but …

Member Avatar for anirban1087
0
107
Member Avatar for mith_cool

hi, am working on a project called online store using java. For the navigation menu bar i used javascript in a jsp page. The problem is am unable to see the image in navigation bar. Since i have no thorough knowledge of javascript please rectify me.Here is my code [CODE] …

Member Avatar for skald89
0
127
Member Avatar for irenejd

I have an electronic subscription to a newspaper and I generally download and print the puzzles for doing them later. Due to health issues, I'm behind about 6 months, but I'd like to catch up. I'd like a script to automate the download and save it to my PC. I'm …

Member Avatar for irenejd
0
151
Member Avatar for LeMajestique

I am having trouble making this menu, I followed some instructions online but I can't seem to get it to loop back to the menu after I am done with a menu selection. Please Help! [CODE]#include <iostream> #include <string> #include <cmath> using namespace std; int main () { int choice; …

Member Avatar for LeMajestique
0
116
Member Avatar for Agent Cosmic

Hi guys, I'm learning PHP and MySQL now, so I did a simple forum database in MySQL Workbench. I hope you guys can check it out and point out anything I should that note of. Also I would appreciate it if you could share your learning resources (like blogs/tutorials, not …

Member Avatar for Agent Cosmic
0
240
Member Avatar for gingank

Hi All, I want to ask how to remove unwanted character from string?? Can provide an example? Dim A As String A = "@AA@BB@CC@DD" If i want to remove @BB what method i should use? First i try to use instr to detect where the @BB but how to do …

Member Avatar for jhai_salvador
0
235
Member Avatar for Lxyslckr

I'm trying to do four operations. Find the minimum including 0 # (working on) find the sum of the negative # (Think I'm done) Find the sum of the odd # (working on) How many positive #(working on) I need help on the sum of negative This is what will …

Member Avatar for Lxyslckr
0
92
Member Avatar for billly

hello everyone, can someone please help me this may be a simple question but im trying to open a file with a script typed into notepad (like .vbs or .bat). but i dont want to use the full directory to of the file im opening because the file is on …

Member Avatar for codeorder
-1
111
Member Avatar for javanoob101

Hello! I need to get some collision detection going in my code but I have no idea where to start! can anybody find out how to put this in? the detection will stop drwaing monstors if the bullet hits them [code] // The "SpaceShooter" class. //import java.applet.*; import java.applet.Applet; import …

Member Avatar for javanoob101
0
370
Member Avatar for Mr.BunyRabit

Hey there. So i have this database, that updates when i press the "update" button. Now everything works good, until you dont enter a value into the primary key slot. Now i know what the problem is, (you cant have that slot open). What i want to konw is what …

Member Avatar for Mr.BunyRabit
0
190
Member Avatar for tim8w

I have a DataGridViewComboBoxColumn that I allow the user to add new items to by typing in the ComboBox and hitting the 'Enter' key. That triggers CellValidating and I do the adding there by the following: cmbColumn.Items.Add(e.FormattedValue) All this works well, except that it leaves the DataGridViewComboBoxColumn blank. How can …

Member Avatar for tim8w
0
698
Member Avatar for martin11ph

I need a program that opens a sample program and counts the number of reserved words, operands and operators. Operands and operators are easy to distinguish. My problem is how do I determine the reserved words there? One solution I thought of is to create a separate text file that …

Member Avatar for mrnutty
0
154
Member Avatar for nocookies92

Recently, i found a book online that walks you through various elements of java game creation. The code from the book uses the java3D timer, so to compile the example programs, I had to download and install java3D. At Oracle's site, I selected WindowsXP as my OS and downloaded the …

Member Avatar for nocookies92
0
399
Member Avatar for ThatGuy2244

I had tried to make a compare strings function in real mode assembly, but it didn't work, so I tried it another way and it did. It seems to me that both functions I wrote do the same thing yet one doesn't work. Can someone tell me why, the two …

Member Avatar for ThatGuy2244
0
190
Member Avatar for tiuwulf

Hi there, i've ran in a problem and made up an example code of my prob. [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct mystruct { int a; }mytype; mytype* createMytype(int x) { mytype *mt; mt = (mytype*)calloc(1, sizeof(mytype)); mt->a = x; return mt; } int foo(mytype* mt) { mt …

Member Avatar for tiuwulf
0
91
Member Avatar for nambiajith

i am doing project bandwidth efficient video simulation in java. I set class path in jdk set classpath=%classpath%;.\\lib\\gif4j_pro_trial_2.3.jar; [Ljava.lang.String;@15151aa Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation p roblems: The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot be resolved The import javax.media cannot …

Member Avatar for peter_budo
0
577
Member Avatar for ftl25

Hi, Does anyone know of some code analysis tools (add-ins) for VB6? I used to use checkstyle and some other tools for Java, and am looking for something similar for our VB6 project. There is a huge codebase, and as I'm just starting out in VB coding, I'd like advice …

Member Avatar for IssamLahlali
0
1K
Member Avatar for theurbanist

Hello everyone, I'm trying to create a diagram of numbers as represented by asterisks. I'm taking an integer and turning it into a string of *. For example, for the value of 4, it'd be ****. For the value of 7, it'd be *******. Does anyone know of a way …

Member Avatar for JamesCherrill
0
118
Member Avatar for mgonzalezwec

How do I specify the default SMTP host within Visual Studio 2005 or within a web project in Visual Studio 2005? I realize this can be done in the web.config file, however I don't want to do it at that level (I would rather it be done at the machine …

Member Avatar for mgonzalezwec
0
207
Member Avatar for moni94

Hi. Let's say I have a method in a foreach statement, for example: [ICODE] foreach(string str in GetStrings()) ... [/ICODE] Does the method (GetStrings() in our example) get called once or once per iteration?

Member Avatar for Mitja Bonca
0
115
Member Avatar for blondie.simon

Hello I have an array of boolean data that I'm trying to display on the screen using 144 check boxes. Is there an easy way of updating all 144 check boxes with the data from an array and an easy way to update the array when changes are made to …

Member Avatar for blondie.simon
0
215
Member Avatar for ello

hey guys could anyone quickly show me how I'd go about combining these: [code] $(document).ready(function(){ $("#generate-quote").click(function(e){ e.preventDefault(); $.getJSON("generator.php?", {act: 'char_con', bc: '1'}, function(data){ $(".quote").html(data); }); }); }); [/code] [code] $(document).ready(function(){ $("#env").click(function(e) { e.preventDefault(); $.get("char_con.php?", {act: 'char_con'}, function(data{ $(".q").html(data); }); }); }); [/code] Right now they obviously do different things, but …

Member Avatar for ello
0
120
Member Avatar for McLaren

Hi, I have a button: [CODE]<input class = "save" type="button" value="IÅ¡saugoti" />[/CODE] As you can see the type is not submit, it is just button. This is because I want to not allow submission if javascript is disabled. To submit I run this code: [CODE] $('input.save').click(function() { $('form').attr( 'target', '' …

Member Avatar for McLaren
0
114
Member Avatar for heshanm

Hi all, I want to validate username and password in the [B]same page where login form exists[/B]. I have this coding and if username and password not matches it redirects to "try_again.php" page. Instead of that i want to show the validation ( "Invalid username or password") in the same …

Member Avatar for heshanm
0
4K
Member Avatar for Annettest

Hello all: I have read that the purpose of const member functions is to specify which functions may be used on const objects. This makes sense. An example is given in my text and I don't understand it. If anyone could help, I would be very grateful. Here is the …

Member Avatar for Annettest
0
220
Member Avatar for Amoryethel

I'm in the works of creating a program that dishes out basic arithmetics with fractions, i.e., add, subtract. However, I found myself stumped over this error. [QUOTE]Test.java:18: 'void' type not allowed here System.out.println(r1.add(r2)); ^ 1 error[/QUOTE] My code is as follows: [CODE] \\ The constructor \\ public class RationalNumber { …

Member Avatar for Amoryethel
0
6K
Member Avatar for horserider
Member Avatar for horserider
0
179
Member Avatar for opticblaze

Hello, I have an If statement that i want to use to determine whether the variableis a integer or not. The example below does not work but illustrates what i would like to be able to do: [CODE]If($x/4==[COLOR="Red"]interger[/COLOR]) {echo ("this is a integer");} else {echo ("This is not a integer");} …

Member Avatar for opticblaze
0
114
Member Avatar for jijo cleetus

Hi, i need to convert date format 1/16/2010 10:10:2011 AM to [COLOR="Red"]16/1/[/COLOR]2010 10:10:2011 AM after that i need to put values to database too as datetime datatype. error I am getting : "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. …

Member Avatar for jijo cleetus
0
155
Member Avatar for MrCapuchino

Hello, I'm developing an application where if a user clicks a button a comparisson is performed, if the user was right an image needs to show for 1 second if the user was wrong another image needs to show for one second too. The thing is, I don't know what …

Member Avatar for MrCapuchino
0
690
Member Avatar for ajst

Hi guys and girls, I've decided to pick up C++ again after not using it for 2 nearly 3 years. I've been programming in java and c# in the mean time so my understanding of programming is very good. I've been trying to make a pack of cards but for …

Member Avatar for ajst
0
361
Member Avatar for Mr.BunyRabit

Hey there, =) My head is almost through with my database im working on. I just need one more thing i Cant seem to do. Now this is my code for connecting to my datagridview [CODE] String connString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\Resources\\db1.mdb"; string query = "SELECT * …

Member Avatar for Mr.BunyRabit
0
2K
Member Avatar for ram619

At line 12 compiler gives error....`float*' to `float' for argument `6' to `int fun(int, int, int, int, int, float, float)' could anyone plz tell me, where i m wrong......... Thanks [code=c]#include<stdio.h> #include<conio.h> int fun(int,int,int,int,int,float,float); int main() { int a1,a2,a3,a4,a5; float avg=0.0,sum=0.0; printf("Enter the five values"); scanf("%d %d %d %d %d",&a1,&a2,&a3,&a4,&a5); …

Member Avatar for ram619
0
5K
Member Avatar for jk09

what is meant by infinite time complexity??? i mean, does it imply that the problem cannot be solved by the algorithm as it takes infinite time..??:?:

Member Avatar for Narue
0
76
Member Avatar for jijo cleetus

Hi i need to convert date format 16/1/2010 10:10:2011 AM to 1/16/2010 10:10:2011 AM after that i need to put values to database too as datetime datatype.Can you please help. many thanks in advance

Member Avatar for jijo cleetus
0
164

The End.