199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for persianprez

Here is the code for my form: <form action = "index.php" method="post"> <!--the form is being submitted to the same page--> <button class="btn" name="button" onClick="submit()">Yes</button> <button class="btn btn-primary active" name="button" onClick="submit()">No</button> </form> And on the top of my index.php I have the following: <?php $refresh = $_POST['button']; ?> When I …

Member Avatar for lps
0
178
Member Avatar for smackthat9876

I want to call a script page in php where the referral link is visible when you mouse over the image, something like this: http //mysite com/phpscript?d=www.site.com/thread/217.html (I don't know php incredibly well yet - so if that doesn't look right please let me know) And then based on whatever …

Member Avatar for smackthat9876
0
1K
Member Avatar for mikewyatt

I have a jtab that contains 3 items: a jtextfield that the user will enter a integer value(1-100),and press a jbutton which takes that value and thru a series of if tests generate a text response in a jtext area. example: Input = 1 Output = My Dog has fleas. …

Member Avatar for mikewyatt
0
231
Member Avatar for ronnel09

Is main(); function included as loop statement? for example i have a program with subprograms then if I finished a subprogram i will use main(); function to go back from the main program. is that considered as loop? thanks!!

Member Avatar for _avishek
0
106
Member Avatar for gAb1

Hi, first i need to download a good compiler, what can you recommend me? I always used dev-c++ but in windows 8 don't work, it gives this error: "gcc.exe: Internal error: Aborted (program collect2)". Well, i need to get content from json files to make a sql sentence, insert into. …

Member Avatar for _avishek
0
200
Member Avatar for sheshagirig

Hi all, I have code as follows, to fetch rows from mysql table. Table it fetches is given below. I want to access now each cell in the table, how do I do that? For e.g, I want to multiply Rank for the Job "transform Brand image by 82% and …

Member Avatar for sheshagirig
0
130
Member Avatar for thilipdilip
Member Avatar for Webintraining

2. Write a custom error handling JavaScript function called processErrors that handles a custom error by assigning it to the onerror event handler. Include the block of JavaScript statements needed to pass the arguments sent by the JavaScript interpreter into the processErrors function, send an alert message with the agreements, …

Member Avatar for Webintraining
0
243
Member Avatar for Vish0203

hey, i've been trying to insert the element in the linked list, but I don't understand why the element is inserted at some other position i.e. it is not inserted at the position which i pass. is there any error in the insert function? template <class T> void insert ( …

Member Avatar for Vish0203
0
141
Member Avatar for giannoui

Hello, I would like to know if anybody could help me with this program that im trying. I have a text file with data inside and i want to display one data line per time with 2 sec delay. The data should continue show infinitely. This is what i have …

Member Avatar for Reverend Jim
0
545
Member Avatar for Brandon5150

I send out a newsletter using a PHP based mailing list manager installed on my server, which uses phpmailer to send. For most users that I send to, they get the newsletter fine, but users who have email accounts with cox.net , windstream.net , roadrunner.com, rr.com , earthlink.net seem to …

Member Avatar for Brandon5150
0
956
Member Avatar for Shashank clic

** # is it possible to creat threads in c-programming? # ** ## Sub-Heading Here ## yes,then how? no, then why not?

Member Avatar for nmaillet
0
110
Member Avatar for bo0ga

Just got an entry level web developer position the city. It starts in 2 weeks. I would love some tips on how to effectively prepare. I'm an IT major not computer science, so my classes focused more on systems and databases rather than programming. I had a really good interview …

Member Avatar for bo0ga
0
167
Member Avatar for flourishit

I want to creat a blog for my site, which is hosted on windows server. Can we host a wordpress site or blog on windows.

Member Avatar for baig772
0
158
Member Avatar for jarrodoliver1

Hey guys, Im making a program that will be used by graffiti collectors. There will need to be an import picture button l which will import a picture from your selected drive, and there will also be a take picture button, which i am having trouble with. Any help would …

Member Avatar for Hpsvtw_1
0
146
Member Avatar for godzab

Here is my form.html <html> <head> <script type="text/javascript"> function ajax() { var aj; if(window.XMLHttpRequest) { aj = new XMLHttpRequest(); } else { aj = new ActiveXObject("Microsoft.XMLHTTP"); } aj.onreadystate = function() { if(aj.ready == 4) { document.getElementById("text").innerHTML = aj.responseText; } }; var param = document.forms["fo"]["text"].value; aj.open("GET", "try.php" , true); aj.send(); } …

Member Avatar for esma.ramirez
0
127
Member Avatar for technoknol

Hi Friends, I have written one HTML page in which i have on button with window.open function. so it opens in new tab. but i want it to open in it frame in that HTML page. Is it possible any how ? Or is there other way ? **Thanks**

Member Avatar for esma.ramirez
0
314
Member Avatar for b saaj

hi all, i am working on small RMS and got problem to print receipt using pos printer. the expected out put is like that. 1. XYZ Ltd 2. London, Uk 3. 4. 5. 6. Transaction #: 100 7. Date: 11/12/2008 Time: 09:10:10 8. Cashier: Fred 9. 10. Item Qty Unit …

Member Avatar for nmaillet
0
288
Member Avatar for Alexkid

Hi there, I’m fairly new a c++ and am having trouble figuring out how to use a returned function variable. Here’s my code #include "stdafx.h" #include <stdlib.h> #include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include <algorithm> #include <iterator> using namespace std; std::string OMPS (char const* path) { …

Member Avatar for phorce
0
296
Member Avatar for vinnitro

I am beginner with C# language & currently using WROX's beginning Visual C# 2010 But sometimes it is hard to understand. Is there any book that can help me?

Member Avatar for vinnitro
0
214
Member Avatar for Viped

Hi, I can't figure how to detect collision between Ellipse2D and Rectangle2D. I have tried intersects and contains methods with and without getBounds and getBounds2D methods but nothing works. Here is some code, ball and bat are overlapped. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.Toolkit; …

Member Avatar for Taywin
0
912
Member Avatar for tapuwa2002

Hi Guys I have a number and I only want to display the first 3 digits could you please help. Thanks <cfset mytour=885879><cfoutput>#Left(#mytour#, 3)#</cfoutput> How can I make the result into a global variable to use later. Forgive me am a noob to coldfusion

Member Avatar for arrgh
0
110
Member Avatar for myk45

Hi all! This is w.r.t the thread [How to make my C++ program executable on other computers](http://www.daniweb.com/software-development/cpp/threads/431194/how-to-make-my-c-program-executable-on-other-computers) I didn't want to continue the discussion there, so i created the new thread. I had faced the same problems in the past. I needed some clarification on the following: 1)`The option shown …

Member Avatar for myk45
0
319
Member Avatar for diptid
Member Avatar for Squidge

Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- …

Member Avatar for Squidge
0
155
Member Avatar for niall_heavey

Hi all, I'm currently trying to use an inherited excel macro. I did not write it (and would not have the skills to write VB either) But i've been getting a number of errors while running this code. I've got through a lot of them but now can't figure this …

Member Avatar for AndreRet
0
179
Member Avatar for PinoyDev

Good day! I have this class for Players: #include<iostream> using namespace std; class Players { public: char Level[2]; float SetPower(); }; Players Pl, float Players::SetPower() { switch(Pl.Level) { case '1': return 5000; break; ......... } } int main() { Pl.Level='1'; cout<<"Your current Power is: "<<Pl.SetPower()<<endl; system("pause"); return 0; } Now …

Member Avatar for Vish0203
0
142
Member Avatar for ellosbibu

I created a program that : 1)write by keyboard a number A of 5 number digits 2)write all the combinations ( 2 digit ) using digits of number A 3)order the combinations MY PROGRAM DO ALL THIS , but i don't know how to limit the combinations from 4 digits …

Member Avatar for ellosbibu
0
221
Member Avatar for Frensi

I have a function and want to use time.sleep(2) everytime an attack happens, but what ends up happening is the time.sleep(2) will work for the first player and enemy attack, then the program will print the rest of the attacks instantly. Does anyone know what I'm doing wrong? def attack(player, …

Member Avatar for Ene Uran
0
7K
Member Avatar for onlineboy18

Hello everyone. I am new in coding and db so i am facing a problem regarding of fetching the data from 3 tables. Please suggest or help me. Thanks in advance. I was writing a query to fetch data from 4 tables i.e pat_table, test_table, doc_table, emp_table. In pat_table there …

Member Avatar for onlineboy18
0
112
Member Avatar for Andyjava

Please can someone show me how to retrieve database tables and add them as items to my JComboBox?.i have this app that i'm creating and it has a database which contains tables with their names and i want to add them as items into my JComboBox to aid file insertion …

Member Avatar for Ezzaral
0
157
Member Avatar for rishad1418

how to edit textbox in visual c++ 2010,windows form application? please any one give me a perfect solution by details and it will be bater if you provode me tutorial link. thanks Rishad1418 [email snipped]

Member Avatar for np complete
0
58
Member Avatar for sarelnet

Hi, I have a HTML page in one variable. I need build a mehod that will extract a tag content (dif extract_tag(self, tag_name)). For example, given webpage: <div id="mw-page-base" class="noprint"></div> <div id="mw-head-base" class="noprint"></div> <!-- content --> <div id="content" class="mw-body"> <a id="top"></a> <div id="mw-js-message" style="display:none;"></div> <!-- sitenotice --> <div id="siteNotice"><!-- centralNotice …

Member Avatar for ryantroop
0
253
Member Avatar for //Gonz

I have written a program which allows agents of a call centre the ability to access a database (ms access) containing names of solicitors to allocate to. the database is stored centrally and i need a way to update the local dataset on the agents machine when a change is …

Member Avatar for //Gonz
0
204
Member Avatar for isley

Hi Guys, I am creating an application that will send and receive a data from a phone application like a native android application will do. (e.g. A Client-Server relationship). Can anyone suggests or tell me how does an android phone(we are using PhoneGap) which is our client side sends a …

Member Avatar for peter_budo
0
167
Member Avatar for shlokka

hi guys, hope this is in the right place? basically im trying to find places to sell php scripts. ive found a couple, but they all want at least 30% of my sales which is ABSOLUTELY PATHETIC!!! id b upset at 10% but im prepared to pay that if the …

Member Avatar for almostbob
0
153
Member Avatar for 'AnKo

Hey there! I just want some hints for some program I'm trying to make. Say we have a 1GB file full of 0 and 1. What I want to do is to find the patterns of them and rank them. It wouldn't seem so complex if I had to deal …

Member Avatar for np complete
0
109
Member Avatar for HibaPro

hi all , i now working on new project that have a class for table includes the add , delete , and update function how i can call them in vb??? this one of the class Imports System.Data Imports System.Data.SqlClient Public Class BOQSectionsAndParts Private _BOQSectionsAndParts_ID as Integer = 0 Private …

Member Avatar for Reverend Jim
0
968
Member Avatar for Cragsterboy

Hi, im just doing some past exam papers for an exam I've got coming up and im struggling with Java generics, i cant seem to find any good examples to help me out. I've found small snippets of code but i really need a larger piece of code shown before …

Member Avatar for Taywin
0
204
Member Avatar for shanki himanshu

public class QueueImpl<E extends Comparable<E>> { private int count; private class Node { private E info; Node next; } Node front; Node rear; public E peekMaximum() { Node temp = new Node(); temp = front; Node max = new Node(); max = temp; while(temp!=null) { System.out.println(temp.info); //if(temp.info>max) if((temp).compareTo(max))>0) // getting …

Member Avatar for JamesCherrill
0
154
Member Avatar for Alexkid

Hi there I have a question about pointers, i have a functions that takes a path to a txt file, extracts whats in it into an array and returns the array. As i understand it you can't actually pass the array, you have to return the pointer to the array …

Member Avatar for Alexkid
0
256
Member Avatar for jellej

I have a jQuery tabs slider that auto rotates and depending on the slide it will adjust the background of the `<div>` element it is in. Auto rotate goes fine, the correct background is loaded, but when I manually click the tabs, it doesn't take the correct values. It's almost …

Member Avatar for Taywin
0
264
Member Avatar for Krokcy

Hey :) First off this might actually be a network problem! But im also uncertain of the java code and how networking works in java. The program is basically just to transfer a file if that matters! So this is my code for setting up the connections: Server: //connection(s) private …

Member Avatar for Krokcy
0
287
Member Avatar for python |

I am trying to pipe username and password (not to pass through command line for safety purposes) from one python script to another python script with some arguments. I was successful in perl implementing the above like this program - perl1: open(INPUT,"|perl my.pl $arg1 $arg2") or die "cant fork $!"; …

Member Avatar for Pervex
0
5K
Member Avatar for gAb1

Hi, i don't know what happen in the code. I have this JScript: changeLanguage: function(target) { var rel = target.split('-'), region = rel[3], game = rel[1], client = rel[2], lang = rel[4], ver = rel[1], //not sure... name = $('#' + target).text(), id = game + '-' + client + …

Member Avatar for Taywin
0
462
Member Avatar for wiliams.kikert

Hi all, I've got a code here, as the title says it is a sudoku puzzle. It can create only one puzzle which is there hard coded. Now, the problem is how to add another puzzle? Or maybe I can turn this into a random generated puzzle which is hard …

Member Avatar for Taywin
0
314
Member Avatar for isalano

hallo i am a dummy in PHP and i would really love to leran everything thereis about it. i need guidance o how to start and become a professional. i am requesing for anyone to guide me through and be my mentor through the exercise. i am readily available at …

Member Avatar for almostbob
0
97
Member Avatar for Eagletalon

Hey Everybody, Allright my setting is like this: I created a derived MVC program using C++ and QT on Visual Studio 2008, that sends multiple instructions to our ERP system through an external program... On each command posted this way the user application needs to wait for a return string …

Member Avatar for Eagletalon
0
582
Member Avatar for k_nenad

Hi all, I'm trying to get the list of files in a directory using WINAPI functions FindFirstFile and FindNextFile. The problem is that WIN32_FIND_DATA.cFileName returns only the first character of the file name. This is a console application created in Microsoft Visual C# 2008 Express Edition. Here is the code. …

Member Avatar for Y D'hondt
0
552
Member Avatar for ruudycruise

Please i dont know how to bubble sort using the command buttons to swap textboxes from 1- 5.

Member Avatar for AndreRet
0
148

The End.