199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for klemme

Hi All, I have some trouble getting some javascript code implemented Its basically because I havent used much it before. Its like this: When admin chooses to delete a page from his site via this link: [CODE] <?php echo '<a href="process_delete_page.php?pid=' . $id . '">Delete page!</a>'; ?> [/CODE] Before this …

Member Avatar for klemme
0
139
Member Avatar for dancks

I'm tired, so the answer to this might be obvious but I cannot figure out what is going on. I uploaded the code plus input file. When I ran the code here's what I got: [code] What do you want to do? -1 -- quit 1 -- add object 2 …

Member Avatar for dancks
0
159
Member Avatar for codemonkey88

Does anyone know about cleaning up URLs for CMS? I had a .htaccess file containing the following code (or so far as I can remember) [CODE] RewriteEngine On RewriteRule ^([a-z])$ /index.php?url=$1 [L] RewriteRule ^/article/([a-z])$ /index.php?url=$1&type=news [L] [/CODE] which was working fine ie: [url]www.mysite.com/somepage[/url] loaded the "mypage" content into my index.php …

Member Avatar for codemonkey88
0
256
Member Avatar for Tazsweet19

How do I figure out about dynamic each of tabs in GUI with C#? I tried to looking for website about dynamic with tabs. Thanks

Member Avatar for Mitja Bonca
0
60
Member Avatar for michaelzip

Hi. I have this table named tblProduct, which contains fldProductID, fldProductName, fldValue fldProductName contains its name, and fldValue contains how much is the product cost. Now I am having trouble with updating fldProductID. Here's what my fldProductID look like. [QUOTE][B]fldProductID[/B][INDENT]G01 G02 G03 GZ01 GZ02 TX01 TX02 TX03 TX04[/INDENT][/QUOTE] Its format …

Member Avatar for michaelzip
0
195
Member Avatar for pczafer

Hi all, I was trying to write a query to List all manager's names and how many employees they are managing. all the employees and managers in the same employees table and have a id number and and manager id number. can any body help with this?

Member Avatar for pratik_garg
0
137
Member Avatar for xanawa

Hi, i have a datagridview where i create new rows and give the name of the header myself eg: table 1 table 2 table 3 As you know the datagridview has the column headers and the rows.. The attachment with this thread has a red circle where i would like …

Member Avatar for xanawa
0
138
Member Avatar for Hellborg

hello there, i have a problem, it might be trivial but i cannot for the life of me understandw what is causing it. so i have a numeric updown and based on the value, it loops and creates as many txtboxes as the value in hte numupdown. and then i …

Member Avatar for Mitja Bonca
0
209
Member Avatar for shakeb@techwave

I am a new software developer.I am developing a website which required to maintain log-in and log-out time of the user.I can maintain my database when user click on Log-out button but i can not track the user when he click on Browser Close X(or in Tab Close)event.I also want …

Member Avatar for shakeb@techwave
0
161
Member Avatar for shyla

I am trying to align the text in the attachment Thats my code [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace Program_No2_Project { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void detailsButton_Click(object sender, …

Member Avatar for shyla
0
108
Member Avatar for lsvife

i created an application for my mobile phone using J2ME...i want that when i turn-on my mobile phone i want my application to start automatically... i heard about push registry but i dont know how to do that... could anybody help me??? thnks....

Member Avatar for peter_budo
0
76
Member Avatar for CSharpUser

Hello, I've written a windows service that I am trying to get to write out to a custom log. In the partial class, it tests for and (I thought) should create a registration to the custom log: [CODE] public partial class ScriptTrigger : ServiceBase { public ScriptTrigger() { InitializeComponent(); if …

Member Avatar for Trouter
0
2K
Member Avatar for erza26

hi...i really, really need help right now...i have order date and approve date.. 1) my problem is, how i can calculate between those two date 2) code for checking insert date...for example, if the user enter yesterday date for order date, it will pop up an error and if the …

Member Avatar for Kannan R
0
79
Member Avatar for Pro2000

[B]Hello everybody. I've been working on a PHP file that adds a value to a cell in one table in MySQL.[/B] First I thought that the following code might work properly: [CODE] <?php require("DB_Connector.php"); //The file that connects to the MySQL database required mysql_query("update tableName set cellName= cellName + '$The_New_Value' …

Member Avatar for Pro2000
0
354
Member Avatar for Fumomo

Hey all, I've been trying to solve this issue I have now sometime but haven't had much luck with it. I want to be able to update a label in a JPanel from another JPanel EG panel1 has an actionListener that updates a JLabel in panel2. I've been searching around …

Member Avatar for JamesCherrill
0
743
Member Avatar for hassan12345

how to delete line number 3 or any line of my csv file ????????????????? like test.csv 1.jhon 2.sarah 3.ricky //delete this row of csv 4.martin

Member Avatar for vibhaJ
0
4K
Member Avatar for coderick

Hello, jsp newbie here... I'm having trouble starting off !! I'm using tomcat 5..5.31, I downloaded jakarta-taglibs-standard-1.0.6, copied the files in jakarta-taglibs-standard-1.0.6\lib to web-inf folder of my application in \webapps\ Following is the exception: type Exception report message description The server encountered an internal error () that prevented it from …

Member Avatar for peter_budo
0
272
Member Avatar for lacoffo

Hey all:) I'm learning Java and I'm having a little trouble on a polymorphic write-to-file function. Let me quickly explain my project: I have an abstract class Mammal, with non-abstract children Horse, Cow etc. I have a Main program that creates a couple Horses and Cows, and store these in …

Member Avatar for lacoffo
0
261
Member Avatar for jeffrey o

What i'm trying to do here is just place the values in my text file into variables the txt file contains: 1111 50 2222 60 3333 70 4444 80 5555 90 i get the error :[COLOR="red"]Exception in thread "main" java.lang.NullPointerException at udptry2.m.readfiless(m.java:41) at udptry2.m.main(m.java:68)[/COLOR] [CODE] package udptry2; import java.io.BufferedReader; import …

Member Avatar for javaAddict
0
235
Member Avatar for dalip_007

Hi Experts, I have a table and I want to check once in a day if some records have been added or removed from this table within last 24hours ,and then send an e-mail to myself of all those added or removed records only . Any idea about how can …

Member Avatar for dalip_007
0
96
Member Avatar for anish99virgo

hello..! well i am new to .net & c#. I want to create an application in C# for voice & video chat.. Need assistance about the topics & concepts which i need to go through..for developing. [COLOR="red"] Tutorials & references links, if provided are welcome. [/COLOR]

Member Avatar for anish99virgo
0
196
Member Avatar for scarletfire

I am suppose to write a [I]ComparePlayers[/I] class that implements the [I]Comparator<Player>[/I] interface. It should compare players by number of games played (and then by alphabetical order of surname if the number of games played is the same). This is what I wrote , it is the general idea i …

Member Avatar for JamesCherrill
0
115
Member Avatar for Dewey1040

I'm working on a project where I have an executable file and the main function to the executable. The executable takes in 6 strings, one at a time, if the string matches what it is accepting then it will request the next string. The project is to use gdb debugger …

Member Avatar for Dewey1040
0
258
Member Avatar for saqib

hi guys , what i am trying to do is ,to take a word as input from user and reverse its order like world into dlrow and tell the user that the word is same or not after reversing its order Here is the code please check it cause it …

Member Avatar for arjunpk
0
208
Member Avatar for missc

hi, i am doing a hotel reservation system and i don't know how to get the rooms available ! can some one help pls ? i have these tables: [ICODE][B][U][COLOR="Red"]tblRoom[/COLOR][/U][/B] ID--int RoomNo--int RoomType--int BedType--varchar(25) RatePerNight--money MaxNoOfPersons--int [COLOR="red"][B][U]tblReservation[/U][/B][/COLOR] ID--int GuestID--int DateOfReservation--datetime NoOfPersons--int RoomID--int ArrivalDate--datetime DepartureDate--datetime TotalCost--money CheckIn--bit (-this is set to …

Member Avatar for missc
0
3K
Member Avatar for RunTimeError

Hey guys, So I have been practicing some common interview questions and have been stumped on one. I got asked this a few weeks ago at a job interview and I failed pretty miserably on it. It is removing duplicates in an array. The problem is as follows: "Given an …

Member Avatar for MvKTheBoss
0
426
Member Avatar for xanawa

I have trhe following code which prints the datagridview.. now i want to print a [COLOR="Green"]label and a textbox [/COLOR]under the datagridview.. how can i do so? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Collections; namespace ResturantBookingSystem { public partial …

Member Avatar for xanawa
0
178
Member Avatar for Gambit0789

Hey it's me again. i know u guys might be sick of me asking q's but i really need ur help. i'm trying to make a game now for my brother for his birthday. and i have the boundary code i need thanks to u guys but i decided to …

Member Avatar for Gopher2011
0
348
Member Avatar for iamthesgt

I was reading through the SIP documentation and was confused on a few things. I can't figure out what code to implement to open a transaction between a server and client. What IP address and port and what encoding should I use (for a video server). Thanks for any help.

Member Avatar for ziggystarman
0
333
Member Avatar for rpv_sen

HI Sorry for opening the thread, i have some issue please help me in solving the below one [B]Javascript[/B] [CODE]<script language="javascript"> function line(elem,amt,res_elem) { var qty=document.getElementById(elem).value; var tot_amt=qty*amt; //document.getElementById(res_elem).value = tot_amt; document.getElementById(res_elem).value = Math.round(tot_amt*100)/100; } </script>[/CODE] PHP [CODE] <?php $cate_code=$_GET['ct']; $civrform=$_GET['vrform']; $site=$_GET['site_name']; $desr="select * from site_rate where category_code='$cate_code' AND sitename='$site' …

0
190
Member Avatar for moose333

Hello I'm trying to draw a line graph on a form but I'm now very much stuck. I'm trying to read in the data from a txt file into an array and then plot the graph using the points collected from the file. This is the contents of the file …

Member Avatar for ddanbe
0
698
Member Avatar for sngapoonage

Hi everyone, Here is my situation: I have a table of users in my database with all the usual user information it it. I have another table which lists the rights that each user has. this table has 2 columns 'Userid','Functionid'. Each user may have multiple rows in this table, …

Member Avatar for urtrivedi
0
301
Member Avatar for caierhui

Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named asset_monitoring_systemPU: Provider named oracle.toplink.essentials.PersistenceProvider threw unexpected exception at create EntityManagerFactory: oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Local Exception Stack: Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: sun.misc.Launcher$AppClassLoader@11b86e7 …

Member Avatar for caierhui
0
164
Member Avatar for Markmit

In the book C Primer Plus, Fifth Edition, in Chapter 10. Arrays and Pointers: C guarantees that, given an array, a pointer to any array element, or to the position after the last element, is a valid pointer. But the effect of incrementing or decrementing a pointer beyond these limits …

Member Avatar for yashsaxena
0
888
Member Avatar for sushanth08

hello, i i have a button which loads the first paragraph of my sample example when the focus is in tabpage1,loads the second paragraph when the focus is in second paragraph and so is the case for third case too. this data comes from the datagrid view.now when i make …

Member Avatar for abelLazm
0
189
Member Avatar for eppitis1

hello, i have this code [CODE] Option Explicit Dim dbFilename As String Dim nodeid As String Dim rs As New ADODB.Recordset Dim cn As ADODB.Connection Private Sub DTPicker_start_date_change() If Me.DTPicker_end_date.Value < Me.DTPicker_start_date.Value Then Me.DTPicker_end_date.Value = Me.DTPicker_start_date.Value + TimeSerial(24, 0, 0) End If refreshRs End Sub Private Sub DTPicker_end_date_change() If Me.DTPicker_end_date.Value …

Member Avatar for rovelyn
0
592
Member Avatar for shroomiin

Hello everybody. I am attempting to write a simple script using a for loop that counts the number of directories, the number of simple files. and the number of symbolic links in the current directory, and then prints this information. The output should look something like... directories: 12 files: 20 …

Member Avatar for thekashyap
0
166
Member Avatar for Tinee

Hi, Im trying to compare an inputted string to an array of string. If the inputted matches one of the array of string it should return 0, but if not it should return 1. Any suggestion on how to do this? This is my program: [CODE]{ for ( int j=0; …

Member Avatar for Tinee
0
252
Member Avatar for eduard77

I would like to take a diploma in c++ programing. Anyone could help me find the best online university ? Thanks

Member Avatar for eduard77
0
89
Member Avatar for hassan12345

hi i want to delete line from my csv file after echo or process this line can any one help???????????? thanks in advance!!!!! here is my code [CODE]$fp = fopen('surInput.csv','r') or die("can't open file"); while($csv_line = fgetcsv($fp,1024)) { for ($col = 0, $j = count($csv_line); $col < $j; $col++) { …

Member Avatar for hassan12345
0
376
Member Avatar for dashure

I am doing a project now in school, and i really need help!. its goes like this: I have 1000 triangles in a file..did it already (its a struct)every triangle has 3 points and its binary catalog number. I have space in memory only for 200. in this file every …

Member Avatar for TrustyTony
0
151
Member Avatar for tactfulsaint

[CODE]while($row = mysql_fetch_array($sql_blabs)) mysql_fetch_array(parameter)[/CODE]PLEASE i need another method OF retrieving data from MySQL database other than THIS IS THE FUNCTION THAT'S THROWING THE ERROR, IT KEEPS SAYING THAT'S ITS A NOT A VALID PHP FUNCTION

Member Avatar for rpv_sen
0
96
Member Avatar for narunaru

I'm a beginner programmer and I'm trying to make a add function that adds two numbers. but these numbers are passed by strings. ex. four + five = is 9. if the answer goes over 10m then it prints out "error". can anyone help me ?? [ICODE] int add (string …

Member Avatar for Dexxta27
0
118
Member Avatar for madmhan84

-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- Please help me... [B]Sir/Ma'am I think I got this one working using this code [U]but I have one problem[/U]: this is the code:[/B] [CODE] #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> void main() { FILE *fp; char code[80],code2[80], ename[80]; int elevel; clrscr(); if((fp = fopen("samplete.txt","r"))==NULL) { printf("cannot open file.\n"); } printf("Enter …

Member Avatar for WaltP
0
229
Member Avatar for bkoper16

Im trying to make a program that has a base class Account and a class ,Savings , that inherits from it. however i keep getting an error that says expected class name before { token and it shows it where i wrote [CODE]class Savings : public account { [/CODE] there …

Member Avatar for griswolf
0
10K
Member Avatar for HelloPeople1

Hi guys I'm writing a top down shooter game in pygame and wanted to use sprites for my object. I got a character sprite working fairly well except I have two problems. 1. When I rotate my character the point of rotation is changing. This causes a uneven rotation in …

0
104
Member Avatar for bibiki

hey there, I have the following piece of PHP code to retrieve a list of files on a directory, and then build links to each file: [CODE] <?php $dir=""; // Directory where files are stored if ($dir_list = opendir($dir)){ while(($filename = readdir($dir_list)) !== false){ ?> <li><a href="<?php echo $filename; ?>"><?php …

Member Avatar for bibiki
0
356
Member Avatar for Jsplinter

All things equal, does an object of a class which has methods take up more memory resources than an instance of a class without methods. What if it is a vector of such objects? For example: [CODE] class A{ public: void DoSomething(); void DoSomethingelse(); private: int x, y; }; class …

Member Avatar for mike_2000_17
0
139
Member Avatar for somemightsay

Hi, I'm attempting to use a Loop which uses an ICount of 1-9 in order to insert data into a database. The code is used for a website and when this page is loaded there are already values assigned to intProductIDSelected1, intProductIDSelected2 etc so I am attempting to use ICount …

Member Avatar for Mitja Bonca
0
139
Member Avatar for Cold Shot

Hello community, I was really hoping to get some guidance on a little issue I'm having. I am in the process of building a site for my aunt, I'm mostly self taught and plugging away at building out my first multi page site. Alas I have encountered a problem: I …

Member Avatar for Cold Shot
0
104

The End.