199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lochnessmonster

whenever u create a string like this... std::string name = "HELLO THUR"; what size buffer does the constructor store the string in when instantiating this string object? im curious thx!

Member Avatar for WaltP
0
168
Member Avatar for McLaren

Hi, I have one simple problem. PHP (CodeIgniter) code: [CODE=php] $query = $this->db->where('filename',$filename)->select('valid_until')->get('jos_reklama_banners'); $row = $query->row(); $valid_until = $row->valid_until; if($valid_until > time()) { $sql = "UPDATE `jos_reklama_banners` SET valid_until = valid_until + ? WHERE `id` = ?"; $query = $this->db->query($sql, array($days*86400 ,$filename)); //viena diena 86400 sekundziu //echo 'daugiau'; } else …

Member Avatar for McLaren
0
159
Member Avatar for umesh daiya

hi i have a code like this: <form action="11.php" method="post"> <table border="1"> <tr> <th bgcolor="#666600">Action</th> <th bgcolor="#666600">Name</th> <th bgcolor="#666600">Key Skills</th> <th bgcolor="#666600">Qualification</th> <th bgcolor="#666600">email</th> </tr> <?php include("connection.php"); $q="select * from tbl_faculty"; $result=mysql_query("select * from tbl_faculty"); while($row=mysql_fetch_array($result)) { echo "<tr><td><input type='submit' id='$row[faculty_id]' name='info' value='Info'><input type='submit' id='$row[faculty_id]' name='edit' value='Edit'><input type='submit' id='$row[faculty_id]' name='Delete' …

Member Avatar for MagicMedia
0
3K
Member Avatar for amie900218

Hello, i have create a form for uploading file and it's works, but i dunno how to make people can download it.i hope someone can helps me..

Member Avatar for amie900218
0
119
Member Avatar for borntowin_786

[CODE] $date = mktime(1, 1, 1, $month, date("d"), $year); $first_day_of_month = strtotime("-" . (date("d", $date)-1) . " days", $date); $last_day_of_month = strtotime("+" . (date("t", $first_day_of_month)-1) . " days", $first_day_of_month); $first_week_no = date("W", $first_day_of_month); $last_week_no = date("W", $last_day_of_month); if($last_week_no < $first_week_no) $last_week_no=date("W", strtotime("-1 week",$last_week_no)) + 1; $weeks_of_month = $last_week_no - $first_week_no …

Member Avatar for emixfr
0
128
Member Avatar for shylesh_kerala

[CODE]#include<stdio.h> #include<iostream.h> #include<conio.h> void main() { int size=5,i,j; clrscr(); //cout<<"Enter the length of array : "; // cin>>size; int *array = new int[size]; cout<<"Enter elements "<<endl; for(i=0;i<size;i++) cin>>array[i]; for(i=0;i<size-1;i++) { for(j=i+1;j<size;j++) { if(array[i]>array[j]) { int temp; temp=array[i]; array[i]=array[j]; array[j]=temp; } } } cout<<"Sorted array"<<"\n"; for(i=0;i<size;i++) cout<<array[i]<<' '; for(i=array[i];i>0;i--) { delete[] …

Member Avatar for Moschops
0
171
Member Avatar for jfountai

Hi all. Learning Java - sorry for my stupidity if you see any. Here is the code: [CODE] private static void readFile() throws Exception { Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, DAYS); String fOther = "filename.csv"; String fOtherImp = "filename_imp.csv"; LineNumberReader lineCounter = new LineNumberReader( new InputStreamReader(new FileInputStream(fOther))); String nextLine = …

Member Avatar for jon.kiparsky
0
647
Member Avatar for kristo5747

Greetings. I am using SED to cleanup files that are laid out like so: [icode] ReceiverID=028936004663 SerialNumber=WD-WCAV95708405 Currenttemp=44C PowerOnHours=3663h ReceiverID=028923894902 SerialNumber=WD-WCAV9A766701 Currenttemp=49C PowerOnHours=2215h [/icode] My boss wants files like this one to be tab ("\t") delimited like so [icode] ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline) ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline)... [/icode] 1) first, I added a newline to mark …

Member Avatar for kristo5747
0
162
Member Avatar for Archenemie

I've just bought a reasonably capable quad core desktop and I want to start utilizing some of the advantages that multi core processing can offer. I have two simple counting functions, and I would like them to execute simultaneously. Does anyone know where I can start my research into the …

Member Avatar for richieking
0
133
Member Avatar for margeaux54

array1 and array2 is my ascended ordered arrays ı want to put this arrays into the array3 and then ı want to write ouput.txt you can understand better my codes. [CODE] for( int i=0; i<21 ;++i) { if (array1[d].ave> array2[e].ave) array3[i].ave=array2[e].ave; e = e+1; if(array2[e].ave>array1[1].ave) { array3[i].ave = array1[d].ave; d=d+1; …

Member Avatar for Ancient Dragon
0
220
Member Avatar for omidagha

Create a class DoubleSubscriptedArray, the class should be able to create an array of any number of rows and any number of columns with dynamic memory allocation. The class should supply operator() to perform double-subscripting operations. For example, in a 3-by-5 DoubleSubscriptedArray called a, the user could write a( 1, …

Member Avatar for arkoenig
0
117
Member Avatar for Kath_Fish

hi...now i am doing sorted list. My problem is like this: I got a store many groups of number in text files eg: 112 133 121 122 133 144 155 133 122 111 111 112 124 234 122 333 221 223 345 * one line mean one transaction I did …

Member Avatar for Momerath
0
182
Member Avatar for dizzyboy

Im a beginner in C,Can anyone help me? :?: I have problems when I encounter double or multiple spaces between words. [CODE] #include <stdio.h> FILE *fpr; int main(int argc,char *argv[]) { if ((fpr = fopen(argv[1],"r")) == 0) { printf ("\nFile %s Don't Exist!\n", argv[1]); } fprintf (fpr,"%d",count()); return(0); } count() …

Member Avatar for dizzyboy
0
212
Member Avatar for fab2

[ICODE] Hi, I am having problem in getting a menu' on the screen by using a function. At the compiling time I do not get any error but at the running one it doesn't produce any result. Here the code:[/ICODE] [CODE] #include<stdio.h> void day_menu(); int main() { day_menu; return 0; …

Member Avatar for fab2
0
110
Member Avatar for sarifah n

hi, i want to ask about the check/uncheck the checkbox in a column in datagrid. if all row in the checkbox column is not selected, what is the code is.... because i want the msgbox appear if the user not check any row. tq,

Member Avatar for sarifah n
0
3K
Member Avatar for UtaChan

Well I got a class assignment requiring the use of int 21h,0xa(string input). [B]Offtopic:[/B] The problem is the teacher is old, and doesn;t care about how right the things he teaches are and apparenlty he taught us things wrongly again -.- then it;s -15 points in the exam... He taught …

Member Avatar for UtaChan
0
241
Member Avatar for cayman

Hi there folks I have done quite a bit of C programming for embedded environments and PC console programs but never for windows applications and only once before with the PC COM port. When I did program for the COM port before it was on older machine, and used conio.h …

Member Avatar for Ancient Dragon
0
698
Member Avatar for salmap

Hi, I have two textboxes(which are diplay only;their values come from database).I need read the data from these textboxes,multiply them and display in the third text box. Can someone send me the code. For example consider textboxes names as txtprice,txtquantity,txtamount; txtprice,txtquantity values come from tables in database.The price comes from …

Member Avatar for salmap
0
141
Member Avatar for shinsengumi

Can anyone help me learn how to create a directory in C? Right now I have a program that writes to a file, and now I need to create a directory to store the file. My operating system is Windows XP. Sample programs, commands, links to tutorials will be greatly …

Member Avatar for Ancient Dragon
0
214
Member Avatar for showman13

Good Morning All... I am really baffled with what I am getting from a form input using an image... Here is the form... Basically it is a single form with 4 separate input images, each reloading the same page, but changing the value of the variable 'name'. [CODE] <form name="display" …

Member Avatar for showman13
0
272
Member Avatar for crankyslap

Hey guys, I'm seriously breaking my head over this one. This project should have been finished 10 hours ago but I've been stuck on this for ages. First I set the DataSources / Dataviews of all the things I need; [CODE] Dim dsPubs As New DataSet() dsPubs.ReadXml(pathdone) DataGridView2.DataSource = dsPubs.Tables(0) …

0
109
Member Avatar for Cool_Tori

HI! I recently joined this forum as I am about to start a degree in Computer Science and although I have an A level in Mathematics and an interest for computers, I have not studied computer science and wish to read up about it before my course begins. I'm hoping …

Member Avatar for jon.kiparsky
0
137
Member Avatar for Afi83

Hi there, I have wrote a program that do a bit of calculations that takes about 10 min to complete, therefore I need to show a progress to user. I used a percentage in status bar to show the current status of program. The problem is for updating the number …

Member Avatar for Afi83
0
103
Member Avatar for umesh daiya

hi i have a form where we can see all values from database and in this all row having three submit button named edit,del,info and i given id of the row is primary key of database table. when i press info i want that in next page i can get …

Member Avatar for asimshahiddIT
0
149
Member Avatar for vinayak.v

Error 2 'System.Web.HttpApplicationState' does not contain a definition for 'startuppath' and no extension method 'startuppath' accepting a first argument of type 'System.Web.HttpApplicationState' could be found (are you missing a using directive or an assembly reference?) E:\Report1\global\Default.aspx.cs 77 36 E:\Report1\global\ please help me.. i want to override the connection string of …

Member Avatar for Vigneshjvm
0
313
Member Avatar for Jennifer84

The below code do connects to the server successfully. It is a working code. Now for example is not the server avaliable. So I receive this error even that I have put this in a try{}catch{} The error is below, and I wonder how I can [B]shut this error off …

Member Avatar for Jennifer84
0
385
Member Avatar for otomatis

Hi all, I am trying to manipulate an Excel spreadsheet. I want to search the A column for a string from a text box of vb6 then display it. I can't get it to work in my VB6 app. What am I doing wrong ? Dim mailmwo As Excel.Application Dim …

Member Avatar for monarchmk
0
2K
Member Avatar for mayankdvd1

My HTML Code is following. <asp:GridView ID="grdOrderDetail" runat="server" AutoGenerateColumns="false" PageSize="50" Width="755px" OnRowDataBound="FormatGrid" ShowHeader="true" AllowSorting="false" CellPadding="0"> <Columns> <asp:BoundField HeaderText="Order ID" DataField="OrderID"> <HeaderStyle BackColor="Silver" Width="20%" BorderStyle="Solid" HorizontalAlign="Left" /> <ItemStyle Width="20%" /> </asp:BoundField> <asp:BoundField HeaderText="Product ID" DataField="ProductID"> <HeaderStyle BackColor="Silver" Width="20%" BorderStyle="Solid" HorizontalAlign="Left" /> <ItemStyle Width="20%" /> </asp:BoundField> <asp:BoundField HeaderText="Unit Price" DataField="UnitPrice"> <HeaderStyle BackColor="Silver" …

Member Avatar for Momerath
0
789
Member Avatar for rjbrjb777

helo friends. i need to deal with more than 10 excel sheets.. so i want to make an desktop application in Visual Studio(c#), which performs as followings..: 1) first user can choose on which file he wants to work on. 2) then retrieving column wise data, and performing many mathematical …

Member Avatar for rjbrjb777
0
194
Member Avatar for axman1000

I have a list of values extracted from a datareader in a list. Is it possible for me to run a query to extract another set of values using a datareader and then use the individual values in the list and the values in the datareader to perform some calculation, …

0
96
Member Avatar for RaptorMarketing

Hello I am looking to dump data from a MySQL database to an excel spreadsheet. I know I can dump it to a CSV file and import that way, no problem. But I want to dump the data to a specific spreadsheet in an excel and specific cells. I have …

Member Avatar for RaptorMarketing
0
155
Member Avatar for iamcreasy

[CODE]#include<iostream> using namespace std; class Node { public: int data; Node *preNode; Node *postNode; //Node(){} }; int main() { Node testNode; Node testNodeB = testNode; return 0; } [/CODE] When I run the code, there occurs an runtime error, The variable "testNode" being used without being initiated. But when write …

Member Avatar for iamcreasy
0
162
Member Avatar for Ryujin

This page is very heavy. I see that the jQuery library accounts 164K which is almost 40% of the page weight. As can be seen in the source, /jquery.js loads twice, as do several other scripts! But if i remove /jquery.js library from either line, the page breaks (tabbed box …

Member Avatar for tinymark
0
194
Member Avatar for robertmacedonia

Hello, I would like to ask a plain and simple question about the Model-View-Controller architecture, in particular its implementation in ASP.NET - should the UML Class diagram for my application include all the controllers and views and their relationships, or should I just include my model classes, i.e. the entities …

Member Avatar for robertmacedonia
0
851
Member Avatar for lukemaister

I was wondering about the technology used by Facebook and Twitter (those are the obvious and most popular ones). I have realised that when adding a status or a comment or subscribing to a conversation, the page does not actually post to server to modify the database. Actually, on click …

Member Avatar for tinymark
0
116
Member Avatar for sivakumarl

Hi Friends, I need to select browser option dynamically using javascript for handling cookies , i.e., in need select "override automatic cookie handling" checkbox dynamically. Kindly help me friends how to select this check. Tools - -> Internet Options --> Privacy (Tab) --> Advance (Button) --> Override automatic cookie handling …

Member Avatar for tinymark
0
248
Member Avatar for gnzxzx

Below is an xpath that works. It returns all the values of the [U][B]value[/B][/U] attribute of the OutputField tag: [CODE] //Satellite/multidataset/file[contains(@name, '311multi')]/Data/DriftAnalysis[contains(@name, '311')]/Metric[@name='Detail' and @type='Overlap']/Element[@metrictype='Overlap']/OutputField[@name='Cleared']/@value [/CODE] But when I try to sum the returned values of the [U][B]value[/B][/U] attribute like the example below I get the error "Expression must evaluate …

Member Avatar for mrame
0
856
Member Avatar for Excizted

Hello Daniweb, I want to make a custom visitor tracking tool and like Google Analytics it must be able to track how long time visitors spend on each page. How do you recommend doing this? I thought of using the Javascript onload event to start counting time serverside and then …

Member Avatar for tinymark
0
115
Member Avatar for dreamer14

Any one got hints how to do this? I got 3 drop down list initally all 3 contains 4 option A,B,C,D. After selecting A from 1stdrop down list,the 2nd and 3rd drop down list are left with B,C,D. After selecting C form 2nd drop down list,the 3rd drop down list …

Member Avatar for javaAddict
0
232
Member Avatar for tcollins412

this will not work on change. also the innerhtml wont display. please help. here is the js: [CODE]function checkemail(){ if (document.suform.email.value && document.suform.emailcheck.value) { if (document.suform.email.value == document.suform.emailcheck.value) { document.suform.emailcheck.style.backgroundColor='#FFFFFF'; document.getElementById('wm').innerHTML=='Emails Match!'; }else{ document.suform.emailcheck.style.backgroundColor='#F75B53'; document.getElementById('wm').innerHTML=='Emails Dont Match!'; } } }[/CODE] and here is the html: [ICODE] Re-type Email: <input type='text' …

Member Avatar for sivakumarl
0
135
Member Avatar for Jaseem Ahmed

i have connected combo box with data base... i have called a field in combo box... but i dont know how to made selection.. means when i click on items that are in combo box from database, the text box should change value according to the selection of combobox. [CODE]Option …

Member Avatar for AndreRet
0
4K
Member Avatar for anirban1087

Hi, I am working on a PHP form with a set of input fields, and 3 buttons. 1. The [B]ADD[/B] button will take the input and add it to a table displayed on the same page just bellow the input fields. 2. The [B]SUBMIT[/B] button will deposit the entire table …

Member Avatar for michelle2003
0
74
Member Avatar for imso

How should i come about accessing eclipse file folder on another computer using the elicpse software too?? I mean accessing the entire file as a whole with a working solution and not accessing .xml or .java individually. Or is it impossible to access the file as a whole but i …

Member Avatar for imso
0
142
Member Avatar for MaddTechwf

How would I write a recursive function to scan the Temp Files on a computer and list all the files & folders to a ListView?

Member Avatar for Unhnd_Exception
0
368
Member Avatar for vizz

I want to create one menu with anchor tag for e.g=> <a href="http://www.example.com/example.php" rel="facebox">Example</a> I want to write javascript function for that like $menu = array(); $menu['page name without extension'] = 'Page Title To be showed on page'; function MenuGen() { } In addition I want to add FACEBOX from …

Member Avatar for vizz
0
160
Member Avatar for arctushar

Hello Say I have a document which is written in phonetic. Now I want to make this indic. How can I do that Say A will be আ B will be ব AA will be আ Ba will be বা T will be ট t will be ত etc...... Please …

Member Avatar for metalix
0
88
Member Avatar for cjay175

Hi all, I am trying to select multiple rows from the database and then separate the rows into array values so I can use them throughout my code. This is what I have right now... [CODE] $result = mysql_query("SELECT url, image, placement FROM advert WHERE user='1'") or die(mysql_error()); //This grabs …

Member Avatar for metalix
0
5K
Member Avatar for umamahesh2020

Please give me reply as early as possible!!! [CODE]In this at the code "Set rs = db.OpenRecordset(SQL)" here the loop auto matically terimates[/CODE] [CODE]Private Sub cmd_Copy_Policy_Click() On Error GoTo Err_Click Dim db As Database Dim SQL As String Dim rs As Recordset Dim PolicyYear As Integer Dim NewYear As Integer …

Member Avatar for AndreRet
0
172
Member Avatar for novice20

using pysnmp I am querying a variable which gives the IP address. I want to check that address. I do the following [CODE] ........... ............ ............. errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().getCmd( cmdgen.CommunityData('xxx', 'yyy', 1), cmdgen.UdpTransportTarget((addr,161)), ((1,3,6,1,4,1,18489,1,2,2,2,9,30,0))) print"Error on GET for ccmSDIDULinkUtilEastRemoteIP -%s,%s%(errorIndication,errorStatus) print varBinds print varBinds[0][1] [/CODE] i get …

Member Avatar for novice20
0
199
Member Avatar for alexdinca

Hi, I want to make an object move from A to B in a fluid animation. I know how to make it's position change, but after that, i'm lost. I know I have to use a timer, but don't know exactly how. Can anyone help me ? Thank you!

Member Avatar for abelLazm
0
126

The End.