199,114 Archived Topics
Remove Filter ![]() | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello, how to insert a pdf file in database(ms access) using vb.net anybody can help me please? thanks ^_^ | |
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 … | |
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 … | |
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 … | |
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 … | |
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'] … | |
I know 2 drop down list ajax and php without press submit button | |
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 … | |
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 … | |
Can any one tell me how to make a program to Generate Palindromic numbers? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
now i know how to run the program of while loop.But i have a problem in getting while loop using three counter | |
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 … | |
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?... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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', … | |
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 … | |
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? | |
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 … | |
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 | |
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. | |
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 … | |
![]() | 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 … |
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) { … | |
how can we use the same condition by using the iteration for the numbers automatically? Like 1 after 2. 2 after 3. till 50? ![]() | |
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 … | |
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 … | |
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 … | |
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 | |
How can I connect two tables from MS SQL Server 2005 using vb.net 2008? what's the code? | |
[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 … | |
hi friends i want php script that uploads image without refreshing the page thanks | |
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. … | |
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 … |
The End.