199,114 Archived Topics
Remove Filter ![]() | |
Ok so I am trying to create a loop that creates a dynamic variable but I cant find out how to do this. this is what I have so far var map = { 'flammable': 'inflammable', 'duh': 'no duh' }; $.each(map, function(key, value) { var key = value; }); alert(duh); … | |
i got a wired error below: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ö£'}€l‘¸â:m™ëînYWñ×KDnšC=¨ŠnÂRoÕö¨ºk„Ý·ÇçÓQ' at line 1problem uploading image $image = file_get_contents($_FILES['fileupload']['tmp_name']); $image_full_name = $_FILES['fileupload']['name']; $image_size = getimagesize($_FILES['fileupload']['tmp_name']); if(!$insert = mysql_query("INSERT INTO … | |
Hi guys, Your typical C++ beginner here. I'm using the renowned Deitel C++: How to program to learn C++. I am my own mentor and here's what I can't comprehend: What's a Dangling Reference? According to Deitel C++: How to Program and I quote "Functions can return references, but this … | |
I'm trying to print the contents of a QTableView to the printer . i implement bottom script and it run successfully without any error. but all data are Unusual in printPreview. this is [pic](http://img4up.com/up2/75917679167425743216.png) from my problem -[FOUNTAIN](http://www.qtcentre.org/threads/3796-QTableView-printing?highlight=Qprinter) def printTable(self,printer,painter,area): model = self.model myTableView = self.view printer = painter rows … | |
Hello, I am new in VB2008. Could you guys please advice how I can programmtically delete/remove/clear the content of a cell of DataGridView? Say,for example,I have the following code that populates with data in DataGridView. Now,how can I clear/delete the "Test4" text from the cell of DataGridView? The GridView is … | |
Hello All, I just want to know how Can I disable button for some conditions? Say, if I have session- Val. If its -1 then button must be disabled otherwise Enable.. Thanks, Hakoo Desai... | |
Hi guys, I am having a small problem on using QNetworkAccessManager in QThread. The error message is: "Object::connect: No such slot QThread::replyFinished(QNetworkrReply\*)" And my code is header class SSLReceive : public QThread { //Q_OBJECT public slots: void replyFinished(QNetworkReply* net_reply); protected: void run(); private: void initialize(); QNetworkAccessManager* manager; QSslConfiguration config; }; … | |
it is my first time which I want to use ethernet card to read some date from PLC my application/software . does any body has an expereince? is it possible introduce a example or any reference for this isuue? thanks a lot in advance. | |
Below is the code in which I am creating the list of URL s with the information of hotels in a city, the problem is when click on the URL no values are being displayed. please let me know how should i modify the code. <?php include ('connectdb.php'); $query = … | |
**I have to create an application that will dynamically add a menu strip with menu items to a form(ie NOT dragged and dropped onto the form) in Visual Basic. The menu strip should be created in the Form_Load event handler. I have to use a TextBox for user input. If … | |
can anyone tell me whats wrong in the following code. <?php $username="******"; //To test type ure gmail email $password="****"; //type ur gmail passwd $url="https://accounts.google.com/ServiceLogin?service=mail&passive=true&rm=false&continue=https://mail.google.com/mail/&ss=1&scc=1<mpl=default<mplcache=2"; $cookie="cookie.txt"; $postdata = "Email=".$username."&Passwd=".$password; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) … | |
Hi, I have never had to do this before but I do not know how to make an htaccess file. I currently have a webhost and have a few addon domains to my original website. I just uploaded a new site as an addon domain. However, when I go to … | |
Hi again guys... Right, Having issue with a ADODB connection as I have never used one before. Currently trying to read files out of a folder using the ODBC connection that comes with the Software I want to extract data from. I have managed to get the connection to the … | |
I need help with the following windows form applications in VB, question is attached. PLEASE HELP ME!!!!!!! | |
Hello Daniwebers! I was just reading This C++0x Beginner Tutorial: http://www.daniweb.com/software-development/cpp/tutorials/373787/beginning-c0x-making-a-raii-class And I was confused by something: " `int_vector(int_vector& aV);` > Obviously, this type of constructor would allow the transfer of the resource, since the source object can be modified and put into an empty-state (or "zombie-state"). But there are … | |
Hello all you guys, First of all, i am done with Html and CSS as i said in the article title. Now i want to learn a language like PHP, Coldfusion, .Net etc. to make dynamic web sites. According to what i have heard from my friends, php is the … | |
I have been trying to write a program for the game of life and have been having some issues. The rules are: 1. Any live cell with fewer than two live neighbours dies, as if caused by under-population. 2. Any live cell with two or three live neighbours lives on … | |
how can i save multiple record in single click using user define data type in SQL i am having problem in selecting the value in gridview using checkbox here my code View // View LAyer protected void imgbtnSave_Click(object sender, EventArgs e) { DataTable dtTable = new DataTable(); DataRow dtRow = … | |
I wrote a class called Creature.java that creates a random creature object with various body stats. The Creature class extends MonsterGUI. I used Netbeans to create a new jFrame form, called MonsterGUI.java to create a GUI to display the creature objects' stats using jLabels. In MonsterGUI I have a private … | |
I am, trying to write a PHP-Mysql code which fetches the important places in a city and displays the results as links, when i click on the city it should display all the details like name, place, address, phone number etc, but in this case results are not being shown. … ![]() | |
Hi guys, I'm making an RPG(role-playing game) and I need some help. Here is the code so far: class Create: def __init__(self, power, attack, defense): self.power = power self.attack = attack self.defense = defense warrior = Create(300, 50, 150) wizard = Create(500, 100, 230) characters = [ "warrior", "wizard" ] … | |
public void compareStrings() This method will prompt the user to type two strings and will put them into different String variables. Then it will compare those strings to see if they are the same, i.e. have the same letters in the same order. If the strings are the same, “same” … | |
Hello i have a question ! ha, what is the diffrence between these two sets of code, my proffessor says there diffrent, i just cant figure out why, they both seem to do the same thing, this is my first time working with the coproccessor and im alittle stuck, thanks … | |
Hi there, I am facing problem in coding PHP for my search results, my search results produce dynamic URLs (clickable texts) but when i click on the url's no results. In my website am trying to display all hotels in a city, and Iam searching with the hotel name and … | |
I realise that this is a simple and probably daft question... Here is my problem. I am trying to create the VB code to change label background colors, it sounds simple, however i want a user to select from one of four lables one red/blue/green and yellow, then select from … | |
Hello all :) I am still a beginner at ASP.NET and VB.NET so I could use all the guidance I can get. So thanks in advance :) I am building a web application using Visual Web Developer as the IDE and Microsoft Access as the database. The application allows users … | |
Hiya! I have a function that creates 3D meshes procedurally from the given parameters. It creates a four-sided box, which is (for example) 1.0 wide, 1.0 high and 100.0 long. The box is then subdivided into multiple parts, so if the aforementioned box is subdivided to three parts, it will … | |
Hi, Please someone explain me what is viewstate and postback properties in simple words. I have sean many notes but still confused. Please explain with example and considering me as totaly new to IT (actually i am not). Please help i am very confused. Thank you. | |
hey everyone, im in my first semester of assembly, i had a quick quesiton, im working with the coproccessor now for the first time and i would like to know if The coprocessor stack holds all values as 80-bit reals then what is the largest integer data type that can … | |
I'm working with some really ugly files at the moment When I get them they can look like any of these: All data on one line delimited by ┌ `data1|data2|data3|┌data1|data2|data3|┌data1|data2|data3|┌data1|data2|data3|┌data1|data2|data3|┌` Nice data. All the bits I'm interrested already one one line per bit of information: `data1|data2|data3|` `data1|data2|data3|` Mixed: `data1|data2|data3|┌data1|data2|data3|┌data1|data2|data3|┌` `data1|data2|data3|` … | |
Hello great people, I have a challenge passing array into functions.. I will be very grateful for quick responses.. THANKS | |
i want to create a program with the grades in a school. we have to find the average of the grades depending on how many courses the student has chosen. also, we have to find how many courses each studend has passed. - the user has to give the number … | |
Guys, need some guidance here... i have this php codes that copies all the value in a table to another table....some sort of table replication now, the problem is when i tried copying them, keep getting an error Database down **1054: Unknown column '124928F014007570' in 'where clause'...** the codes dataverification.php … | |
1st user has to fill this form <form action="upload.php" method='post' enctype = 'multipart/form-data'> ImageName: <input class = "text" type="text" name="imagename" /><br/> Description<textarea name="imagedes"cols="16" rows="4"> </textarea><br/> <input type ="file" name="fileupload" /><br/> <input type="submit" name="submit" value="sumbit" /><br/> <a href="index.php">[BACK]</a> </form> than it run php code. here i am getting image infomation $image_short_name … | |
Hi All, I have a WordPress installation at the following: http://www.domain.com/wordpress/ However I need some help... When a use goes to http://www.domain.com I want it to redirect to http://www.domain.com/wordpress/ however I want to hide the /wordpress/ so the user only sees http://www.domain.com But it still needs to work with links … | |
Hi, im currently working with an SQL Server 2008 database and im trying to change values in the database usign visual basic. The following code runs correctly and I have tested changing passwords and have been able to logoff and then back on again using the new password. The problem … | |
Hi, i have a list that contains 5 columns that contains strings and float values(3 strings columns and 2 float columns) .. i want to export this list to a space separated text file (each column in the list is a column in the text file) i tried to do … | |
Hey guys, well im new to the php scene, but want to put this form which will auto-generate a new page (example : www.abc.com/123 or something like that) and then send a thank you email with the link to the auto generated page to the recipient. it will have fields … ![]() | |
Hi, I want to output a random value from an array. i use the array_rand() function but this function returns the array key while i want echo the value. $mtn = array(08034, 08035, 08036,08037); $mtnwinner = array_rand($mtn, $num_req = 1); echo $mtnwinner; the above code will return any of the … | |
Hello Friends, I need to create a report for my project I am using Miscrosoft Visual Studio 2010 and the SAP crystal Report I am not able to set up the connection The SQL server that I am using is not coming in the drop down of the server part … | |
I am new to dealing with SQL Express DB tables. I have a Windows application that gives the user a textbox that is bound to a value in my dataset (ds) which reflects my SQL table (Specs) field. The user can change the numeric value of the textbox and I … | |
Here is a example for my work. if a date ---> 20/03/2012 should be shown as 01/04/2012 16/12/2011 Should be shown as 01/01/2012 02/05/2008 Should be shown as 01/06/2012 My requirement is to get a given date as 1st of next month. I know to do this with IF conditions. … | |
i don't know how it happen but the exe formed after compilation was 1.23 MB which has never happen before. | |
hi All, I have two tables table-1:customeramount table-2:customerpurchaseamount table1 have customers bonus amount and table 2 i have customers purchase amount now i need to calculate balance bonus amount i tried with following query but It shows unexpected result , could any one guide me.. SELECT CM.`custid`, SUM(CM.`amount`) - SUM(CP.`Amount`) … | |
Is Visual Studio Free? It looks free here: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=240 it does not look free here: http://www.microsoft.com/visualstudio/en-us/try | |
Hellooooo... I want to ask a question! I have Listview1 and in the SelectedItemTemplate I have ListView2. When i click "Select" The Listview2 shows up... and then when i click it again i want it to hide but, i want it check to check if the ListView2 has items to … | |
I have a project named project1 in VS in a solution called Solution 'ShopEntry'. I want to have a copy of the project1 as project2 within the same solution. How can I do it without having errors. thankx in advance | |
Hi peeps, pls i need help on how to hard code my database connect to my application . Example, i want to connect to my application using dim conn as new SqlConnection conn.ConnectionString = " connSring" dim cmd as new SqlCommand cmd.connection = conn cmd.commandType = commandType.text cmd.commandtext = " … | |
Hi! I have iframe with multiple images retrieved from DB. Each img have "comment" button underneath it. I need this button to redirect to the comment page where user can leave comment . Redirection function works. But at the same time I need this button to send img ID to … |
The End.