199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dhani09

Hello, I have a php page (category.php) that loads its content from the database when a link is clicked from another page. For example a a link that looks like this `<a href = "category.php?category=cars">Cars</a>` when clicked will pull all the items from the database under the cars category and …

Member Avatar for JorgeM
0
217
Member Avatar for Dudestreet

Hi Team, I'm stuck with my code and I found out this snippet to save(Export) an Excel file to **D:**. However, I would like to give a User an option to save it according to his/her necessity. Please find the Code Snippet below: Private Sub Button1_Click(sender As Object, e As …

Member Avatar for hericles
0
317
Member Avatar for kayleigh0411

I have to create a program that will calculate the the average miles per tank and the cost to fill tank of a car. The inputs are tank capacity, miles per gallon, and price per gallon, the outputs are average miles per tank and cost to fill tank. I have …

Member Avatar for Tarek_2
0
207
Member Avatar for catastrophe2

hi so this code here as i test it on paper provides paranthesis on every leaf node, disregarding priority (operator precedence) how can i make it add those paranthesis based on precedence of operators? void printInfix(Node n) { if (n == null) { if (n.isLeaf())//if n is a leaf, therefore …

Member Avatar for catastrophe2
0
243
Member Avatar for Sudha Granger

I am trying to add a coloumn from database into a listbox in VB6. The following code works. The selected item from this listbox is used to find and add records to the ListBox2. Using Oracle 11g Express Edition and Visual Basic 6. Working code: (Displays the artist column from …

Member Avatar for cgeier
0
592
Member Avatar for VasquezPL

I have a code foreach(Control grpbox in this.Controls) { if (tb is CheckedListBox) { tb.CheckedItems... } } and I need to use tb.CheckedItems as above...but somehow CheckedItems is not visible there... I can see other things related to "Control" but not related to "checklistbox" how to fix that?

Member Avatar for VasquezPL
0
184
Member Avatar for Rahul47

Hey guys, here I am starting my journey into javascript, when this stupid bug is annoying me. Following is my piece of code: <html> <head> <title> Using 'this' in Javascript.</title> </head> <body> <script type="text/javascript"> var name={ firstName:"Foo", lastName:"Bar", showName:function(){ console.log(this.firstName +" "+this.lastName); } }; name.showName(); alert(name.lastName); </script> </body> </html> Problems: …

Member Avatar for Rahul47
0
218
Member Avatar for Joshua_9

Can you make me a program that does this: Amount of numbers:5 // any number 123 // arrays 343 424 34234 344 // random numbers output mean: //calculates the mean standard deviation: //calculates the standard deviation

Member Avatar for David W
0
309
Member Avatar for engrjd91

I have the following code: import java.util.Scanner; public class WhileLoop { public static void main(String[] args) { int number; int maxValue = Integer.MAX_VALUE; int minValue = Integer.MIN_VALUE; Scanner input = new Scanner (System.in); System.out.println("Enter the length of numbers"); int loop = input.nextInt(); for(int i=1; i<=loop; i++){ System.out.println("Enter a number: "); …

Member Avatar for oussama_1
0
241
Member Avatar for moaz.amin.37

hello i have a problem with Priority when I set priority of any thread then I get wrong output my code is below class Run implements Runnable{ private String st; public Run(String s){ st=s; } public void run(){ for(int i=1 ; i<=10 ; i++){ System.out.println(st+"="+i); } } } class PriorityCheck{ …

Member Avatar for moaz.amin.37
0
259
Member Avatar for dinesh07.msc

When i click hlink in index.jsp , showing null.. and so the output shd be helloworld. i use netbeans 6.9. initservlet.java: public class initservlet extends HttpServlet implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext con=sce.getServletContext(); try{ System.out.println("Hello world"); con.setAttribute("p",con.getInitParameter("print"));// setting context attribute here... }catch(Exception e) { con.log("Error occured",e);}// throw …

0
101
Member Avatar for Danny_7

Dim FrenchMark As Integer = 0 Dim GermanMark As Integer = 0 Dim SpanishMark As Integer = 0 Dim PercentageMark As Integer Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click EnterMarks() End Sub Private Sub EnterMarks() Try FrenchMark = InputBox("Please enter a whole number between 1 …

Member Avatar for Reverend Jim
0
689
Member Avatar for kimangel

Hi expert, Just want ot ask the correct code format for moving message to a new location. MsgBox "Do you want to save?", vbYesNo, 10, 10 Thanks

Member Avatar for J.C. SolvoTerra
0
268
Member Avatar for cool_intentions

Hello, I’m trying to bind Dictionary<string, object> parameters with my combo box, but I don’t know how to do that. This is my code: [CODE=C#] Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("option1",parameters); parameters.Add("option2", parameters); parameters.Add("Option3", parameters); [/CODE] I would like to get option1, option2 and option3 in combobox on …

Member Avatar for jeryymanly
0
2K
Member Avatar for koneill

All, I'm trying to obtain the values from an external JavaScript using PHP - In my index.php page I'm trying to obtain the value being passed in as such: `<input type="hidden" name="imgSrcOrig" id="imgSrcOrig" value="<?php echo $_REQUEST['remote_sill']; ?>"/>`` However - in the JavaScript I need to pass into the hidden field …

Member Avatar for koneill
0
408
Member Avatar for SQLpower

Hello, So I basically loaded to 2 keys and I want to verify them after I've signed something with one of them, but I a having difficulties. I am getting verified: false at the end without any error. Can someone please point out the flaw? package fliesigning; import static fliesigning.FlieSigning.verifySig; …

Member Avatar for SQLpower
0
288
Member Avatar for Jack_9

Hello. I'm a newby in web development and I wanted to know if you guys knew any good books our websites to go to to learn Jquery for my new website. I've only used some css and a little bit of javascript but I wanted something better. I don't think …

Member Avatar for JorgeM
0
89
Member Avatar for navjeet123

Sir I get the following problem in my code that is-- The method getPart(String) is undefined for the type HttpServletRequest my servlet code is: package Servlet; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.annotation.MultipartConfig; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; …

0
418
Member Avatar for Alexandra Nichole

Using an array write a program that asks for 10 numbers of type int stores it in an array and traversing each item counting the number of items that are greater than 5.

Member Avatar for Schol-R-LEA
0
94
Member Avatar for Miyuki

I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte at a time for comparing?

Member Avatar for Jack_9
0
532
Member Avatar for filipgothic

Greetings, I need help with basic cloak, which counts how many times will small and big pointer on the cloak cover each other, with first one starting at 12 cloak. I have idea of how to do it, but I can not realize it, so if you guys have some …

0
95
Member Avatar for devnar

I'm using the following swap function to swap two elements of an array. The element pointed to by 'x' and 'y' and the one right below it, to be particular (then i want x and y to point to the second of the swapped elements, hence i use auto increment). …

Member Avatar for anveshnaidu
0
162
Member Avatar for Xavier_1

Hi guys!, I have a code here having a problem about double and I'm kinda lost so I don't know what to do. btw thanks for reading my thread, I would greatly appreciate if you can help me fix this thing. #include <stdio.h> #include <conio.h> #include <string.h> #include <stdbool.h> #define …

Member Avatar for Moschops
0
198
Member Avatar for ernesto22

Hi guys.. I have a page where I can add values and upload file. Example. I can add name age and upload a pdf file with it. After addingi can view in a table as a row where I can delete or edit the record. The uploaded file gets saved …

Member Avatar for ernesto22
0
167
Member Avatar for Bharath_3

I redirected to download page (I used window.location() or window.location.href() or replace()), but after download happens it should again come back to same page. I tried using setTimeout, but in vain. Another thing I dont have a chance to write redirect in download.php. Is there any solution for this requirement. …

Member Avatar for pritaeas
0
600
Member Avatar for Diellza S.

/ I want to debug this code but I can't? How can I debug it in console application using System; using System.Collections.Generic; using System.Text; namespace BucketSort { class BucketSort { public static void Sort(int[] integers) { //Verify input if (integers == null || integers.Length <= 1) return; //Find the maximum …

Member Avatar for deceptikon
0
239
Member Avatar for muhamadtaufiq.zaki

<?php echo "<table border='1' style='border-collapse: collapse;border-color: silver;'>"; echo "<td width='100' align='center'>date in</td><td width='100' align='center'>date out</td> <td width='100' align='center'>model</td> "; echo "</tr>"; include("proses/dbcon.php"); $date_in = $_POST['date_in']; $date_out = $_POST['date_out']; if(isset($submit)) { $sql = "select * from inventory where createdate >= '$date_in' and createdate <= '$date_out' "; } $result= mysql_query($sql); while($row=mysql_fetch_array($result)) { …

Member Avatar for muhamadtaufiq.zaki
0
2K
Member Avatar for catastrophe2

hello I have an inquiry about reading from a file. so if i have a file and if it opens (meaning it is there) how do i check if there is data? ifstream file("example.txt"); if (file.good()) { //file.open("example.txt"); // is this necessary again???????? i read that the ".good" provide checking …

Member Avatar for catastrophe2
0
3K
Member Avatar for 21310051
Member Avatar for RonKevinT.Manuela

Can you test google analytics even when im just running the website Im doing in localhost? (Mysql)..if so, how should I do it or( give me the link to its tutorial)?

0
99
Member Avatar for PinoyDev

good day! I just want to ask if is it possible to have count on dinstint? I have a query below but it produces error in the expression. Im pulling data in MSAccess using ADODB. SQL = "SELECT" & _ " (SELECT COUNT(DISTINCT DateOInvoice) FROM InvoiceMain AS A WHERE (DateOInvoice>=DateValue('" …

Member Avatar for PinoyDev
0
285
Member Avatar for RonKevinT.Manuela

SO I found a javascript I want to use: <script type="text/javascript"> function FindNext () { var str = document.getElementById ("findInput").value; if (str == "") { alert ("Please enter some text to search!"); return; } if (window.find) { // Firefox, Google Chrome, Safari var found = window.find (str); if (!found) { …

0
121
Member Avatar for berserk

I have been working on this for some time now and i cant get it to work, idk if im missing something small which im sure is the case, but the strange part is it works on an older installation of apache, so maybe im using code thats no longer …

Member Avatar for berserk
0
318
Member Avatar for DS9596

I did some don't know how to read into the vector, need help on this assignment: Rich Software Inc. has hired you for an internship position to create new payroll software for their employees. Your goal is to create a program that reads the newdata.txt file with their salaries. After …

0
154
Member Avatar for Sarkurd

Hi I have tried to implement Linked-List data structure and i was folowing a guide but i have an `error` in line 12 in `contactlist.h` I have included `contact.h` properly but still not working :-/ contact.h #ifndef CONTACT_H #define CONTACT_H #include <iostream> #include <string> #include "contactlist.h" class Contact { private: …

0
102
Member Avatar for christ123

Hi there! I have a problem and i want you guys to help me. I have 1 table which has many fields. (mysql and im connected from microsoft visual studio..runs very well so there no problem with this). lets forget the fields that we dont want now.. i have 4 …

Member Avatar for christ123
0
226
Member Avatar for Sheilac

Hi all; I’m a newbie here and it looks as if I might be able to get a bit of advice on what I think should be a fairly simple project that would actually have some value in my real world if I managed to get it working. I have …

Member Avatar for Juan_8
0
442
Member Avatar for joshua_8

Hi how do I use jQuery to show a Jquery mutliselect based on a checkbox option, here is my codes //html <input type="checkbox" value= "checkbox1" name="checkbox1"> <select id="dropdown" name="dropdown" multiple="multiple"> <option id="item"></option> </select> //jQuery $("#checkbox").change(function(){ $('#dropdown').multipleSelect();

Member Avatar for mattster
0
234
Member Avatar for Priti_P

Why this question arised?? I have used jquery Tabs in my application. On controller I have opened First tab with employee's names. Clicking on employee name opens another tab by just "add" facility of `$j("#teamtab").tabs("add",<data like ID>)` on opening multiple tabs , if I reload the page then it closes …

Member Avatar for mattster
0
183
Member Avatar for Gnowk

Hiya guys i have an assignment based on authentication mechanisms as follows. Just want to be pointed in the right direction to get it started. Description: The purpose of this assignment is to exercise your skills in networking infrastructure, authentication mechanisms and the use of role management. Your task in …

Member Avatar for diafol
0
267
Member Avatar for Perry31

Hi, I'm facing some problem while returning string. I want to return final string value and print it. Below is the code that i tried, int main() { int Input = 0; //Tried using tmpstr also //char *tmpStr = NULL; scanf_s("%d", &Input); //Tried as below also but it was crashing …

Member Avatar for Perry31
0
191
Member Avatar for oanahmed

Hi! Few days ago, I had learned C language. It took me almost 8 to 10 months to learn the whole language. Now I wanna want to make real world applications using it. I'm an Ubuntu user or more generally a Linux user. The point to ponder is that I …

Member Avatar for DeanMSands3
0
3K
Member Avatar for Jake.20

Greetings Sirs. Can somebody help me with this problem i'm stuck here on this problem for about 4 days no. What i wanted to do is this.. Add a device named "Project C" And Add a Location "000-0001" Add another Location "Jake" First Input: Assign the device to Location "000-0001" …

Member Avatar for Jake.20
0
317
Member Avatar for sing1006

im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize …

0
170
Member Avatar for shahid_650

I have done almost complete html5,css3 and little bit javascript, jquery ,mysql, php...But problem is with me that i also learnt wordpress for making websites,,,,now i want to make a website for myself but can i make a website as i wanted by using wordpress because i know i can …

Member Avatar for oanahmed
0
193
Member Avatar for faroukmuhammad

I write this post to ask where I can make bulk purchase of computer science e-books (say, 1000 books on a CD).

Member Avatar for pi man
0
235
Member Avatar for grakovski

Hello, I got terrible need :) I have this: $profile_data = file_get_contents("http://tyxo.bg/d/148025/daily"); $sep1 = explode('<table id="general-table">', $profile_data); $set2 = explode("</table>", $sep1[1]); echo $set2[0]; which output this: http://i.imgur.com/2THUUve.png I need to export only this values without anything else: http://i.imgur.com/IQG708Q.png You can test by your self the code i give - he …

Member Avatar for diafol
0
5K
Member Avatar for RonKevinT.Manuela

Just a quick question. can you activate a browsers ctrl+F functionality using php?Like click the button and ctrl+f activates

Member Avatar for RonKevinT.Manuela
0
501
Member Avatar for cambalinho

i continue with problems for use a callback function in a class member :( class Timer { private: typedef std::function<void(void)> timerprocedure; timerprocedure tmrprocedure;//can't be static int MilliSecondsTimer; bool blnDestroyed; UINT TimerId; HANDLE Timer1; static void CALLBACK MyTimerProc( HWND hwnd, UINT message, UINT idTimer, DWORD dwTime) { tmrprocedure();//call the lambda timer …

Member Avatar for Banfa
0
498
Member Avatar for Joshua_9

how would i make a program that outputs this: amount of vairiables: 3 3123 1412 2412 mean: 1414 standard viariance: 4344

Member Avatar for David W
0
541

The End.