199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
[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 == … | |
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 … | |
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 … | |
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: … | |
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 … | |
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, … | |
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 … | |
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; } … | |
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 … | |
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 … ![]() | |
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? | |
[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 … | |
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 … | |
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 = … | |
[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(); … | |
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]. | |
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 | |
#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 … | |
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 … | |
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? | |
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 … | |
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(); … | |
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 … | |
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 … | |
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 … | |
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; … | |
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: | |
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 … | |
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 … | |
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: … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
How can I simply format the contact number in vb.net The format that I want is (123)456-78-95 Thank You. | |
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 … | |
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 … | |
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']; … |
The End.