199,114 Archived Topics
Remove Filter ![]() | |
I'm hoping not to post much code (to do this myself) but I'm having issues in figuring out why a mysql_query isn't be executed. This is the mysql_query: mysql_query("UPDATE `servers` SET `status` = 'online.png', `cur_players` = '".$online_count."', `max_players` = '".$max_slots."', `software` = '".$software."', `plugins` = '".$plugins2."', `players` = '".$players2."', `version` … | |
hi i have a sound control on my website, i need to put a condition to check, when the xcoordinate is increasing, the sound volume increase and if xcoordinate is decreasing, sound volume decrease. I'm having trouble to set this condition, i dont know how to put this. Can you … | |
Hi all, hope you are having a better day than I am... I am trying to write the results of a search of text using preg_match_all to a database... First thing I need to do is write the results of the search to an array (which preg_match_all does)... It writes … | |
I have an interesting problem. I am working on a method that iterates through a number of simple java arrays stored in an Object array. The goal of this method is to find the smallest array contained within the Object array. Because these collections are stored in an Object array, … | |
http://www.spoj.pl/problems/FP/ here is the link. Can anyone please give me the hint only that how greedy approach is following in this question ? It's strange to see how greedy is there in this question. just the hint of this. no code, nothing! thanks. | |
Hi i want to merge two text files.i.e. the content of the second file has to append to the content of the first file. pls help me out Thanks | |
I've been trying to display sqlite data in wxcomboboxes but I get a type error not all arguments converted during string formatting, I'm Using a caller for the frame and it displays for about five comboBoxes but when I add more (exactly the same way as the first ones) It … | |
Dim FileTrue As Boolean = True While FileTrue = True If My.Computer.FileSystem.FileExists("/Paths/aPath.txt") Then Form2.RichTextBox1.LoadFile("/Paths/aPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/mPath.txt") Then Form2.RichTextBox2.LoadFile("/Paths/mPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/lPath.txt") Then Form2.RichTextBox3.LoadFile("/Paths/lPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/wPath.txt") Then Form2.RichTextBox4.LoadFile("/Paths/wPath.txt", … | |
Hello everyone, I am trying to build a inventory and pos system with Ms-Access as database and VB 6.0 programming. I got stuck in one place again. What I want to do is trying to print out the codes and price of the products. In this form, I have a … | |
Hi, After two weeks of not touching my web codings. PHP just gave me tons of surprises. I'm confused. I don't know what happened but I have this page entering a new category: <form name="new_category" action="savenewcategory.php" method="post"> <input type="text" name="category" size="30"><input type="submit" value="Add"> </form> savenewcategory.php <?php $con=mysql_connect("localhost","root"); mysql_select_db("cart0902",$con); $category=$_POST['category']; $sql="insert … | |
Private Sub Cmd9_Click() 'On Error GoTo Error_Handler Dim Report As New Blank_rShopDrawing 4 Set Report = New Blank_rShopDrawing Report.RecordSelectionFormula = "false" Form1.CRViewer1.ReportSource = Report Form1.CRViewer1.ViewReport Form1.Show 1 Exit_Error_Handler: Set rs = Nothing Exit Sub Error_Handler: MsgBox Err.Number & " : " & Err.Description Resume Exit_Error_Handler End Sub the error in … | |
**While executing the following code and when clicking the clear button it gives me error "Error Input String in not correct" line --> workedHour = Decimal.Parse(HourWorkedTextBox.Text) Any help will be highly appreciated** Public Class Payroll Dim fullName As String Dim pay_Rate, workedHour, grossPay, netPay, taxRate As Decimal Dim taxAmount As … | |
im trying to understand to create a form that process in php but shows the erros in ajax. heres a sample of something i want [Click Here](http://php4every1.com/demos/ajaxSubmit/), i already understand some jquery but not everything , like when i create a form in html do i had to create a … | |
Hi its my first time to join on this community, could anyone help me out to figure out? Actually I want to figure out how this picture would work http://i49.tinypic.com/5bd1tt.png using loop. Basically its like this on a elaborated details: > Write a program like the one to the right. … | |
I am making this two player simple game. I just need to make each of the player press a key any time not alternating from one another. Do I still use getch() for a solution? I have tried but the user still presses his/her assigned keys after the other presses … | |
Hey all. I have this program where I need a variable number of for loops. For eg. the program i use to find the pythogorean triplets is for n1 in range(100): for n2 in range(100): for n3 in range(100): if n1**2+n2**2 == n3**2: print str(n1**2) + '+' + str(n2**2) + … | |
when i want to add a component or Referrence to vb6 Project it give me this error msg : error accessing the system registry how i can fix that ??? sry again | |
Hello, I can't use CURL, $ch = curl_init(); I get the error > Fatal error: Call to undefined function curl_init() I've used `phpinfo()` and found the php.ini directory, > Loaded Configuration File D:\wamp\bin\apache\apache2.2.22\bin\php.ini I've then edited the php.ini file from that directory and removed the semi-colon in-front of extension=php_curl.dll Restarted … | |
I have a c# project to Create a console project named Cards that includes a struct Card, two classes Deck and Hand, and two enums: Rank and Suit. I attached a require output for this project. I have all my class but when I compile it only show the first … | |
hi everyone well I'm learning network programming currently , I've written a day time client and server but when I run the client it gives me a connection error . Here is my client code #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<netinet/in.h> #include<netdb.h> int main(int argc ,char *argv[]) { int sockfd, n; char … | |
I am trying to write a program in Python that converts user input from English to Pig Latin ("Y" is not a vowel in this case, breaks off at first vowel and moves preceding consonants to the end). The end product of my program should be able to compute whole … | |
HI ! could you please help me here? i'm having a problem on marking the books in my library program if it is borrowed or returned? here's where im at, import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.awt.Color; public class Library { ArrayList<String> bookName = new ArrayList<String>(); {{ … | |
Hey! I have a problen. I'm a user of Turbo C++ yes, it's outdated. I know. LOL SO anyway, i'm supposed to create a program that reads a text document when ran. so I already have the text document named test.txt located on my desktop. but when i try to … | |
Following is my code for reading from a file. #include<stdio.h> int main() { char s[10][10]; int i=0,j=0; FILE *ptr=fopen("input.txt","r"); char c; while(fscanf(ptr,"%c",&c)!=EOF) { if(c=='\n') { s[i][j]=0; i++; j=0; } else { s[i][j]=c; j++; } } s[i][j]=0; fclose(ptr); for(j=0;j<i;j++) printf("%s\n",s[j]); return 1; } and content of input.txt is A->XAZ|Yz|z X->xZ|x Z->Xz … | |
public class Thread7 implements Runnable { public static void main(String r[]) { Thread t = new Thread(new Thread7()); t.start(); public void run() { System.out.println("C"); System.out.println("D"); } System.out.println("A"); try { t.join(); System.out.println("B"); } catch(Exception e){} } } Query1: On compiling this program I get "illegal start of expression" error pointing to … | |
THing is I have an assignment where the object is an array, I need to check when it is out of bound. But I dont understand what this statement means? Can you guys help me verify it? > method "private void rangeCheck(int index)": if the value of index is less … | |
Hello, I'm trying to calculate factorials with my program, but it is only working for the first few numbers. It compiles fine, so I can't find the problem. Help please! Keep it simple, I am very new to C++ and programming in general. Here is my code: #include <iostream> #include … | |
I'm a noob, I know very little about php. Anyway, my page won't load at all, browser says its redirecting in a way that is not loading. As the title suggests I think the issue is with one of the php files I include with require_once(). Let me just show … | |
hi, does any one know about the pipe & filter architecture implemntation in C# have a question in that. | |
Hello I'm back guys! @npcomplete....can't do anything about it dude, its what we use in our school...and Im from the Philippines...when I master this compiler, i'll switch.. So here it is my work so far...Record of 100 Buyers..Please check if I did it right..It worked for me so..yea.. #include<iostream.h> #include<cstring.h> … | |
I'm trying to read information from a text file and populate an array of structs using a pointer. I keep getting an error and I'm not sure how to fix it. Any help, comments, or tips are greatly appreciated! Thanks in advance for your time and help! error: request for … | |
I am having a problem completing this Java program. Basically everything is complete and running correctly except the end (which I cannot figure out the code for). The point of this program is to convert dates from the "Month Day, Year" format to "DD-Mon-YYYY" format and increment the dates by … | |
Hey guys, I am working on an application for my school and work. I work for the It team that maintains and checks the AV equipment we have around campus and solve the problems associated with them. We usually just mark them down with pen and paper etc. Im trying … | |
Hi Friends <script type="text/javascript"> $(window).ready(function(){ $("#calendar").smoothPhpCalendar({minimumDate : new Date('01-12-2016')}); }); </script> can can i set min and max on this calander. please advise ![]() | |
here is the code <div id="test"> <input type="text" name="textfield" /> <div> `$('div#test').html()` render like this along with endtag for `/>` <input type="text" name="textfield" ></input> how can i render it like below <input type="text" name="textfield" /> thanks in advance..!! | |
I am using visual studio 2008 Professional / vb.net and sql*server Express (9.0) *I am using DAL table adapter logic for db access.* One of my tables needs to have a field changed from smallmoney to decimal (9,2) to accommodate larger values. After making the changes below, I am now … | |
This is and answer to one of the Vegaseat's recent projects for beginners. I share my solution here because -as a begginer and do learn python as a hobby- I need your feedback. So please tell me am I doing it the right way? Thanks in advance for comments from … | |
There are so many services which can be used with the interrupt 10h, I'd like to ask the question about two of them whom with i am confused First is, AH = 06H SCROLL UP WINDOW AH = 07H SCROLL DOWN WINDOW While coding in DOS what is meant by … | |
can anyone tell me if there is such thing as 64 bit assembly if so can you give me an assembler | |
# convert2.py # PPython Monty # Lab 2 Ch 2, PE 4 # A program to convert temperatures from Celsius to Fahrenheit and # vice versa def main(): # description of program print("This program converts Celsius temperatures to Fahrenheit and") print("vice versa.") conversion = ("C") n = eval(input("How many temperatures … | |
I already download MASM but it won't worked. I cannot see the MASM icon needed to compile the program. I downloaded visual 2005 also although I can see the MASM in control panel uninstall program. .model small .data x db "Hello World", '$' .code main proc near mov ax, @data … | |
Hi, I an reading a txt file line by line and putting it in to a Queue<string> q = new Queue<string>(); when i execute the program I get a Argument Exception 'Source array was not long enough. Check srcIndex and length, and the array's lower bounds.' how do i handle … | |
![]() | What is the best and fun way to learn Web Service in .NET plaform ,that can apply to real production environment? Anybody knows good projects to refer under codeplex site.. Or may be somewhere else ![]() |
If a child process encounters exit(0) statement, where is this exit status returned in the parent process? Is there any variable associated with every process that holds this information? If not, how do children and parent processes communicate? | |
Please solve this problem i am new to asp.net programming using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; public partial class NewUser : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void TextBox4_TextChanged(object sender, EventArgs e) { } protected … | |
I am building a small social network for my department. I have the homepage as a place where you can make comments and your friends can comment on it. I have 4 tables ...allposts_tb, friendship_tb,response_tb and signup_tb.. The allposts_tb collect the updates and post made by people it has the … | |
![]() | What is the best and fun way to learn Web Service that can apply to real production environment? Any web site or sample projects are always welcome. I would always like to learn quick too so any videos are also welcome |
I have 3 file : 1. index.php 2. form.php 3. validasi form i have a problem if I include file form.php into index.php, why if I included form.php into index.php all field that I fill is inserted to database, but why only field picture is not inserted to database. but … | |
#include<stdio.h> #define MOD 100000009 #define REP(i, n) for(i = 0; i < n; ++i) void mul(int a[2][2],int b[2][2]) { int i,j,k; int c[2][2]; for(i=0;i<2;i++) { for(j=0;j<2;j++) { c[i][j]=0; for(k=0;k<2;k++) { c[i][j]+=(a[i][k]*b[k][j]); } } } // matrix multiply i=0;j=0; REP(i,2) REP(j,2) b[i][j]=c[i][j]; // copying the value in back to b[][] return; … |
The End.