199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Virangya

hi, i want to load data after loading related php page. i used ajax and even jquery. jquery was not sure this is jquery code [CODE]$.post('<?php bloginfo('template_url'); ?>/bk_page/schedule_check.php', "", function(data) { $("#fieldsetConfirm").html(data);}) [/CODE] but this and when i was using ajax it changes data, but unfortunately, the pay now button …

Member Avatar for Virangya
0
222
Member Avatar for libathos

I'm using a JFreeChart which I found in this link [ICODE]http://www.java2s.com/Code/Java/Chart/JFreeChartCategoryStepChartDemo.htm[/ICODE] I have modified the code as given below.My problem is how i can change the values in the x-axis so that they don't start from the zero. [CODE]public class Chart1 extends JPanel { /** * */ private static final …

Member Avatar for libathos
0
231
Member Avatar for august_month

Hello everyone! I have one simple question. I have minor programming experience in C# and would like to write a program which: would open url in Firefox, enter password and login on the open page, and on the next page click a link. I have not idea where to start. …

Member Avatar for thines01
0
219
Member Avatar for Swirly

I am running into a problem in a card dealing program. When the Deck Constructor tries to run one of the methods associated with the Applet class, the program will fail with an error set typical to running an application as an applet. This is a school project, and the …

Member Avatar for NormR1
0
212
Member Avatar for pseudorandom21

I've been trying to make a reliable IRC client for a while now, and I know very little about sockets. I have read the RFC quite a bit, but programmatically responding when appropriate, and detecting errors still boggles me. How is the program to know the server will send three …

Member Avatar for pseudorandom21
0
155
Member Avatar for denislaf

Hi everyone! I have a task that needs to be made in C in Linux. I use Kubuntu. This is the task: Process (coordinator) creates 10 working process (pool of processes). The working processes are waiting to be awakened by the coordinator, perform a job and wait again. The coordinator …

Member Avatar for denislaf
0
195
Member Avatar for PF2G

Hi, WebForums I'm doing a login system, and it's working, but i'm having difficults in understand where does the "logout" go, other thing is that i want to improve the validation system - if someone could give me some tips. Here are the codes i'm using login form, "index.php": [CODE] …

Member Avatar for phorce
0
326
Member Avatar for AndyPants

Hello... I'm working on a program that gets some info about a certain web page. But one of the features is it needs to find all the links to other webpages on THE SAME site (I think its called an internal link... not sure). I already figured out how to …

Member Avatar for gusano79
0
387
Member Avatar for tsudeily

I'm working on my take home final for my Intro to Programming class and need to add the ability to search my class.txt file for a specific record by inputting the student ID. I can't for the life of me figure out what needs to be done. [CODE] #include <iostream> …

Member Avatar for thines01
0
228
Member Avatar for hszforu

I want to create text files(empty) depending upon the user input, suppose if the user enter 20 , then it should create 1.txt,2.txt to 20.txt Assuming i want to create 2o files, then i wrote the foll code: [CODE] for i in range(20) filename="i.txt" fp=open('filename','w') fp.close() [/CODE] but i know …

Member Avatar for TrustyTony
0
173
Member Avatar for snowhite89

This is MPI parallel program running using putty software.. I've done some part but I got errors... :'( can anyone tell me what's the problems? I've done the serial part but I stuck in this parallel part....... [I attach smaller input because I'm having problems attaching the real input] I …

0
108
Member Avatar for chandbasha

Hi, I have one csv file with same order id for 4 or 5 times. How to know that order id is 4 or five times. My problem is on the basis of order id i will get the Product name and i want to generate the invoice. If the …

Member Avatar for HITMANOF44th
0
184
Member Avatar for sabbib

[CODE]import string def main(): print ("This program calculates the number of words in a sentence") sent = input("Enter a sentence: ") words = str.split(sent) print ("The total word count is:", len(words)) print ("The total character count-withspace is:", len(sent)) retry = input(''' Would you like to try again?''') if retry == …

Member Avatar for TrustyTony
0
237
Member Avatar for jackmaverick1

The error I'm getting makes NO sense seeing as I'm defining the functions it's confused about directly above. The error: undefined reference to `accMan()' undefined reference to `bookMan()' undefined reference to `lend()' undefined reference to `getBack()' undefined reference to `tellMenu()' undefined reference to `tellMenuAcc()' undefined reference to `tellAllBooks()' undefined reference …

Member Avatar for jackmaverick1
0
144
Member Avatar for smurfy

Hi, In Visual Studio CLI. I have randomly generated numbers which are a,b,c,d . One by one they are meaningless . Together they create a color code for different products. For example : id | a | b | c | d | i | 1 | 1 | 5 …

Member Avatar for nina@cika
0
351
Member Avatar for iamthesgt

In going through some homework, I was able to do some of the problems, but not others. For example, one problem was "Produce a list of employee last name, first name, job function, department name and department location. Use appropriate, user friendly column aliases." I finished this with this code: …

Member Avatar for iamthesgt
0
213
Member Avatar for pythonstudent11

As promised, here is my final project in my Python programming course. I got the solution all by myself, although, feel free to make any changes you see fit, I've already turned it in. [quote]For this assignment you are to develop a Python program based on the scenario and following …

Member Avatar for pythonstudent11
0
428
Member Avatar for bibiki

Hey there, I am building a small database app where I allow users to input and retrieve information in and out of database. As part of my application I have this table courses and a java file Course.java that models a Course object. My Course objects have field variables courseID, …

Member Avatar for JamesCherrill
0
115
Member Avatar for moonL!ght

i am reading from file the file is in this format 4 L 100 20 30 200 R 30 20 50 100 O 20 100 100 40 L 30 50 100 100 I'm using string tokenizer now the 4 specifies how many lines I'll have When I read only the …

Member Avatar for JamesCherrill
0
129
Member Avatar for bisiii

Hello mates! I have one problem with Math Utility Test for PrimeNumber case. The code is: [CODE]public bool IsPrimeNumber(int n) { int i = 0, num = 0; while (i <= n) { if ((n % i) == 0) num = num + 1; i = i + 1; } …

Member Avatar for bisiii
0
95
Member Avatar for vb.netfreak

i am trying to insert value using dataset but its giving me an error of null point exception(object was not created) at run time 'my code is [CODE]Dim cnCustomers As OleDbConnection cnCustomers = New OleDbConnection Try With cnCustomers ' If .State = ConnectionState.Open Then .Close() .ConnectionString = cnString .Open() End …

Member Avatar for G_Waddell
0
171
Member Avatar for glut

Hey, I'm currently using mysql_real_escape_string() to protect against SQL injection. Is there a way to exploit this? I have already tried \ to try to make the query \', thus making it just a regular backslash. I have heard of the Big5 exploit, but I don't know how to use …

Member Avatar for diafol
0
173
Member Avatar for libathos

hello,I am writing a program in java in which I use a jtable to print the data to the users.Do you know how can i get the data of a line when that line gains focus?

Member Avatar for libathos
0
88
Member Avatar for 03hasnam

[B]Hello Guys, Hope youre all well :) Please can someone kindly tell me how I can write to a specific line. The value to be written needs to be in long and not as a string. The File is as follows: 1324214082786 1313131 Paid 0.0 the seconds line is time …

Member Avatar for JamesCherrill
0
463
Member Avatar for qwertpink

hi all, when my codes ran at localhost, it doesnt have any error, however when it runs in a server it gives 'Column 'member_id' cannot be null' [CODE] //retrieve form data $start_date=$_POST['start_date']; $end_date=$_POST['end_date']; $project_name=$_POST['project_name']; $project_description=$_POST['project_description']; // open connection $link = mysqli_connect($host, $user, $pass, $db); $query = "INSERT INTO project(project_name,start_date,end_date,project_description,project_status)VALUES('$project_name','$start_date','$end_date','$project_description','available')"; $result …

Member Avatar for qwertpink
0
613
Member Avatar for mightysnake

Hi everyone, I've created a function for calling .js files in <head> but it's not working properly. The reason why is this function necessary is that I want to include different .js files in different pages or remove some If I don't need them. [CODE]function get_scripts($array, $dir) { $count = …

Member Avatar for pritaeas
0
128
Member Avatar for 03hasnam

[CODE]/*********************Pay Button Listener***************************************/ public class payListener implements ActionListener{ public void actionPerformed(ActionEvent e) { String fileName2 = "Ticket/"+ticketIDNumber+".dat"; File ticket2 = new File(fileName2); if(ticket2.exists()){ try{ FileReader fileReader = new FileReader(fileName2); BufferedReader bufferedReader = new BufferedReader(fileReader); bufferedReader.readLine(); //OMIT Entrance Time FileWriter fw = new FileWriter(fileName2); BufferedWriter bufferedWriter = new BufferedWriter(fw); //fw.write("Hello"); bufferedReader.close(); …

Member Avatar for 03hasnam
0
176
Member Avatar for daniel36

can any body tell me how to use the information of page [URL="https://sandbox.clickbank.com/rest/1.2/sandbox"]https://sandbox.clickbank.com/rest/1.2/sandbox[/URL].

Member Avatar for pritaeas
0
254
Member Avatar for poojavb

Hello, I need to populate my ComboBox in VB.Net using MySQL. Can anyone help me to start. I have created a combo box which should contain the patient name from the database. I am using MySQL database. Please help me in this. Regards, Pooja

Member Avatar for poojavb
0
4K
Member Avatar for Captonmike

#include<stdio.h> #include<math.h> #include<conio.h> #include<time.h> #include<stdlib.h> #define LIMIT 100000000 //max value of n void main(){ double mypi,x,y ; int minus ; // 1 for pos., 2 for neg. long int m,n; time_t t; n = 0; m = 0; srand((unsigned) time(&t)); clrscr(); do{ n++; x = (rand()/(double)RAND_MAX); //pick a random X …

Member Avatar for Captonmike
0
188
Member Avatar for learner guy

hello everyone, i am trying to implement save,load and replay in my chess game made in c++ console. i am done with save and load but stuck on replay. i want every turn to be stored in file and when player asks to replay it should show all turns in …

Member Avatar for Schol-R-LEA
0
241
Member Avatar for rahulroshan

Hi I want to echo the output of query in php $query = "SELECT COUNT(name) FROM ji where name="rahul" and age='23' "; Can anyone plz help?

Member Avatar for pritaeas
0
84
Member Avatar for DoubleGee

Hello, I am experiencing problems when trying to remove elements from an array. I've been asked to create a little program which creates bank accounts containing (name, address, bank account number, balance etc.). I have successfully implemented all the functions except deleteAccount (I would also like to add that my …

Member Avatar for JamesCherrill
0
199
Member Avatar for apapap

This is the piece of code which i am running : [CODE] public static void main(String[] args) throws Exception { System.out.println("Registering Plugin..."); ServiceConnection connection = ServiceConnection.CreateServiceConnection( "ServiceInstance" ); connection.connect(Constants.VCENTER_URL,Constants.VCENTER_USERNAME,Constants.VCENTER_PASSWORD, true); VimPortType service = null; VimServiceLocator locator = new VimServiceLocator(); locator.setMaintainSession(true); if(connection != null){ System.out.println("Connected successfully to vCenter."); service = connection.getService(); …

Member Avatar for NormR1
0
456
Member Avatar for BilalAKhan

Hi, I have want to insert session variable in my database. I have developed a blog and I want to insert session variable in one of the fields defined in my database. I have the code which can insert other fields in the database but I do not know how …

Member Avatar for BilalAKhan
0
3K
Member Avatar for Steven7

Hey guys, I am new to Java and recently developed a small GUI-based project in Windows using Netbeans IDE. So I try build the project and retrieve the .jar file and it runs well on my Windows computer. Then I copy the .jar file to a Ubuntu Linux computer and …

Member Avatar for JamesCherrill
0
177
Member Avatar for namratag
Member Avatar for ad_rulz

Dear All, I have a tar file which contains .Z files. File Structure is : x.tar -> [1.Z, 2.Z]. I need to read data from this zip files. So far I have reached a stage where I read entry from tar but am not able to unzip files within the …

Member Avatar for StephNicolaou
0
2K
Member Avatar for ali11

Note: C:\Users\Hamza\Desktop\Graph.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Tool completed successfully [CODE]import java.io.InputStream; import java.net.URL; import java.util.*; import java.awt.*; import java.applet.Applet; class Node { double x; double y; int lane; int road; double dx; double dy; String lbl; int carW; int carL; double carWaiting; …

Member Avatar for JamesCherrill
0
154
Member Avatar for vijaykavin10

Hi all While i am getting my data from gmail throws some error... Can anybody help me to fix the issue:fopen(path/file name)[function.fopen]:failed to open stream: No such file or directory in path on line xx Unable to open file Thanks:icon_smile:

Member Avatar for rotten69
0
82
Member Avatar for p.roberts88

Hi, I can't figure out why this isn't working (it's part of a larger amount of code but I tested it separately and I still get an error): [CODE] int nrows = 5; int ncolumns = 4; int i; int **array = malloc(nrows * sizeof(int *)); for(i = 0; i …

Member Avatar for invisal
0
392
Member Avatar for aquamarine_kath

Hi. I tried to install vb6 on my friend's laptop. It was installed but when I double click the control on a form to write a code, it has stopped working. It says, "VB6 has stopped working". It was installed but I cannot put a code in it. Here are …

Member Avatar for LesF
0
210
Member Avatar for MasterHacker110

My enscription program enscripts the words in a text file, but when I descript it is all mixed up eg. Origanal text: Name: Master Surname: Hacker Age: 1101 Enscripted text: 6BX5  6BX5  + BX0 6BX5  + BX0 9BXIIHI Descripted text: Name: MasteName: MasteName: MasteName: MasteName: MasteSuName: MasteName: …

Member Avatar for MasterHacker110
0
92
Member Avatar for mochno

Hello All. After couple hours reading posts here and all over the web, i wasnt able to find example of code to "rewrite it" my way. All i need is: 1. read the file (txt), 2. scanf for string, 3. compare each line for this string, 4. if found printf …

Member Avatar for mochno
0
138
Member Avatar for Alex12345

So far, I have managed to create a register, login and welcome page with PHP. I'm now focusing on a creating a profile page. I'm wondering, first of all, how I can have every page on my site display "Welcome, " .$username. Do I have to insert a cookie write …

Member Avatar for phorce
0
303
Member Avatar for csharp_user

Hi, I have tried to arrange so that when I delete a name in the listview it should also delete the name in the textfile that the listview is reading from. When I delete in the listview the name that was below the deleted name now moves up a place …

Member Avatar for LesF
0
158
Member Avatar for aishapot

How can I simply format the contact number in vb.net The format that I want is (123)456-78-95 Thank You.

Member Avatar for M.Waqas Aslam
0
228
Member Avatar for davy_yg

product_edit.php [CODE] // SETELAH TOMBOL SIMPAN DI TEKAN if (isset($_POST['save'])){ $tgl_masuk = date("y-m-j"); if (empty($_POST['id'])){ $result = mysql_query("INSERT INTO produk(nama_produk, harga, deskripsi, tgl_masuk, gambar) VALUES('".$nama."','".$harga."','".$deskripsi."','".$tgl_masuk."','".$gambar."')"); echo "Data has been recorded in the database."; } else{ $result = mysql_query("UPDATE produk SET nama_produk='".$nama_produk."', harga='".$harga."', deskripsi='".$deskripsi."', gambar='".$gambar."' WHERE id=".$_POST['id']); $result = mysql_query($sqlstr) or …

Member Avatar for cereal
0
122
Member Avatar for devinodaniel

I'm trying to send a confirmation email to the person who submitted this "ticket" but it's not sending. I know the right info is there it just seems like I'm putting something in the wrong spot. Anyone help me out? [CODE]<?php include("database.php"); $today = date("M d Y"); $sql="INSERT INTO info …

Member Avatar for dineshsjce
0
197
Member Avatar for Szabi Zsoldos

Hey guys, I'm working on a ajax drop down system. I'm currently finding myself in a difficulty with a $_POST[]. The thing is that I want to explode my $_POST but it doesn't let me for something, cant find it out why. [CODE] case 2: if(strstr($_POST['modelBox'],'^')) { $ex = $_POST['modelBox']; …

Member Avatar for Szabi Zsoldos
0
264

The End.