199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sachinpkale

hi, I want to run the command using java code echo $PATH I used Runtime.getRuntime().exec() for this, but it returns outputp as : $PATH. I know I can get the value of PATH variable using System.getProperty() but I want to use particularly "echo" command. How can I do it?

Member Avatar for JeffGrigg
0
175
Member Avatar for Nahiyan

I have coded some ajax recently but whenever I click the 'register' button, nothing actually happens. I worked about about an hour to check what's wrong with the code but I failed to find any error. My php file just displays out an echo and runs some code if required …

Member Avatar for Nahiyan
0
116
Member Avatar for l0ns008

I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to …

Member Avatar for klemme
0
994
Member Avatar for Lebowski

Edit: The title could have been more descriptive, I am sorry for that! Hello! First time poster, frequent reader. I am very green to both programming and python, trying my best and this board has been helpful just by reading. Now, I have a problem of my own that I …

Member Avatar for TrustyTony
0
411
Member Avatar for johnXQ

Please i need help for my new project: I want to create a crystal report that pass parameters from my code. Like what i have done in vb6. IN VB6 i made a report design without by data sources: i just fill the report with rptTextBox and rptLabel then in …

Member Avatar for johnXQ
0
176
Member Avatar for vinaysrk919
Member Avatar for debasisdas
0
119
Member Avatar for baby_c

Hello Friends.. need a help with Merge Sort I tried to implement Merge Sort using Java language..I followed Introduction to Algorithm book for the algorithm.. but the code generates errors.. please can anyone explain this to me.. why these errors pop-up ?? [CODE] package test; import java.util.Random; public class mergeSort …

Member Avatar for JamesCherrill
0
382
Member Avatar for TIP.Synergy

Hello, how to insert a pdf file in database(ms access) using vb.net anybody can help me please? thanks ^_^

Member Avatar for TIP.Synergy
0
1K
Member Avatar for Panathinaikos22

Hello, well as all we know programms are not just 1 exe file.. when you download and install example MSOFFICE there is a .exe file (start file) and lot of other folders/files like *.wtf *.whatever ;ppp well How this can be done? making lot of projects in 1 solution? it …

Member Avatar for Ketsuekiame
0
148
Member Avatar for triumphost

I've been programming in C++ for quite some time now and I know all functions must return a value.. but can someone tell me WHY we return 0? I mean it compiles even when I don't put return 0.. and the program executes fine.. I can see in some functions …

Member Avatar for SnowFall
0
273
Member Avatar for DariusG

Hello. I have a small problem. I am working on a small website where people will be able to take quizzes for driving lessons. I take my questions and answers from a database. The problem is that i get the first questions and after i submit the answers, the next …

Member Avatar for DariusG
0
203
Member Avatar for clems31

Hi, My problem is that I'm recovering data (which depend on what the user selected on a first page) from a SQL database for several language checked (also on that 1st page). I would like to create files for each one of the language selected. For now, I tried to …

Member Avatar for clems31
0
120
Member Avatar for gonidelux

Blank Screen on Step 2 of the Checkout Process in my PLAINTCART project ! checkout.php [CODE]<?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; require_once 'library/checkout-functions.php'; if (isCartEmpty()) { // the shopping cart is still empty // so checkout is not allowed header('Location: cart.php'); } else if (isset($_GET['step']) && (int)$_GET['step'] > 0 && (int)$_GET['step'] …

Member Avatar for gonidelux
0
229
Member Avatar for Pann Ei
Member Avatar for Kratos-s-

i have created a html form page(1) and php page(2) to insert records into a database from the html form, when i insert the records from the html form and press the submit button the records don't get into the database but a page open with the php code i …

Member Avatar for rpv_sen
0
254
Member Avatar for pritom_jrt

Hi, I'mvery new to VB2008 and have basically no idea regarding much of coding. I have attached a copy of my form. Basically, I have a db named "employee.mdb" with table "Employee". It has 3 fields Name, Dept and Designation. I want to connect my db with the form and …

Member Avatar for Anne_Bonch30
0
228
Member Avatar for SuperJunkeh
Member Avatar for WaltP
0
133
Member Avatar for decade

I have a problem in display or echo in php. what method should i follow if i the problem is with like this: example code: $email = trim($_REQUEST["email"]); if(strlen($email) < 1){ echo "0__notice__Email is empty."; } but the output should display only this part "Email is empty." only and not …

Member Avatar for decade
0
140
Member Avatar for abhinavM

I have a set of radio buttons.These radio buttons are associated with some questions for survey.I also have a Submit button.I want that as soon as I click the Submit button, the application should read the status of radio buttons.But I am unable to figure out a way of doing …

0
110
Member Avatar for StevenSchaffner

Keep getting this error. Using ASP datagrid [CODE] Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim connectionString As String = WebConfigurationManager.ConnectionStrings("connectionstring").ConnectionString Dim selectSQL As String = "SELECT * FROM checkInOut" Dim con As New SqlConnection(connectionString) Dim cmd As New SqlCommand(selectSQL, con) Dim adapter As New …

Member Avatar for StevenSchaffner
0
138
Member Avatar for VB_Magic

I have a problem when trying to detect the computers network connection status. Here is the code I have used: Dim IsAvalible As String = My.Computer.Network.IsAvailable If IsAvalible = True Then Label1.Text = "Connected" Else If IsAvalible = False Then I Label1.Text = "Disconnected" End If End If But for …

Member Avatar for GeekByChoiCe
0
211
Member Avatar for Whilliam

Hello guys.. Im very new to java. Im using netbeans 7.0 and JDK 1.7. Im an IT student. My teacher said that we must use only Java DB (don't know why) for our database. I've already made a program. It will display all the contents of a table. My problem …

Member Avatar for Anuradha Mandal
0
192
Member Avatar for l0ns008

I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows …

Member Avatar for l0ns008
0
2K
Member Avatar for miyumi

now i know how to run the program of while loop.But i have a problem in getting while loop using three counter

Member Avatar for Anuradha Mandal
0
130
Member Avatar for seamus400

I put a few solid days into finding a working method of capturing the screen and they either didn't compile or weren't quite what I was looking for. I am wondering if anybody has any example code to capture the screen every 10 seconds and save it to bmp. I …

Member Avatar for seamus400
0
593
Member Avatar for uselessninja

what is the difference between foreign key and joins? when to use foreign key? How foreign key works? and Is it better to use join rather than foreign key?.. can someone explain me this?...

Member Avatar for uselessninja
0
106
Member Avatar for ismpk

I have created setup file of my program & it shows error when I install it there in another pc which doesnt have visual studio. Even I have tried to install it there in another pc which has visual studio & it worked well. I am confused. I am use …

Member Avatar for ismpk
0
208
Member Avatar for jovillanuev

Hi guys, Need you inputs on my query. I have an excel file which we have to upload weekly. They want me to make an application using SSRS (MS SQL) . To read the excel file from a certain folder And then make some data entry to inputs like date …

Member Avatar for jovillanuev
0
130
Member Avatar for jjyuyujj

Hi Does anyone know how to playing a set of short WAV files without delay? I was using the following, but there is a delay in-between. PlaySound("a.wav",NULL,NULL);//PLAY WAV SOUND ONCE PlaySound("b.wav",NULL,NULL);//PLAY WAV SOUND ONCE or I need to concatnate a few sets of short WAV files into one descriptor so …

Member Avatar for pseudorandom21
0
284
Member Avatar for Satyrn

Hello Daniweb Community, I am migrating a VS2005 solution to VS2008 which often includes its own ras.h file. Unfortunately there are several projects including <windows.h> which includes "ras.h" from the Microsoft SDK. What I would like to do is get a refactoring tool to rename this header file and update …

Member Avatar for Ancient Dragon
0
116
Member Avatar for grazinggoat

Hello - This is my first perl scripting try. I am trying to read a file into a hash so i can track it by id the file looks like this: ID FILNAME SIZE 1 logfilename 346202741018308 2 logfilename 0261512802421464 3 logfilename 612262297692848 4 logfilename 3268022049187 5 logfilename 888755246426701 6 …

Member Avatar for d5e5
0
1K
Member Avatar for davy_yg

I have the following code in send_email.php [CODE] <body> <?php // send mail code $name=$_GET["name"]; $email=$_GET["email"]; $message=$_GET["message"]; ?> Name : <?php echo $name; ?><br> email : <?php echo $email;?><br> message : <?php echo $message;?><br> <?php //$to = 'david_yg20@yahoo.com'; $to = 'garudamedia@localhost'; $subject = 'e-mail feedback'; ini_set('sendmail_from', 'admin@localhost'); ini_set('SMTP', 'localhost'); //ini_set('SMTP', …

Member Avatar for ddymacek
0
193
Member Avatar for bangla

Hi, i am trying to open a file in php but its not. 1. i saved a txt file, called welcome.txt welcome.txt content "welcome to PHP file" 2. then i wrote another file, "file.php". content is: [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] 3. "file.php" and "welcome.txt" on the …

Member Avatar for ddymacek
0
165
Member Avatar for Nahiyan

The title says it all. I want to include a file outside the current working directory. Suppose my file is in the address "localhost/directory1/directory2" and I want to include 'core.inc.php' located in "localhost/directory1". In this case is requiring that file possible? If so then how can I achieve this?

Member Avatar for ddymacek
0
91
Member Avatar for StevenSchaffner

Well i am using asp and VB.Net to make it to where people can check in and check out. I have gridview which has where it shows the data from my sql server that i put dummy data in. When i load my website the data shows up. I do …

Member Avatar for StevenSchaffner
0
140
Member Avatar for jacksantho

Hi, Any body please help me out: [CODE][B] while loop { $val=mysql_num_rows($result14); $blnk=array(); array_push($blnk,$val); } $blnkarraysum=array_sum($blnk); [/B][/CODE] Values are not at all getting add up. why ? thanks in advance

Member Avatar for cereal
0
326
Member Avatar for nishant969

Guys I need help wid dis..... I hve 2 make a project on Human Facial Emotion Detection System.... Can anyone suggest me any algorithms for that ??? If anybody got sample code in any Programming language, pls post it here.

Member Avatar for Momerath
0
95
Member Avatar for divin757

When I try to navigate to the service it shows me the methods like normal but when I try to see the wsdl I get a file not found error. I have created both the wsdl.aspx and the disco.aspx. They have been deployed into _vti_bin folder. I was able to …

Member Avatar for divin757
0
254
Member Avatar for megachip04

I'm hoping there is a simple solution to this. I am using a form to submit some information. One of the boxes is a textarea. When i submit the form it runs this line of code: [CODE] if (!isset($_POST['textarea']) [/CODE] it seems to register that there is type there regardless …

Member Avatar for ddymacek
0
3K
Member Avatar for detailer

Hello, Beginner in C++ how to make this program if i pressed ctrl-c the program will quit. and there's a tiny problem. whenever i run my program it says that return 0 is unreachable code. thanks guys :) [CODE]#include <iostream.h> #include <stdio.h> #include <stdlib.h> int main() { while (1) { …

Member Avatar for Ancient Dragon
0
255
Member Avatar for samuel16

how can we use the same condition by using the iteration for the numbers automatically? Like 1 after 2. 2 after 3. till 50?

Member Avatar for Enalicho
0
122
Member Avatar for gogs85

I need help for Windows Workflow Foundation assignment: Make a Windows application that will perform the calculation of service. The form will enter the start and end dates for the calculation of service. As the length of service can be calculated in three different ways to form there will be …

Member Avatar for singh_soorma94
0
106
Member Avatar for Panathinaikos22

well i create a application and i put all MenuStrip icons in a folder And i call them like this [code] MenuSItem.Image = Image.FromFile(@"Icons/Login/About.png"); [/code] but this one have a big problem, everyone have acces to icons, everyone can delete-put other icons... Yea ok i know, i can let icons …

Member Avatar for singh_soorma94
0
169
Member Avatar for msowards

I'm trying to allow members to upload a picture to the my website. I In my php code I test the uploaded files for type. For some files it works fine, but I've discovered there are .jpg files that don't seem to have the internal type headers and the php …

Member Avatar for ddymacek
0
904
Member Avatar for praset

Hello i have problem in my software, i want to read file excel and compare data. If i use file excel with small size it run succesfully, but if i use large file i have fault. Please some body help me

Member Avatar for madCoder
0
109
Member Avatar for Bax
Member Avatar for adam_k
0
300
Member Avatar for maemaumeow

[CODE] <select name="year"> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> </select> <input type="submit" name="sub" value="Search"/> </div> <?php if(isset($_REQUEST['sub'])){ $year=$_REQUEST['year']; $con=mysql_connect("localhost","root","")or die( "Unable to connect"); mysql_select_db("mydb",$con) or die( "Unable to select database"); $query="SELECT * FROM student WHERE EnrolledYear='$year'"; $result=mysql_query($query)or die(mysql_error());; $num=mysql_numrows($result); mysql_close(); ?> <table> <tr> <th>Student ID No.</font></th> <th>Name</font></th> <th>Enrolled …

Member Avatar for ddymacek
0
154
Member Avatar for rahulvramesh
Member Avatar for IIM
0
106
Member Avatar for AngelinaUS

Hello, I am new in VB and I have a problem. I'm trying to make a page where you enter some data in the textbox and on button click you search a database and you have a results in grid. But on button click nothing happens. Here is my code. …

Member Avatar for debasisdas
0
103
Member Avatar for codeorder

Hello everyone. I'm new to this forum and PHP in general. I finally got the nerve to tackle a mySql Database on my website's server, added columns and a few values, although I cannot seem to find any online help to retrieve the values from the database table. Here is …

Member Avatar for codeorder
0
181

The End.