64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ivan3510

I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time …

Member Avatar for ivan3510
0
104
Member Avatar for samueal
Member Avatar for samueal
0
80
Member Avatar for gedas

hey, i am not sure this a right forum for this question but hopefully you will be able to answer me. i have recently finished developing java application in netbeans and there is a simple issue of printing the source code. once the code printed each page should be numbered …

Member Avatar for gedas
0
111
Member Avatar for rrlogu

Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal …

Member Avatar for rrlogu
0
278
Member Avatar for gaurav_13191

Hi, the following is the code for returning the position of a substring within a string(Brute force algorithm) [CODE] //Brute Force Algorithm #include<stdio.h> #include<string.h> int main(void) { char s1[20],s2[10]; int x1,x2,j,k,i; printf("Enter string 1:"); gets(s1); printf("Enter string 2:"); gets(s2); x1=strlen(s1); x2=strlen(s2); if(x1<x2) return 0; for(i=0;i<=x1-x2;i++) { j=i; k=0; while((s1[j]==s2[k])&&k<x2) { …

Member Avatar for koberoc
0
152
Member Avatar for cableguy31

As part of a school assignment, I have to analyze a binary and determine what is does and what it takes to cause the various "branches" (if statements) to be triggered. I performed a strace on the file and the only part that stands out is a gettimeofday call: [CODE]gettimeofday({1303744469, …

Member Avatar for template<>
0
374
Member Avatar for phpuser

Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. …

Member Avatar for Somnathpawar
0
5K
Member Avatar for realoneomer

Hi Perl Gurus, I have a text which look like 20 Dec 2010 | Completed | ABC 20 Dec 2010 | Completed | DEF 20 Dec 2010 | Completed | GHI 19 Dec 2010 | Completed | JKL You can see that the file have three columns first column is …

Member Avatar for realoneomer
0
161
Member Avatar for cms271828

Hi, I've just uploaded a very simple web app that uses hibernate via a war file to my webserver: [URL="http://www.colin-java.co.uk/BANK"]http://www.colin-java.co.uk/BANK[/URL] The first couple of times I loaded the page above, it was fine, and it correctly displayed some of the contents of the User (MySQL) table. But now when I …

Member Avatar for javaAddict
0
137
Member Avatar for toferdagofer

I had a gui set up that displayed menu items a window and some buttons at the bottom. i am having it communicate with an outside program using commands. i recieved a strange error msg after i tried to have it communicate with the other program. I know the gui …

Member Avatar for JamesCherrill
0
188
Member Avatar for benjaminFowl87

I have a problem with the val function it is unable to get the value of a field once I have type text into it, this only occurs when the form is in a jQuery popup box that has a form. According to my inspector, it says that the element …

Member Avatar for benjaminFowl87
0
3K
Member Avatar for jacob21

Hi, I am fetching data from the database.but I want to fetch it in proper format on PHP page. Suppose i insert some data like. 1)chair 2)bed 3)sofa n when i fetch it comes like that 1)chair2)bed3)sofa But i want to do in proper format. 1)chair 2)bed 3)sofa Need suggestion?

Member Avatar for jacob21
0
154
Member Avatar for littleleaf

Hi all, I am constructing a program on TCP sockets. The server should be able to accept connections from more than 1 clients. My programs seem working fine when accepting connections. Now the problem is: when I try to terminate one of the client programs, the server program would also …

Member Avatar for littleleaf
0
439
Member Avatar for shine_jose

Hi, I am trying to get control of an opened command prompt.Is there any possible way to do that. So that i can directly pass arguments ie commands to command prompt using c# coding. ( I tried using process but only killing the process is working so that already opened …

Member Avatar for shine_jose
0
2K
Member Avatar for Ted87

Hello Everybody! My problem is connected to the SQL Server Enterprise Managager. I worked with it for a day testing a database attaching/detaching it and after I closed the Manager the following problem occured. The local database seems to be dissapeared. However, the applications through the network reach it because …

Member Avatar for Ted87
0
208
Member Avatar for Behseini

Hi everyone I am trying to display a listbox(list of Column Names selected from a table in database)into a textbox displaying like a CSV file format. Please be notice that I do not want to create a CSV file, as I said I just like to pass items from listbox …

Member Avatar for abelLazm
0
2K
Member Avatar for jay.barnes

Hello! I am working with an Access Database (Access 2002) that contains a form that is supposed to import a CSV. However, because some of the integers contained in the CSV are too large for Access to handle (regardless of the number format I select for the field), I'm going …

Member Avatar for AndreRet
0
773
Member Avatar for cwarn23

Hi, I have the following applet which works on my localhost server but when I upload it to my online server then the Java console spits out an error saying the following: [CODE] Exception in thread "thread applet-viewer.class-1" java.lang.NoClassDefFoundError: viewer$1 (wrong name: viewer) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at …

Member Avatar for cwarn23
0
206
Member Avatar for Armanious

I'm trying to send an e-mail through a C# program. It works until it sends it, then the operation times out. This is what I have: [CODE]{ try { SmtpClient client = new SmtpClient("smtp.gmail.com"); client.UseDefaultCredentials = false; client.EnableSsl = true; client.Port = 465; client.Credentials = new NetworkCredential("mygmailacc@gmail.com", "mypassword"); MailAddress from …

Member Avatar for Armanious
0
226
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <vector> #include <iomanip> using namespace std; class DAI //DynamicArrayInput { public : void getCountry() { cout << "Country : "; cin >> Country; } void putCountry() { cout << Country << endl; } static int putCount() { return count; } private : static int count; char …

Member Avatar for Fbody
0
314
Member Avatar for zachattack05

Anyone know if there are methods to alter the properties of files such as "Date Created" or "Date Modified" or even extended attributes such as an image file's "Star Rating" or tags, comments or even the Image ID? I attached some example images of what I am talking about.

Member Avatar for zachattack05
0
119
Member Avatar for zebnoon

Hello , all dear. I was not here for long time. I got project for a tuck shop please suggestion me what type of database i hae yo use MS access,Sal, Orelle or other ease tool? regards, Zeb noon

Member Avatar for Jx_Man
0
103
Member Avatar for shyla

Using an appropriate definition of listnode, design a simple linked list class with only two member function and a defult constructor: void add(double x) boolean isMumber(double x) LinkedList(); The add function adds a new node containing x to the front (head) of the list, while the isMember function tests to …

Member Avatar for Moschops
0
556
Member Avatar for sipchen

I'd like to print preview and print 3 tab pages from a windows form. Below is my code. I was able to get it to work if it's only one tab. but not 3 tab pages. [CODE] Imports System.IO Imports System.Windows.Forms Imports System.Drawing Imports System.Drawing.Printing Public Class Results Dim bmp …

Member Avatar for guptamanav
0
2K
Member Avatar for pjconrad

I have an issue with my python code and in some cases, users are getting the "IndexError: list index out of range" message. However, I'm not getting the error and it's not happening with every case so it's a bit confusing. I did search the site and found this article …

Member Avatar for TrustyTony
0
1K
Member Avatar for Pundia

Hi, I'm working on a simple calculator in Delphi. The assignment is convert C code to Delphi code. My problem is that I've tried for days and I can't come up with something to replace "getchar" from the C code. This is the code in C: [CODE]#include <stdio.h> #include <stdlib.h> …

Member Avatar for Battlesnake
0
599
Member Avatar for sinatra87

I recently received an 'A' on a program I submitted for the programming course I'm currently taking. I'm on spring break and I was hoping to use my spare time to do some studying, so I took my 'A' program and tried to run it in Visual Studio Express, and …

Member Avatar for sinatra87
0
2K
Member Avatar for Venku Tur'Mukan

print "Hello, World!" ;) Hi, everyone, Venku (a.k.a Python Newb) here. I just kind of randomly opened up Python today (I do that a lot), and I decided I would finally ask this: What does the "is" statement do in Python 2.7.1 (if the ver# matters)? I checked out the …

Member Avatar for Venku Tur'Mukan
0
806
Member Avatar for fibbo

I just cant get my head around it. Is there another way going through a singly linked list without using some kind of helper function? The header file wants me to implement: [CODE]size_t priority_queue::size() { /* code here */ }[/CODE] Now I just could create a helper function that has …

Member Avatar for fibbo
0
368
Member Avatar for jdavenport

In the javaScript function below, is there anything I can add to the window.open so that the parameters passed in the URL do NOT show in the window that is opened? It is okay if the script path shows, I just need to hide the parameters. If that is not …

Member Avatar for Airshow
0
6K
Member Avatar for zetologos

I have this homework assignment to make a calculator using a stack and converting infix to postfix. My infix to postfix method works fine. But the other method to evaluate it works for all cases except when multiples or divisors result in double digits. My calculator does not support double …

Member Avatar for tunlinaung
0
108
Member Avatar for jon.kiparsky

So, I'm a tech writer, not a database guy, but I've been asked to develop documentation for my company's databases. This means I have some questions. It seems obvious to me that there must be some SQL documentation tools out there, but I have no idea what is used for …

Member Avatar for jon.kiparsky
0
95
Member Avatar for serdas

hi, i am not a coder and trying to make this work [CODE]var body = 'Reading Connect JS documentation'; FB.api('/me/feed', 'post', { message: body }, function(response) { if (!response || response.error) { alert('Error occured'); } else { alert('Post ID: ' + response.id); } });[/CODE] to make it work above code …

Member Avatar for tomato.pgn
0
422
Member Avatar for ChrisHunter

Hi, i'm trying to implement a print function and i can print a single string out but i'm having trouble configuring the page setup properly, mainly moving to a new line when the margin of the page is reached and moving to a new lines for each string in a …

Member Avatar for ChrisHunter
0
160
Member Avatar for GaBack

i want to make a tictactoe game. But i want all the rules are on the classes and call them to GUI. How can i send the ClickHandler public to the GUI??? here is the class code: ( public void ClickHandler ) [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; …

Member Avatar for GaBack
0
252
Member Avatar for xanawa

i would like to show an image in a datagridview cell giving the path of the image.. how can i do so?

Member Avatar for Mitja Bonca
0
1K
Member Avatar for macca1111

HI, I have written a small program that uses a while loop to calculate how many years it takes for an investment to double given an interest rate: However, I think there is something minor wrong with the calculation for years, since when testing I put in 100% it should …

Member Avatar for NoddyNUIG
0
4K
Member Avatar for kirtee2209

Hi. i need to count the number of times a button has been clicked in C# windows application. for asp websites i know how to do it using viewstates but i dont know how to do it with windows form application. Any help will be greatly appreciated.

Member Avatar for kirtee2209
0
3K
Member Avatar for turt2live

Hello, I have a query that needs to perform the following: where verified=1 AND where name is like '%$term%' AND/OR owner is like '%$term%' I have a basic knowledge of SQL and was wondering if the above is possible. I need the and/or because i would like it to return …

Member Avatar for hielo
0
118
Member Avatar for WolfShield

Hello everyone, I am creating a C# application that has a Web Browser imbedded in it. I am using Microsoft Visual Studios C# Express Edition so I just dragged and dropped the web browser into the application. What I notice though, is when I run it and do a search …

Member Avatar for WolfShield
0
128
Member Avatar for rhuffman8

I am trying to write code for a guestbook on my website that takes the input from a input text field and a textarea, writes the information to a .txt file and then displays the contents of the .txt file on the screen. This is the code I have so …

Member Avatar for rhuffman8
0
1K
Member Avatar for samsambm

Hello , I'm trying to split a string using preg_split() ( since split ) is deprected... I'm trying to split it using '=' sign and to get the GETS variable from a url but I'm getting the error : "Warning: preg_split() [function.preg-split]: No ending delimiter '=' found in C:" The …

Member Avatar for samsambm
0
182
Member Avatar for dnk

Hello all.. I'm looking for how to count words in textbox. Any help will appreciated. Thank you.

Member Avatar for dnk
0
3K
Member Avatar for jarograv

[CODE]#created by Jaron Graveley #April 26th, 2011 #This program completes reservations for Jon Von Poechman’s airline in an easy to use program #variable list: #i=counter used to limit the number of seats present on the diagram #n= counter to display the row number on the diagram #num_booked=counts the number of …

Member Avatar for jarograv
0
249
Member Avatar for anirban1087

Hi, I am working on a Inventory & Billing Management System. I am having some problem with the design of some tables. The problems are as follows 1. I have a product table. Where I am storing the product details, but the problem is that each product have an unique …

Member Avatar for jbisono
0
929
Member Avatar for xanawa
Member Avatar for NinjaLink

Is there a way to create a program to rewrite a query in an optimal form. If so, how? What can I do to implement this. Rewrite SELECT EMPOYEE.EMPNO, POSITION FROM EMPLOYEE E, JOBHISTORY J WHERE E.EMPNO = J.EMPNO AND STARTDATE <= ENDDATE AND SALARY <= 3000 into SELECT EMPLOYEE.EMPNO, …

Member Avatar for crishjeny
0
112
Member Avatar for wenbnet

i m using vb.net with oledb connection when retrieving data from EMP database i m getting error as syntax error(comma) in query expression 'eno='1',lname='',fname='' And FromPay=## And ToPay=##' plz help... [CODE] Private Sub PopulateNameList() Dim Connection As New OleDbConnection(ACCESS_CONNECTION_STRING) lvName.Items.Clear() lvName.Sorting = SortOrder.Ascending Dim cmdfill As New OleDbCommand("SELECT eno, lname …

Member Avatar for wenbnet
0
333
Member Avatar for pooran.c

that is expected output is [CODE] sun mon tue wed thu fri sat 1 2 3 4 5 6 7 8 9 10 .... ... ... 29 30 31 [/CODE] my code: [CODE]static void print_31days(int a[][]){ int i=1; while(i<=31) { int some=0;//some is the startdate of the month of the …

Member Avatar for pooran.c
0
166
Member Avatar for girishsp

hi all, i need to develop windows applications(c#,mysql)as i have started to develop applications recently i need some examples to refer(which includes almost all controls) may be like customer maintenance or order placement form etc..so can any one help me out.. thanks a lot,

Member Avatar for abelLazm
0
266

The End.