199,114 Archived Topics
Remove Filter ![]() | |
hi friends how to send post value in url code is: header('Location:edit_products.php?catid=$_POST[catidHd]&catname=$_POST[catnameHd]'); the $_POST[catidHd] value coudnt taken how to give this $_POST[catidHd] in url tnx | |
i am fixing something and i have that fuction in it [CODE]bool DeckOfCards::checkFlush(const Card checkCards) { counter=0; cardCheck=" "; for(int x=1;x<5;x++) { cardCheck=checkCards.suits[x]; for(int y=0;y<5;y++) { found=hand[y].find(cardCheck); if(found!=string::npos) { counter++; } } if(counter==5) { return true; } counter=0; } }[/CODE] it goes here: [CODE]bool result=false; if((result=checkFlush(checkCards))==true) { return winner=5; }[/CODE] … | |
Hello. I would like to ask some suggestions to the community. In Arrays, we can implement a 2D array like: [CODE]String[][] testString = new String[][] { {"1", "2", "6"}, {"4", "5", "3"} };[/CODE] How can I implement this in Vector? Or is that even possible? I was doing it in … | |
This question is in regards to the little dynamic image that you can link to in your Daniweb profile (see profile page, bottom right). I was curious how Daniweb is set up to dynamically create these images. I would like to do something similar on my site. Could Dani share … | |
Hello I'm looking for a javascript I can use to rotate my 10 images on 10 seconds interval. | |
Hi, Reverentjim kindly gave me this code the other day that worked well. There are two more things i am trying to do but cant get my head around it. 1) I want to be able to extract the text after the second \ and before the period e.g. profile … | |
Hello Everyone Currently, I am using system("dir") method to call system calls. I want to know any other method for system calls in VC++ 2008. How can I call system call in VC++2008 without using system(" ") method? Any help would be appreciated Thanks | |
Hello. I have a file merg.txt: [COLOR="Red"]1 3 11 14 1 5 8 13 1 1 9 10 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 1 12 13 3 3 3 3 3 3 3 3 3 3[/COLOR] | |
So I have this assignment where I am acting as a set. A set that holds numbers. In other words an array I am guessing. So he gave us a generic interface. Then we have to use another class and finish those methods. I'm having trouble because I've never used … | |
Well, my friend is opening a internet cafe soon . But i need to know how it works to save database, customer's time left and accounts. Im sure they never used MYSQL as database support as it sucks alot. It gets 'too many connections' very often . So how it … | |
i have a problem in VB6. i have a frmMain, DataEnvironment and Datareport. My form have thirty (30) textboxes to fill-in. at first it all works fine since i filled in only few txtboxes, but when i filled-in all textboxes with many data i could not save the data anymore... … | |
Hi, I have this PHP code to send mail with attachment... when I send mail without attachment I am getting the message but when I attach something I am getting the attachment but the message body is blank... please help!! Below is the PHP code : [CODE] <?php // Your … | |
hi guys anyone here willing to educate me about stored procedures, populating the datagridview, and using some bindingsource with 4 butttons, <<,<,>,>> i'm a newbie vb.net programmer willing to learn the use of stored procedures.. tnx GOD bless u guys! | |
hi frns how to remove & and space from a string.i just gn in url. wn i get this name using request only the door comes rest will be cut.how to remove & and space prod.php?name=Door%20&%20Window%20Hardware tnx ![]() | |
i want to listview editable it's possible?? please help | |
Alright I'm currently in a C++ class and we just got to switch statements, and I can't get them to work for the life of me. I've googled my issue and my code seems to be exactly right, but no matter what my code doesn't work correctly, so I guess … | |
can I ask a question? how can I accept inputs in PHP...... here is the code..... [CODE]<html> <body> <h4>Grade Form</h4> <form action="testingform.php" method="post"/> Grade: <input name="Grade" type="text" /> </form> <?php if ($grade>="75") { echo "PASSED"; } else($grade<="75") { echo " FAILED"; } ?> </body> </html> [/CODE] [B]the condition is if … | |
Alright, here's the deal.There's a folder with Jpg images and I want to open each JPG image in that folder, rotate it clockwise once and save it with the same name in the same folder. How do I do that with batch programming? We Can't use "Windows Picture and Fax … | |
when i use border layout and centre alignment, my label content is appearing on left side but i need it on right side, suggest any change here is my code [CODE]import java.awt.*; import javax.swing.*; import java.awt.BorderLayout; class Welcum extends JFrame { Container c; JButton bFd,bAcct; JLabel lWelcome; public Welcome() { … | |
i have website and the XML from another site gives booking info within the CDATA and i want to extract the content of this CDATA using PHP and also create a button so when this is clicked this CDAT content is retrieved. Please help | |
Hi, I have a MySQL database and an array with ID's. For example: $q = array(4,7,9,34,12,3,...etc); The ID count in array can be over 100. What's the best way to select only those rows matching those ID's in array? The usual SELECT * FROM table WHERE ID = '$q[0]' OR … | |
When I run the following code: [CODE] <?php $firstname = "First Name"; $middlename = "Middle Name"; $lastname = "Last Name"; $name = $firstname .“ “. $middlename .” “. $lastname echo $name ?> [/CODE] This errors appears: A sharing violation occured while accessing C:\xampp\htdocs\php_exercise\exercise1.php why is it? | |
Hello, it's possible to move listview1 subitem(1) to another listview2 subitem(5) please help | |
Hi expert, When i try this script i got 2 esn number with different shipdate and supplierid. were us it should be the latest shipdate should be obtain. Any Idea guys. thanks. [CODE] TABLE1 ESN 123 TABLE2 ESN--SupplierID--Shipdate 123--40----------2011-04-27 123--14----------2011-07-02 Select vp.esn, us.supplierid, us.shipdate --(Select Max(shipdate) from TABLE2 where vp.esn … | |
I'm a c++ server side developer, and someone has asked me to write a system for their small business, and I know nothing about the tools available. In fact, Im so out of date in this area, that my first thought was to use Ashton Tate dBase 4! anyone remember … | |
Hey, I've had this question for a while now and forgot to post a thread asking it. I'm really interested in databases and i've been wanting to create a program that recalls information from a database. I've done one that reads a text file but that just seemed...boring to me. … | |
Hi, I am trying to generate javadoc from the file "C:\Program Files\Java\jdk1.6.0_26\src.zip" by using the command "javadoc". But I am not able to do it. How to use that command? | |
hi all, I am having 1 combo box and 3 text boxes in my jsp page. combo box is empid and and the other are name,desig and dept. when i select the empid, need to come all other values into text box fields from database. any ideas please share with … | |
How to change the color of selected row of an HTML table without using CSS or Javascript? | |
Ok... I know that this is probably a stupid question.. but does VS2010 have a built in C# dev enviroment... I looked and looked, then googled and googled and I can't find if it does or not.... btw I'm using the free profesion student edition from [url]https://www.dreamspark.com/[/url] if that's any … | |
Hello! I write a simple java program. The user will give a URL adres which have some flags. I will parse the URL by this flags. For example the user will give [url]www.exampledomain.com/abc/[/url][[FLAG1]]/abc_[[FLAG2]]gfc I need to parse load to string parsing the URL: String[1]=www.exampledomain.com/abc/ String[2]=/abc_ String[3]=gfc I need to ask … | |
Hi, My application is in VS2008 coded in Vb.net I have a datagridView on one of my form.This is filled from the database at the load event of the form.The datagridView also has a column of type DatagridViewComboboxcolumn. This DatagridViewComboboxcolumn already has 4 values added to it in its collection … | |
If have a java program with 4 JTextField. In my JButton add, the event code goes like this: [CODE]add.addActionListener( new ActionListener() { //Handle JButton event if it is clicked public void actionPerformed(ActionEvent event) { try { String add = "insert into person (firstName,middleName,familyName,age) values ('"+inputs[0].getText()+"','"+inputs[1].getText()+"','"+inputs[2].getText()+"',"+inputs[3].getText()+")"; st.execute(add); //Execute the add sql … | |
Hi I have a file with format like [code] 8520,9.19E+02 8521,9.15E+02 [/code] where 9.19E+02 is equal to 918 and 9.15E+02 is equal to 915 I need import this file into another program.But it doesn't this "E" format that is generally..can anyone suggest a way to convert this entire file to … | |
I have a textbox for searching in my access database. For example, my database is dbEmpLis; my table name is tblEmployee; columns in my tblEmployee are fName, lName and mName. What I want to do is,when a user type to the search box, and click the search button, it will … | |
Here's the setting, I have many link labels in my form(I guess around 150 link labels). All of them will handle a click event, with the same condition when clicked. What are the possible solutions regarding to this problem. Because it's not good if I'll do it one by one. … | |
I need to get the current time from Internet using C language. Any help is appreciated, hopefully a source code sample. Thank you in advance. | |
![]() | Hi guys, I have the following coding and i would like to save it using save file dialog. Any idea? Thnx. [CODE] Dim numCols As Integer = dgvExp.ColumnCount Dim numRows As Integer = dgvExp.RowCount - 1 Dim strDestinationFile As String = "c:\username.txt" Dim tw As TextWriter = New StreamWriter(strDestinationFile) 'writing … |
Hi, I want to make a notifier for showing online users and number of room booked. But i don't know how to code it. Can anybody help me? Thanks in advance. | |
In a library file (dll) I know you can modify an existing property and the exe continues running without recompiling. If you add properties to the dll class and if it isn't critical that the exe knows about them, would the exe continue working without recompiling? Personally, I'll bet not, … | |
Ok, here is what I am trying to do, it is basically a card maker. I need to be able to save the finished products in a single bmp with all text and both the card background and card pic (the area in white which will be able to have … | |
I am having an issue in my project trying to developing a mail webservice but getting an error transport failed to connect to server. Below is the code... [code] protected void btnsubmit_Click(object sender, EventArgs e) { MailMessage mail = new MailMessage(); mail.From = "ruchi.dubey18@gmail.com"; mail.To = txtTo.Text.Trim(); mail.Subject = txtSubject.Text.Trim(); … | |
[CODE]update companystatistic set ReferencePrice = (select ClosedPrice from companystatistic WHERE CompanyID= 310 and ResultedDate = CURDATE() - 1) where ResultedDate = CURDATE() and CompanyID= 310 [/CODE] I have a same code. But it's not work.. help me..! thanks all | |
Hello Everyone, I am trying to implement an overloaded < operator. I found the code below at [url]http://www.java2s.com/Tutorial/Cpp/0200__Operator-Overloading/Theoverloadedlessthanoperatorswithdoublevalue.htm[/url] I am trying to use this as a tutorial, but I don't understand what is happening on line 23-24. I am also a little fuzzy on line 9. Why can't it be … | |
Greetings. I am curious about having the php config file in the web root. I am coding a site for a client and their web host has their php.ini file in the web root. Is that not a security risk? I have never heard of having it there before. I … | |
Hey guys I'm new to java and was wondering if I could have a little assistance. I need to have a user input their number of classes, hours for each class and the grade they received after the information is given i need to calculate their GPA. I have gotten … | |
The following code is a part of my project and the output of this code is that i get all the title of the posts in the database and a delete hyperlink in front of all enteries now when i click delete for a respective title it should be deleted … | |
I have two projects: [B]SQLtesting [/B]and [B]Controls[/B]. Their physical locations are: C:\My Documents\Visual Studio 2010\Projects\SQLtesting\SQLtesting\ [forms reside here] C:\My Documents\Visual Studio 2010\Projects\Controls\Controls\ [forms reside here] The code shown below works fine. I run it from the project SQLtesting. It loads a listbox and a checkedlistbox with the controls found on … | |
hi, i'm using UTF-8 in my database and when i insert unicode characters directly through database it's all fine. But when i'm inserting through an html form using php it sends some kind of other characters to the database e.g : ආයුබෝවන් how can i solve this...??? | |
Hi, I'm learning OpenGL. I assumed this would be the best section to post this thread, because many games are made in OpenGL. There's no place to post this in my other forum, so yeah, I came here. Anyways, here's the problem. I first off do not have glut.h I … |
The End.