199,114 Archived Topics
Remove Filter ![]() | |
hiii guys i am in the second year from computer science i take c# languge programming but the proplem i donot know how i need to be good programmer and how i start in this and what i take so plz i need help from u guys to tell me … | |
I have a problem i wrote a code and copyed some code but now my sprite dosent move anymore....and i dont know why # Import a library functions called 'pygame' import pygame from pygame.locals import * # Initialize the game engine pygame.init() # Define some colors black = (0, 0, … | |
Guys, I'm having a problem with the Magento Platform. Trying to build an auto-populated option with Ajax, it works flawless in a simple folder outside Magento. But with Magento, it's not populating from data.php <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("select[name='marca']").change(function(){ var optionValue = jQuery("select[name='marca']").val(); jQuery.ajax({ type: "POST", url: "data.php", data: ({marca: optionValue, … | |
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound. this is an error msg appear when i need to add a new row to datagridview, how i can add new one ??? DataGridView1.Rows.Add() | |
whenever I try to run it I have a compile error in connecting my database this is my code Dim con As Adodb.Recordset Dim conn1 As Adodb.Connection Private Sub mygdb() Set con = New Adodb.Connection con.CursorLocation = adUseClient con.Open "PROVIDER = Microsoft.Jet.OLEDB.4.0;Data Source =" & App.Path & "\enrolment.mdb;" End Sub | |
i want to create a folder on server using php and make it writable so tht i can upload files to it using form... can someone help me with script on making folder and making it writeable on server. thanx | |
Daniweb isn lt the first forum I joined, (but thankfully its the only one I am currently on). And over the years as I've browsed literally 100's of forums, in the past I always seem to see one question that always pervades. (Well at least on the gaming ones). And … | |
Hello! I'm relatively new to C++ and I'm learning about classes and objects. I've learned most of what I know from YouTube tutorials and some books. Well, in almost all of those, they mentioned that it was poor programming practice to make all your data members public, inside of a … | |
Hi guys, I'm learning C and I still don't have some concepts very clear in my mind. I have to create a program that get the values from ARGV[] and puts into a vector: the program would work like that: ./program file1 file2 file3 My idea was to do something … | |
I need to order these dates in descending order (last should be first) and in fact how they now appear. However they do not necessarily appear like those so I need a SQL Order By clause to order these descending: 2012-01-23 09:53:24.097105 2012-01-20 17:31:57.565458 2012-01-20 17:01:09.154587 2012-01-20 16:28:40.685735 2012-01-16 12:03:54.99954 … | |
I've been having a bit of problems with a file. Here is the script that I'm having issues with and the exact error is as follows: Parse error: syntax error, unexpected $end in /hermes/bosweb/web168/b1683/ipg.xoizocom/pba/login/index.php on line 239 <?PHP require_once("globals.php"); $INFO = array(); $ipsclass = new ipsclass(); $ipsclass->vars = $INFO; $script … | |
Hello People. I would like to ask you're assistance with a little problem I am having. When I execute this code: string sql2 = "INSERT INTO worlds (worlds_ID,worlds_active,worlds_name,worlds_x,worlds_y) VALUES ('', '1', 'Test', '250', '250');"; MySqlCommand cmd = new MySqlCommand(sql2, OpenCon()); addtolog("server", "World Created"); it does not make the new row … | |
Hello, I am trying to read text from a simple text file. The text file contains a list of emails and zipcodes, formated as follows: email@site.com;zipcode where zipcode is 5 integers. I am having an issue with the getline function, my error is "no instance of overloaded function". Could someone … | |
I am trying to get into php object oriented programming. <?php class myClass{ public $myVar="this is demo"; public function myTextdemo(){ echo $myVar; } } $obj= new myClass; echo $obj->$myVar; ?> It says > Fatal error: Cannot access empty property on line 11 What's wrong with my code? | |
I want enter number digits into textbox and textbox will automaticaly convert this digits itno currncy like this if i want enter 120 , i want textbox convert it 1,20 how to make code for it ? | |
<?php $title=$_POST["title"]; $theme=$_POST["theme"]; $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $query=mysql_query("SELECT * FROM setup WHERE id=".$_SESSION['id']); $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($num_rows > 0) { while($row = mysql_fetch_array($result)) { $_SESSION['id'] = $row['id']; $_SESSION['title']=$title['title']; $_SESSION['theme']=$theme['theme']; } { mysql_query("UPDATE setup SET title='".$title."' , theme='".$theme."'WHERE … | |
Hello, I want to display the fields that were updated. When a user edits their information, example; "FIRST NAME:John LAST NAME: Stih Update to:UPDATE users SET firstname = '$firstname', lastname = '$lastname' FIRST NAME: John LAST NAME: Smith I would want it to print "You updated your Last name" | |
hello,I Need RSA system code with javascript ,i heared there're some rsa libraries in the internet , i looked for it , and i found some thing but it's not what i look for , i look for library applied (PKCS #1 v2.1) or (PKCS 12 v1.0),i have project and … | |
Tons of errors. Keep getting parse errors....line 45, 59...every time I get one, more pop up...please help. <?php session_start(); //ini_set( "memory_limit", "128M" ); //error_reporting(5); // added in by jaime to insure they are logged into the admin if(!$_SESSION["loginOK"]){ $err=1; $message="You must log in first"; exit; } if($_REQUEST["button"]=="Return to Main Menu"){ … | |
In my project I've 8 edit boxes and i need to set each box with different font. But my code is setting all the boxes single font.. So how can i modify it?? void CTrail3Dlg::OnBnClickedButton1() { UpdateData(TRUE); CFontDialog dlg; // get font for current dialog, just to fill in LOGFONT … | |
I am trying to make a forum and still thinking what language to use ASP.net or PHP. Can any one tell me the Pros and Cons of each language ? | |
Hello, The following script writes to a file include.php <?php $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start=""; $Fnm = "./include.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file != 'index.htm')) { $result="{\nlevels: [\n{ file: \"$path2$file\" }\n],\n\ntitle: \"$file\"\n},\n"; fwrite($inF,$result); } … | |
Hi guys, I am developing a software and I want to make it in good appearance!!!! As you see most of programs have a beautiful skins, I want too!! I have google it in days and I found a dll file called "DevComponents.DotNetBar2.dll" ( may you have heard about it) … | |
Hello everyone, I stumbled upon a video about the monty hall problem, which I found very well explained, and a lot of comments below the video that were against the conclusion that it **is better to switch**. To clarify, I wrote this small program that simulates the game and allows … | |
Ok, I am very new at php coding but I thought I would give it a shot. I am building a site for a friend of mine for his video game team. The problem I am having is they want an application form so I made the form but I … | |
I'm trying to write a script that will search a page for mp3 files, and download the first one. All is fine, but when I'm finding the links the first two are not mp3 files. At the moment I'm doing: for link in page.findAll('a')[:3]: f.write(link.get('href')) This finds the first 3 … | |
![]() | OK I've got another interview! Thanks to pritaes for the links etc. Never thought I might be doing a programming job but hey, it's a laugh I guess. I have a few questions I may want to ask about OOP in version 5, but also codeigniter and joomola... So learning … |
Hello, I have a question that can be deducted from the title. When to use C++ inline functions and when not? Should I declare my constructors/destructors as inline? Should I declare functions that have at least a loop as inline? People say that declaring *small* functions as inline is a … | |
Hi, I'm writing a code to print weekday (ie: mon, tue, wed, thurs, fri, sat, sun) when user enter day/month/year. However, I do not know why this code doesn't work right. I didn't get any error. It actually works, but it just printed "Monday" for whatever date I putted in. … | |
Hi I have always been a windows user but a few months ago switch to Ubuntu Linux. I have started learning Python and want to find out from experienced developers what the best way is to setup a development environment on a Ubuntu machine. I am running Ubuntu 12.04 which … | |
I have been struggling with this for awhile now. lol I have no code to post because I haven't even started it. I can do the insert statement just fine from vb.net code to a sql database. That's fairly easy. However to do an update statement from a combobox to … | |
This post is a followup to an older dicsussion [on recordmanaging](http://www.daniweb.com/software-development/python/code/429753/custom-named-tuples-for-record-storage). I am writing this to share with colleagues, so it may be a bit fluffy and not straight to the point. I apologize to all the experts. Good programs always start by managing data in a flexible and robust … | |
int n; scanf("%d\n", &n); printf("you typed %d\n", n); it seems to hang until I type one extra line of input....Can anyone explain this behaviour | |
IDC_FUNCTIONALITY MENU BEGIN POPUP "&File" BEGIN MENUITEM "E&xit", IDM_EXIT END POPUP "&Help" BEGIN MENUITEM "&About ...", IDM_ABOUT END END This is an example of a part of the default Foo.rc file distributed with VisualC++ 2010(Express), this is how this section of code was shipped. I'm interested in knowing why Exit … | |
hi im trying to do Bjarne Stroustrup's exercise (calculator), it worked well but when im trying to add new function in the calculator (add new variable) it has bugs.. its not complete yet, because when i checked a bit, after i add string "name" inside `Token class`, it gives no … | |
I need help translatinthis problem The sum of the sqaures of the 2 larger interagers is 12 less than 4 times the square of the smaller number. | |
![]() | hello i got alexa charts links from internet today <!--Daily Traffic Rank Trend--> <script language="JavaScript" type="text/javascript" src="http://xsltcache.alexa.com/traffic_graph/js/g/b/6m?&u=http%3A%2F%2Fwww.yoursite.com+++++"></script> <!--Daily Traffic Rank Trend--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=t&b=ffffff&r=1m&u=yoursite.com&"> <!--Daily Reach in Percent--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=r&b=ffffff&r=1m&u=yoursite.com&"> <!--Daily Page Views--> <img src="http://traffic.alexa.com/graph?&w=400&h=220&o=f&c=1&y=p&b=ffffff&r=1m&u=yoursite.com&"> i want to insert them in html form with few button for every chart and want … |
Hello, I created a site where you have to log in and it begins a session. I wanted to make a stay logged in feature so I started using cookies. I made it so if there was no session then check for cookies. My site also sends out emails with … | |
Hey guys, I have two structs and I have two functions in two DLL's. DLL-A is attached to a process and collects data. When the data is requested by DLLB which is attached to a second process, DLLA maps the data for B to read. The problem is, I cannot … | |
0 down vote favorite I am trying to write a script that will return the latest values for a unique documentid-physician-patient triplet. I need the script to act similar to a group by statement, except group by only works with one column at a time. I need to date and … | |
I have two text area on the screen, I can make bold the different words between two text areas and I want to have for up and down to go the different words helping this button on the text areas. how can I do that? | |
Hello dear members i am running an online shopping project past few days my website not working very good it is too slow for loading,i hosted it on a dedicated windows server, and also have a very good internet speed but still have problem loading the web site and also … | |
Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple … | |
I recently came across this code on the internet and I'm having a very hard time understand how it works. I was hoping someone could comment the code a bit in order to help me learn it better? I understand most of it, but get lost when any of the … | |
I have a configuration table with one row per configuration item (id,category,name,value,description,comment). My objective is to create a single edit page that shows all, or a subset, of these values and allows me to edit them. I could probably create a page with a separate form and submit button for … | |
Dear members, I'm in serious problem. I need a tool which can get all content information of a website and at the end these information will produce a CSV. That CSV will be imported in another database...can anyone help me regarding this issue.. | |
This is my code that i put inside Form 1....(for ur info, im using microsoft visual c++ 2010). #pragma endregion private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { char szDSN[256] = "Driver={Microsoft Access Driver (*.mdb, *.accdb)};DSN='';DBQ=C:\Documents and Settings\user\Desktop\dbtesting.mdb"; } i try to compile my code and here I get hundreds of … | |
Hai,everybody i need help how can i make it user click join button->change the text "view" after that user click view btn goes another page any body plz help me. this code change text working fine. function showtext() { document.getElementById("joinbutton").childNodes[0].nodeValue="View in MyPlans" } <a href="#" id="joinbutton" class="planpeople" onclick="javascript:showtext()">Join</a> | |
I am currently running a live 'in-memory' XSLT transformation using the following code XmlDocument XmlDoc = new XmlDocument(); XmlDoc.LoadXml(DS.GetXml()); XslCompiledTransform XsltTranformation = new XslCompiledTransform(); XsltTranformation.Load(@"C:\Users\maskew\Desktop\XSLTMapping.xsl"); Stream XmlStream = new MemoryStream(); XmlDoc.Save(XmlStream); //Stream is still blank after this line XmlReader XmlRdr = XmlReader.Create(XmlStream); MemoryStream stm = new MemoryStream(); XsltTranformation.Transform(XmlRdr, null, stm); … | |
i'm at the begining of using vb6 , so i ask if some one send me a nice web site that contain training video vb6 and i want also a nice web site that teach vb code |
The End.