199,114 Archived Topics
Remove Filter ![]() | |
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) != … | |
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 … | |
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 … | |
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 … | |
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 … | |
i want to refresh images on index.php while all images selecting from database kndly help me tell me whats the solution | |
<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 … | |
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 … | |
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' … | |
Hey Frndz , i want to block website for internet Explorer 6 plz send me php coding ![]() | |
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 … ![]() | |
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 … ![]() | |
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 … | |
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() + … | |
I don't now how to validate date time picker controls....someone know? | |
[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 … | |
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. | |
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 = … | |
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 | |
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 … | |
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: … | |
[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 … | |
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 … | |
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 … | |
// 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 … | |
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 … | |
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 … | |
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 … | |
dear friends i want to filter data by date ... see the attach pictures, after using where clause i receicve 0 rows :( | |
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 … | |
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 … | |
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; … | |
//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 : … | |
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 … | |
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} … | |
| |
[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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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... … | |
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 … | |
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 … | |
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()); … | |
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; ?> … | |
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 | |
![]() | 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( … |
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 … | |
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 … |
The End.