199,113 Archived Topics
Remove Filter ![]() | |
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! | |
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 … | |
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' … | |
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.. | |
[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 … | |
[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[] … | |
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 = … | |
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 … | |
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 … | |
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; … | |
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, … | |
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 … | |
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() … | |
[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; … | |
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, | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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" … | |
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) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
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 … | |
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 … | |
How would I write a recursive function to scan the Temp Files on a computer and list all the files & folders to a ListView? ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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! |
The End.