199,112 Archived Topics
Remove Filter ![]() | |
Hi, I have a form to upload images one at a time with text to a mysql database table, but I need to resize these images before adding them to the table, I want to retain aspect ratio and I need it to always resize the longest side of the … | |
Hello Folks! New to Daniweb and programming in general! I've seen a couple other posts on this issue, but I wasn't able to sort it out with those suggestions. I'm getting the error mentioned in the subject, and I suspect it's something to do with my INSERTS/VALUES, but this is … | |
I have a Web Service I setup on the iSeries. It works when using SOAPUI and it works from the Built in test facility in the Native Web server. But when I try to access it form the following PHP program it fails to return any data. I am obviously … | |
WORKS: [CODE] LLGroupMgrGroupData* LLGroupMgr::getGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; } [/CODE] DOESN'T WORK: [CODE]// static LLGroupMgrGroupData* LLGroupMgr::getStaticGroupData(const LLUUID& id) { group_map_t::iterator gi = mGroups.find(id); if (gi != mGroups.end()) { return gi->second; } return NULL; }[/CODE] Error 1 error … | |
Hi guys, Currently I have a list view which is populated from a table in a Access database. It currently shows 3 columns of data which is fine. When I click on the item It populates the left hand side whith is full off text boxes such as 'Name', 'Address … | |
Hi, I am struck in accessing c functions from java. I have .lib file and 5 dll files which are interdependent. I need to access the c functions in java. Please help me. i have no idea on this. Thank You, Sagar | |
can anyone suggest me URL for chat application in c language? ![]() | |
plz do suggest ne good topic for final year project in .net . Right now i am a beginner in c# . | |
Hey just a question to prove me right or wrong. I am wondering what the 'this' in the following code refers to in terms of my applet. mainThread = new Thread(this); I believe that it refers to the run method which defines the thread. I was told I was wrong … | |
Hi Guys, i am working on a application that requires users to answer questions....what i want to do, because of the fact that the page has a lot of questions is to have some paging system on the form as well as keep page state whenever the user moves to … | |
i have writeen following query in my code. $tquery="SELECT questions.id,questions.date,questions.title,users.user_name,subjects.subject FROM questions INNER JOIN users ON questions.student_id=users.id INNER JOIN topics ON questions.topic_id=topics.id INNER JOIN subjects ON topics.subject_id=subjects.id WHERE subjects.id=".$_SESSION['sub1']." OR subjects.id=".$_SESSION['sub2'].";"; but when i am trying to echoing its result it is not displaying anything. | |
Dear Gurus/Experts in C++, I am creating an automation tool, for that I have to autosave the excel with strings.I can read/write in excel, but when I try to auto-save the excel I am getiing error, the same code I tried for saving the integers,its working but for string I … | |
I have the following table structure of my db: * tbl_project * tbl_employee * tbl_deliverable * user_to_deliverable as tbl_prjct and tbl_deliverable has 1-many relation, tbl_employee and tbl_deliverable have many-many relation so they are splited into user_to_deliverable table All i want is that a query to show project_name(from tbl_project), project's deliverables … | |
Hello I'm very new to android programming. I'd like to calculate the sleep cycle of a person in Android. I found a java code from the net but I don't know how to apply it in Android. Here's the code I found: /** * Get times to wake. We add … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, Farcourts, Jonnys, Relax"/> <title> Agents </title> <link rel = "stylesheet" type = "text/css" href = "assessment.css"/> </head> … | |
Hello, I am trying to install apache xampp. Get this error? #1146 - Table 'phpmyadmin.pma_recent' doesn't exist Why is it? Thanks. | |
Hi everyone, I'm sure the update statement is well-written but for some reason Oracle sql command line is refusing to execute it. UPDATE myTable SET country = 'Aus' WHERE username = '"martin"'; // I know you can see single quote and double-quote as well. Well, names were inserted into the … | |
I am having some issues with some code i am trying to use. Can you please take a look at the code and give me some fixes to this. The error i am getting is this: Warning: Wrong parameter count for mysql_fetch_assoc() in /home/content/33/5271833/html/cfr_forms/edit.php on line 10. What i am … ![]() | |
I will give an example of what I have so far but, most parts will be left out for simplicity sake: pt1) <?php echo "<img src='$path' width='400' height='400' alt="; ob_start(); echo "'$name'"; ob_end_clean(); echo "/>"; } ?> pt2) A couple of lines down from this is (where i want to … | |
Greetings all, I have a noob php question i need answering if possible.. I simply want to save what ever is typed into the form field for when the page is reloaded to show again. I know it needs a new session started but im confused alot about what needs … ![]() | |
Hi All, There are many articles available that describe how textbox watermark can be done with the .Net framework(C# and VB.Net) I'm working on a VB6 project. How to implement this with a VB6 textbox? | |
Hello All, I am creating a nagios that will automatically login to my website and display result in Nagios. Currenlty I am able to login using script but my PHP Curl script return full HTML code after login thourgh curl. here is my script. <?php $id = "username"; $pw = … | |
The error of "} expected" appears at line 5. Why is that? I have included it at line 12. The error of "Declaration missing ;" appears at line 8. Why? There is ";" at the end of the line. class PEmployee { public: PEmployee(); PEmployee(string employee_name, double initial_salary); void set_salary(double … | |
Hi every one. i am facing issue regarding displaying Product by category wise. i have two table 1st, product category and 2nd product details. i have foriegn in second table. i am attaching three file 1st template so you can undersatnd what i am tring to do and other files … | |
I am trying to submit to a newsoap service and keep recieving the following error *HTTP/1.1 400 Bad Request Cache-Control: private Transfer-Encoding: chunked Content-Type: text/html Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Date: Mon, 03 Sep 2012 10:09:41 GMT* Function I have written looks like the following ($post_xml is shown below and $url … | |
I am developing a pos application with c language, What i am trying to achieve is to add, and delete users. Adding is not a problem at all. but deleting is becoming too tricky What i am doing is, i am seaching for the record using fread(), then as soon … | |
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package buttontest; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author noorulrafiedza */ public class ButtonTest extends JFrame { private JButton Button , Button1,b; private JPanel Group; private JCheckBox cek1; … | |
Good day! How to move to a specific record base on the current recordset of adodc control? I have this employee_(empID, empName, EmpSalRate). I have load all employees data by using this code: dim Sql as string Sql="select * from tml_employee order by empName Asc" AdoDc.ConnectionString=Conn AdoDc.RecordSource=Sql AdoDc.Refresh Thus, I … | |
I am trying to pass the values of an array from one PHP page to another but I am not having any luck. I need someone to tell me what I am doing wrong or if there is a bettter way. Here is my code snippet for page one: <?php … | |
I have to create a java program using either a regualr array or arraylist so I chose arralist and I named it horses but now have to create another method with in the programming inorder for a user to input/search for "trigger" and if it is found it shows the … | |
Hello, How can we reshuffle the data from database represent in table form? I want to reshuffle the data of table it means we can up and down that data for e.g if I want to that data in first row from last row then I want to drag the … | |
I developed a program I think has potential, but don't want the end user to a) have to download python and b) steal my code. How would I turn it the .py of my script into a .bat or .exe so my end user can run it? | |
This is my program for Biodata in applet using JFrame import javax.swing.*; import java.awt.*; public class Biodata extends JFrame { JLabel jlname,jladd,jlmobno,jldob,jlgender,jltab,jlhob,jllang; JTextField jtname,jtmobno; JTextArea jtadd; JComboBox jcd,jcm,jcy; JRadioButton jrm,jrf; ButtonGroup bg; JTable jtedu; JScrollPane jsp,jshob; JList jlhobby; JCheckBox jc1,jc2,jc3; JButton jb1,jb2; JPanel jpr,jpcombo,jpcheck; JFrame jf; Biodata() { jf=new JFrame("Biodata"); … | |
Hi all, Say i have 2 nodes of a tree. struct tree{ int data; tree* left; tree* right; }; NODE1 data = 3; left = NULL; right = NULL and NODE2 data = 6; left = NULL; right = NULL How do i say Node 2 if the left link … | |
I need a little bit of help here. I'm new to C++ Classes. There are some errors which I do not know how to troubleshoot. The error of "Declaration terminated incorrectly" for line 6 and 7. Multiple errors of "Type name expected". Why is that? Multiple errors of "Declaration missing … | |
Hello All, First time poster, long time reader and thank you for all the previous help I have recieved from everyone. I am having trouble conneting to my access db. I think I have the bulk if this right, but I am getting an error on the newconnection.open() line. I … | |
I'm looking for the web online course for my learn Python Where are the best to learn python? Who know tell me, please. Thanks! | |
 I want to create menu style given in image when i clicked menu it opens its content, but when i clicked to 2nd menu it closes previously opened menu and open 2nd menu. please see image so you get perfect idea what i want to say...if you have … | |
I am supposed to use this method public static void drawIndentedLine (int spaces, String begin, int n, String middle, String end) This is what I am suppsed to do **It should print a single line, terminated with a newline, that begins with the specified number of spaces, followed by the … | |
Hello everyone. I have a problem with my checksum and logic. I wrote a program that downloads and read bitmaps and try to generate a checksum for each one. The checksum is used as the name to save the bitmap as so that I don't save the same bitmap every … | |
how can i parse <tag attr="z"> <tag attr="y"> <tag attr="x"></tag> </tag> </tag> to <tag attr="z"> [tag=y] <tag attr="x"></tag> [/tag] </tag> Without using extensions ... THANKS ALLOT :) ![]() | |
HEllo Friends, I am workng on online application which my clients will use on monthly bases. I have already purchase cloud server. I will also provide hostng services as well But i am confused at one point. Lets suppose 100 uses have registered and apply for my application. So do … ![]() | |
Hi, I need to search a particular string in a CSV file ("STPSTR01.134") the line that contains this string. I need to divide the 13th column by the 14th column. Any help would be very much appreciated. I'm using ActivePerl for windows /csv file allAssociationUtilizationData;V16SG;2012/07/27;10:45:00;STPSTR01.134;900;FALSE;SCANNER;10;3471;6288;11093;10419;588480;631296;0;254004;316732;0 allAssociationUtilizationData;V16SG;2012/07/27;10:45:00;STPSTR01.58;900;FALSE;SCANNER;10;20652;23514;39497;29404;4690132;3929776;0;3471992;2947904;0 allAssociationUtilizationData;V16SG;2012/07/27;10:45:00;STPSTR01.60;900;FALSE;SCANNER;10;20593;19351;36274;26039;4350820;3462084;0;3234956;2593056;0 allAssociationUtilizationData;V16SG;2012/07/27;10:45:00;STPSTR01.62;900;FALSE;SCANNER;10;24237;21229;40003;28678;5122408;3703840;0;3875508;2746088;0 allAssociationUtilizationData;V16SG;2012/07/27;10:45:00;STPSTR01.26;900;FALSE;SCANNER;10;18538;20644;35833;26421;4075280;3588768;0;2979124;2707892;0 ![]() | |
Hello, I'm starting to delve into the world of Web Development after failing to design websites at a good standard. I've had a look through the forums but I haven't found a specific answer(s) to my key problems. So if you don't mind, I will list all of my questions/dilemmas … | |
Hello everyone. I need some help with a SELECT FROM WHERE query. Let's say I have a row named A and another row named B, and I want to select the eventual cases where values from these two rows, somewhere, match eachother. In this case, you can see, that the … ![]() | |
hello everyone, what is the way to replace Spaces With + icon using PHP. Suppose some text like "I Love PHP" will automatically converted like this way "I+Love+PHP" .. assuming a field has this text in a variable like> `$text = I Love PHP` so this variables text spaces will … | |
I have a .htaccess file. I have two RewriteRule's that do the same thing. This one works perfectly, and can handle a huge query: RewriteRule ^p/(.*)(/?)$ index.php?p=$1 [QSA,L] This one will only handle a query up to 255 characters. RewriteRule ^(.*)(/?)$ index.php?p=$1 [QSA,L] How do I fix this, and make … | |
hey guys !! i am new at c++ so i need a bit of help .. i am trying to solve different problems but i am stuck on this problem .. write a c++ function , smallestindex that takes as parameters an int array and its size and returns the … | |
I have the following code in my **PHP** program: $query = "SELECT * FROM board_members"; $result = mysql_query($query) or die(mysql_error()); $data = array(); // create a variable to hold the information while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) !== false){ $data[] = $row; // add the row in to the results (data) … | |
![]() | Hihi im very new to programming. Need help for this program. Im supposed to create a queue using an integer array. For input value > 0, program will insert value to queue ; input value = 0, program will remove least recently added value from queue if non empty ; … ![]() |
The End.