199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hwoarang69

hi i have a 3 part question. can any one explain how can i read from a file and store it in array.(have to use fread). the way i was thinking of doing this was. int ar[50]; int ar2[50]; //read 20 charater at a time while(fread(ar, 1, 20, file) != …

Member Avatar for Ancient Dragon
0
134
Member Avatar for fistfullofbeer

I am working on a personal project and am trying to figure out if Python 3 or PHP would work better. I prefer Python because I am trying to hone my skills at it and at the same time I really do like its syntax and ease to learn. I …

Member Avatar for TrustyTony
0
167
Member Avatar for rmbrown09

I will try and keep this quick and simple. I want to break a loop I have by entering 'q' or something to that effect. My loop has the user enter numbers until they enter "Q" in theory. I have tried converting int's to char's and then making the loop's …

Member Avatar for dysrhythmia
0
136
Member Avatar for rkayd

I am making a photo album. I have the basics set up without using any javascript but now I would like to be able to get the size of the browser window for at least two different instances. If I can get it for the thumbnail page I should be …

Member Avatar for almostbob
0
4K
Member Avatar for shanboy

I am newbie in sql server i'm using sql server 2005 and the northwind database i wanted to join order and order details tables and calculate the total purchase made by each customer by using group by clause. When i used select orders.orderid,orders.customerid,orders.orderdate,orders.shipcity,orders.shipcountry, orderdetails.unitprice,orderdetails.quantity,(orderdetails.unitprice*orderdetails.quantity )as total from orders inner join …

Member Avatar for shanboy
0
413
Member Avatar for ak47carbon

i want to refresh images on index.php while all images selecting from database kndly help me tell me whats the solution

Member Avatar for ak47carbon
0
119
Member Avatar for newbie1234

<table> <tr><td>Date</td><td>Job_id</td><td>Active</td>/tr> <?php while ($row = mysqli_fetch_assoc($rs_total)) { ?> <tr> <td><? echo $row["Date"]; ?></td> <td> <?php echo "<a href='work.php?ID=".$row['Job_id']."'>".$row['Job_id']."</a>"; ?></td> <td><? if($row["Active"]==0) echo "Active"; else if ($row["Active"]==2) echo "Completed"; else echo "Not active"; ?></td> </tr> <?php }; ?> </table> in this code i want to transfer the id on pop …

Member Avatar for newbie1234
0
388
Member Avatar for solahere

hello Folks, I would really appreciate if I could get some help on this. I have an Integer lets say number = 12345 I want to get a string out which is 12,345 so basically puts a commas after every three digits... the number of digits in the number can …

Member Avatar for micahli123
0
3K
Member Avatar for momonq1990

Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <script> function del(delUrl) { var r=confirm("Are you sure you want to delete?"); if (r==true) { alert("Deleted record!"); document.location = delUrl; } else { alert("Delete cancel!"); } } </script> <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' …

Member Avatar for veedeoo
0
338
Member Avatar for ak47carbon
Member Avatar for Avenirer
0
238
Member Avatar for andrecj

Hello Guys, I am looking for some help: I have a dynamic table that shows a checkbox, id, title,etc., and date of insertion of an article that I've added before. And then I have a button that I would like to control if the user have clicked the checkbox and …

Member Avatar for Avenirer
0
172
Member Avatar for RazorRamon

Ok i have this long bit of code that determines how long ago someone input a post or comment. The only bit of the code that is giving me problems is at the very beginning. When i place a fresh topic or comment it doesn't go into the " just …

Member Avatar for diafol
0
482
Member Avatar for artemisxx

I'm working on highlighting repeater row. And then when i click on another row, the previous row becomes unhighlighted. So it's working, but only for a split second. Once the modalpopup appears, the highlight is gone. By the way, i have a linkbutton in every row that makes the modalpopup …

0
147
Member Avatar for carinlynchin

here is my code that is giving me the error(just this section) InitializeComponent(); String sqlString = "SELECT firstName, lastName FROM ClubMembers"; //database connections and commands String stConn = App.getConnectionString(); DataTable data = App.getGenericData(sqlString); //get data and put into list box for(int i=0; i<data.Rows.Count; i++) { string d1 = data.Rows[i]["lastName"].ToString() + …

Member Avatar for Mitja Bonca
0
144
Member Avatar for huskarit
Member Avatar for laxmanpathare
0
1K
Member Avatar for cessna172

[code] NODE *head; public: void push(int value){ NODE *temp = (NODE*) new NODE; temp->value = value; temp->link = head; head = temp; }//end of push. void pop(int&value) { NODE *temp = head; value = head->value; head = head->link; delete temp; }//end of pop. int is_empty(void){ return head == NULL; }//end …

Member Avatar for mrnutty
0
2K
Member Avatar for priyanka85

public Card deal_one_card(List<Card> cards) { if (cards.Count() == 0) { return null; } return cards.RemoveAt(0); } I am getting an error when I run this function "Cannot implicitly convert type 'void' to 'Poker.Card' Can somebody help with me this? Thanks in advance.

Member Avatar for Dani
0
163
Member Avatar for amazing

To register for my program (the program to read and process data from excel file), I did the following: [CODE] //Register ContextMenu public static void RemoveContextMenuItem(string extension, string menuName) { RegistryKey registryKey = Registry.ClassesRoot.OpenSubKey(extension); if (registryKey != null) { string extstring = registryKey.GetValue("").ToString(); //root registryKey.Close(); if (!string.IsNullOrEmpty(extstring)) { registryKey = …

Member Avatar for amazing
0
311
Member Avatar for gopi17

Heyy, guys...i have developed a php/mysql program...now i would like to run it from a handheld...should convert or do anything...1st time doing this...thank u in advance

Member Avatar for gopi17
0
134
Member Avatar for nyfan68

I have a programming question that calls for me to write a program that concatenates the contents of several files into one file. For example, java CatFiles chapter1.txt chapter2.txt chapter3.txt book.txt makes a long file, book.txt, that contains the contents of the files chapter1.txt, chapter2.txt, and chapter3.txt. The output file …

Member Avatar for nyfan68
0
191
Member Avatar for nyfan68

I'm working on a program that calls for me to write a program that opens a binary file and prints all ASCII characters from that file, that is, all bytes with values between 32 and 126. Print a new line after every 64 characters. Here is a sample program run: …

Member Avatar for nyfan68
0
210
Member Avatar for hey.howdy

[CODE] // absolute.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int i=0, j=0,k=0,l=0; string yes1;bool outcome;int u=0,v=0,w=0; string arr[4 ][4]={{"Name","Plot #", "Cost", "Address"}, {"john", "1121", "Rs.1000", "62 johar TOWN LAHORE"}, {"jonty", "1123", "Rs.100000", "56 …

Member Avatar for thines01
0
320
Member Avatar for akaicewolf

So I need to write a chaining hash map. I found some examples on the internet and have a pretty clear idea on how to go about it. However the biggest problem I am having is understanding the different hash function. I have a large list of id and they …

Member Avatar for gusano79
0
183
Member Avatar for 4evrmrepylrning

Help needed please. Desperate. I have a 3.somethingGB file that contains records that looks like this: [ICODE]<tag> <number>1</number> <info>blah blah</info> <more>Lorem Ipsum</more> <anothertag>The quick brown fox...</anothertag> <id>32444</id> <yetmore>blah blah</yetmore> </tag> <tag> <number>2</number> <info>qwerty</info> <more>yada yada qwerty</more> <anothertag>yada yada qwerty</anothertag> <id>32344</id> <yetmore>yada yada qwerty</yetmore> </tag> <tag> <number>3</number> <info>yada yada qwerty</info> <more>yada …

Member Avatar for Gribouillis
0
277
Member Avatar for hey.howdy

// absolute.cpp : Defines the entry point for the console application. // [CODE] #include "stdafx.h" #include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int i=0, j=0,k=0,l=0; string yes1;bool outcome;int u=0,v=0,w=0; string arr[4 ][4]={{"Name","Plot #", "Cost", "Address"}, {"john", "1121", "Rs.1000", "62 johar TOWN LAHORE"}, {"jonty", "1123", "Rs.100000", "56 …

0
103
Member Avatar for priyadharsinism

Im doing a project based on students information. Im looking for the code to add the student details to alumini form when their period of course is completed(based on their date of completion). The below code is registeration of student information. [CODE]<?php $link = mysql_connect('localhost','root',''); if(!$link) { die('Failed to connect …

Member Avatar for priyadharsinism
0
183
Member Avatar for vishnukumar

Hi, I am vishnu kumar. I knew the basics of Java but this is the first time i am building a project based on java (Java Swing actually). This is my final semester project and for last two months, i am doing my project. I initially thought the database(along with …

Member Avatar for vishnukumar
0
728
Member Avatar for fpaquin

I am writing a site that sends the following: [url]https://accounts.google.com/ServiceLogin?service=cl&passive=1209600&continue=http://www.google.com/calendar/event?action%3DTEMPLATE%26text%3DEventTitle%26dates%3D20120107T152000Z/20120107T162000Z%26location%3D1%2BNicholas%2BStreet%26details%3Dhttp://dev.uocal.uottawa.ca/en/node/354&followup=http://www.google.com/calendar[/url] to Google to add to the Google calendar. How would I write the URL if I want to add a calendar event every Monday until a specific date to Google calendar. I looked in the Google API and I did …

Member Avatar for fpaquin
0
312
Member Avatar for saleem.mukhtiar

dear friends i want to filter data by date ... see the attach pictures, after using where clause i receicve 0 rows :(

Member Avatar for adam_k
0
98
Member Avatar for reds8

How to insert more than one rows of data to Access?? All my textboxes are created during runtime and I want to add the text in textboxes to database. some times i want 3 rows and some times maybe 10 rows This is the code to create textboxes. [CODE] For …

Member Avatar for adam_k
0
151
Member Avatar for spixy

this is a little bit confusing, but can I know what does each part of this codes means.. especially those ptr, something. i understand those mov.. but the others aren't. i have googled a lot, but still can't understand.. what i know: the basic structure of tasm(.stack, .data, .code, and …

Member Avatar for spixy
0
938
Member Avatar for mc3330418

I have to take this program and make a header file, and implementation file, and a driver file. I wrote the original code and with all of the couts int the functions I can only put one function into an implementation file. [CODE] #include <iostream> #include <iomanip> using namespace std; …

Member Avatar for Ancient Dragon
0
208
Member Avatar for johans22

//use nib in Nibbler to set nib1, nib2, nib3. How the Nibbler and ABC get more efficient to send the Nbytes in ABC?. [CODE]union ABC { unsigned char Nbytes[4]; struct { unsigned short nib1 : 4; unsigned char NA1 : 2; unsigned short nib2 : 4; unsigned short nib3 : …

Member Avatar for L7Sqr
0
78
Member Avatar for whojstall11

Im trying to write an else statement in php where: if keyword is equal to letter or word it will give me an error message. right now my statement looks like this. [code] mysqli_stmt_close ($query); } else //problem with a query echo "Error: " . mysqli_error($conn); } else { //no …

Member Avatar for whojstall11
0
128
Member Avatar for paintballer1518

Currently having trouble completing my code homework for my class. Help would be greatly appreciated. Write a menu-driven C++ program to manage employee data. Your program should begin by reading in a file of employee information (filename employdata.txt). Each data line contains the following information: {hire date} {employee ID} {salary} …

Member Avatar for paintballer1518
0
2K
Member Avatar for ilovephil
Member Avatar for New-Reign

[CODE]<html> <head> <script> "use strict"; function hexidecimal() { var num = document.getElementsByName('number')[0].value; var hex = num.toString(16); alert(hex); alert(num.toString(2)); } </script> </head> <body> <form id="form"> <input type="text" name="number" /> <input type="button" value="Hex" onClick="hexidecimal();" /> </form> </body> </html>[/CODE] Above is the current code I have, I expect it to output the contents …

Member Avatar for New-Reign
0
89
Member Avatar for FaisalSarfraz

Hi every one I am trying to upload a file on server but it is not uploading and always giving an error HEre is code. Please help. Its urgent [CODE] <?php session_start(); if(!session_is_registered(username)){ header("location:login.php"); } if($_REQUEST['title'] != '' && $_REQUEST['type']!='' && $_REQUEST['category'] != '' && $_REQUEST['sub']!=''&&$_REQUEST['elm3'] != '') { require("db.php"); …

Member Avatar for veedeoo
0
340
Member Avatar for maxwellp

I have written the following code to return True if the list has any repeating elements and False ow [CODE]def has_repeats(L,newlist = None): if newlist == None: newlist = [] if len(L) == 0: return False if L[0] in newlist: return True else: newlist.append(L[0]) has_repeats(L[1:],newlist)[/CODE] It is not returning True …

Member Avatar for TrustyTony
0
165
Member Avatar for naieev

Hi, I have a similar requirement. We have a huge csv file (2GB odd) that has to be loaded into our database. We're concerned with only two fields here say col1 and col2 (of the 32 fields) before loading into the database we need to check if there is a …

Member Avatar for d5e5
0
135
Member Avatar for toomutch

Hi All, I need to show a map, plotting addresses that are held on a sql database. Has any one come across any software suitable for this task (i.e. can be built into vb.net). I have tried using MS MapPoint, which according to the write up says it will do …

Member Avatar for toomutch
0
192
Member Avatar for ThomsonGB

Without the complete context to summarize: [CODE] #include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <objbase.h> using namespace std; BYTE* StringToGUID(LPOLESTR szBuf) { GUID *g = (GUID *) malloc( sizeof(GUID)); HRESULT h2 = CLSIDFromString(szBuf, g); return (BYTE*) g; } [/CODE] I Get: 1>Linking... …

Member Avatar for ThomsonGB
0
2K
Member Avatar for slman

Write a program that rolls a dice (but hide the number from player) and then ask user enter a number in range of 1 - 6. If player enters same number of computer rolled, then the player earns $10. If player enters a number that is smaller or larger by …

Member Avatar for stultuske
0
102
Member Avatar for nyfan68

I have an assignment that calls for me to Write a program Find that searches all files specified on the command line and prints out all lines containing a keyword. For example, if you call java Find ring report.txt address.txt Homework.java then the program might print report.txt: has broken up …

Member Avatar for stultuske
0
393
Member Avatar for gilgil2

Hi, I am having some trouble echoing into a drop down menu. Instead of the bandnames that I would like to appear, $band is appearing. Here is my code: [CODE] <form action="insert.php" method="post"> Band Name <select name="band"> <? $link = mysql_connect(); if (!$link) { die('Could not connect: ' . mysql_error()); …

Member Avatar for gilgil2
0
132
Member Avatar for sIpIt_nya

I have a proble in getting parent url address in iframe from my project. so, i have let's say ads.php located in [url]www.domain1.com/ads.php[/url] it's look like this [CODE] <?php //iklan.php if($_GET['klik'] == 'yes') { //klik process exit; } $some_content = ' document.write('<iframe src="www.domain1.com/ads.php"> <a href="www.domain1.com/ads.php&klik=yes">klik_link</a> </iframe>'); '; echo $some_content; ?> …

Member Avatar for 123.sarang
0
3K
Member Avatar for mangel.murti

hi , i have two table i want result in tree view.how to do it. if i have n level question and answer then what is db design for it thnx for any help

Member Avatar for pritaeas
0
151
Member Avatar for mehnihma

I need to find a word in JTextArea and highlight it, can you help me with this code? [CODE]class managerClass implements ActionListener { @Override public void actionPerformed(ActionEvent e) { String myWord = txt.getText(); Highlighter h = textArea.getHighlighter(); if (e.getSource() == bFind) { pattern = Pattern.compile("\\b"+myWord+"\\b"); Matcher matcher = pattern.matcher(myWord); while( …

Member Avatar for peter_budo
0
5K
Member Avatar for infogirl

I have written the program which fills an array of structures and then writes that array to txt file. The problem is that my program terminates in unusual way on windows vista command prompt line but dev-C++ shows no errors when compiles. I think that is related with the number …

Member Avatar for triumphost
0
233
Member Avatar for marifard

I have four database tables locality table: localityid, locality. jobtype table: typeid, type. applywork table: id, userid, applyfor applicationsent, jobtypeid, vacancyseenon companyname, doorno buildingname, street, localityid, postcode, telephone, website, email, notes users: id, role, name, surname, gender, username, password. I have a page to edit selected field from applywork. I …

Member Avatar for marifard
0
2K

The End.