199,114 Archived Topics
Remove Filter ![]() | |
Hello people :) i'm trying to insert query result into 2 dimensional array i have tried the following way.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ for($i=0;$i<=$index;$i++){ if(isset($myarray[$i]['array1'])|| isset($myarray[$i]['array2'])){ array_unshift($myarray[$i]['array1'],$row['study_period']); array_unshift($myarray[$i]['array2'],$row['test']); }//endif }//endfor }//endwhile [/CODE] But, it failed i also tried.. [CODE] $query=mysql_query("..."); while($row=mysql_fetch_array($query)){ $myarray=array( array("array1"=>$row['study_period'],"array2"=>$row['test']) ); }//endwhile [/CODE] it failed too since it … | |
i have no idea where to start but; i'm looking for a way to change all emails from [email]suppliers@test.domain.com[/email] to [email]title@test.domain.com[/email] in a MySQL DB. DB Name: simons_directory Table: listing Fields: title, email caveats - title has words with spaces, if possible to remove the spaces so "My Business Name" … | |
I have the input string "textfile\foldername\text.txt" Now i need to convert given string to: textfile/foldername/text.txt I went through string.replace(oldchar, newchar) methods, but i actually couldnt remove the " and \ characters from the string. Need help | |
Hi All, I have a number of arrays stored as a text string in a database (ive included it at the very bottom). As this is a text string i need to know how to convert it back into an array. Also, how can i access a single element, i.e … | |
Hi all, I want to sort some sql results by a certain list. I don't want it sorted alphabetically or anything. I want to specify a certain list. eg "order by `office` = 'president', 'vise President', secretery'" ect. Is there anyway to do this? I didn't type this example exactly … | |
Hi Everyone I need some help. I would like to remove characters from a string that are contained in brackets. For example string (Hello)World, I want to remove the (Hello) part. Is there a way. I can't solve it with the replace or remove methods. I am new to C# … | |
Hi, how do I add (using SQL) string that has the char ' ? I have many words that look like this- dsf'dfdf or dfsdf' but when I'm trying to add them the query command thinks that the ' is the end of the string and then messes up everything … | |
Hello, which book can u recommend me as Java Beginner? | |
Hi all. I have code that looks like this: [CODE]void bubblesort (int arr[], string stringarr[]) { for (int i=0;i<5;i++) { for (int j=0;j<i;j++) { if (arr[i] > arr[j]) { int temp=arr[i]; arr[i]=arr[j]; arr[j]=temp; string strtemp=stringarr[i]; stringarr[i]=stringarr[j]; stringarr[j]=strtemp; } } } }[/CODE] It is a bubble sort trying to find the … | |
hi, i have this code [CODE]#include <fstream.h> #include<iostream> using namespace std; int main (char argc) { for(;;) { fstream file; file.open("file.txt"); cout << "Enter new high score." << endl; double n2; cin >> n2; double n1; file >> n1; if(n1 > n2) { cout << "You didn't beat the high … | |
Hi all, I'm new to this forum and I am also new to Python and coding in general. While I've gotten through basic tutorials on most general topics of Python such as series, dictionary, parameters, loops, and so forth I am still very much a newbie (as you will see … | |
Hi, I need the following headers. [CODE]#include "unistd.h" #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/un.h> #include <sys/time.h> #include <netinet/in.h> #include <netdb.h>[/CODE] I been looking on the internet and find it hard to get downloadable versions of these headers. Instead, often I have to copy paste into a new file. … | |
i got c++ off amazon, no solutions are provided for the end of chapter exercises my problem is with getting larger numbers to be only two decimal places. i know about setprecision and how it works for the smaller numbers but when i enter a large number for days worked … | |
hi guys, Can you help me. How can I delete the uploaded photo ?? if I click the delete button message box appear and asking if I am sure to delete the photo, if I choose the Ok button the image was still there. How can I remove that?? what … | |
I have to strip anything that isn't a letter between a-z (lowercase only) out of a sentence. I wrote this [code=python]def breakPhrase(string): string=string.lower() for character in string: if ord(character) < 97 or ord(character) > 122: string=string.strip(character) return string[/code] and it works, but only if theres only one punctuation or non … | |
I have a pure virtual base class called IVSystemDLL. I also have a class called CVSystemDLL which inherits from IVSystemDLL. When I create a [icode]new[/icode] CVSystemDLL and convert it to a IVSystemDLL *, and try to use one of it's functions, I get an access violation. It's not something inside … | |
hello dudes, i want to write a program in php which enable user input??? from the user>>> here is the code but doesn't asking any user input....even i enabled pop up block off>> help me out | |
hi, i have this code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); // curl_setopt($ch, CURLOPT_HTTPHEADER, $this_header); curl_setopt($ch, CURLOPT_POSTFIELDS,$post); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_REFERER, $referer); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies); $result = curl_exec ($ch); // echo $result; curl_close ($ch); that works fine with a simple post … | |
anybody know how to remove the repeated characters/// The output is like this.. string:aaaaanffddddgjkh result:afdgkh | |
import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JFrame { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, … | |
Hi everyone, goodday. Right now im planing to setup 5databases for each store(5 loan branch). Each branch encode customer and loan account. Also hold each db for the branch inventory. For single branch the database works perfectly (encode transaction and produce reports). Now my problem is.. I want to centralize … | |
Hey everyone, I need some major help. I was going to get some development time in on one of my projects when I found that my installation of VS2008 Pro no longer wanted to compile any projects. I have tried making empty problems with just the int main(), nothing else … | |
Hey guys. I am having problems with this code. I am somewhat new to java so this may be a simple mistake on my part. Any help or direction would be greatly appreciated. I am trying to convert this code to use double instead of int. It is a insertion … | |
I am working in a joomla project.Suddenly i see a unwanted link as [url removed] is added to some text of some pages. i can not understand and cannot fix the problem. please help me removing the unwanted link. | |
Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { … | |
Hello all, I'm trying to build a forum site. The code below works fine but I dont know how to catch it from the address bar. I'm having trouble finding tutorials to help me with this. viewtopics.php [CODE] echo "<tr bgcolor='#6698FF' ><td><a href='viewcomments.php?id=".$rows['topic']."'> ".$rows['topic']."</a></td><td>".$rows['username']."</td><td>".$rows['timestamp']."</td></tr>"; [/CODE] Address Bar [CODE] http://localhost/testsite/viewcomments.php?id=Cowboys%20Dancehall [/CODE] … | |
I am trying to use a linked list to read in data, do calcuations and then display it. I am new to using linked lists, so right now I'm only trying to display them to see if it works. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <list> using namespace std; … | |
[CODE] <!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> <title>3D Tag Cloud</title> <style type="text/css"> body{ background:#DDD; color:#000; } a{ color:#009; } a:hover{color:#00F;} address { font-family:Georgia; font-style:normal; text-align:right; } #tagcloud{ background:#FFF; border:1px solid #000; font:14px Verdana,sans-serif; height:400px; overflow:hidden; position:relative; width:400px; } #tagcloud ul,#tagcloud li{ list-style:none; margin:0; padding:0; } … | |
I have all the syntactical knowledge of php and I'm currently learning Ajax.I need to work on some project so as to enhance my knowledge and apply what I've learned so far.Knidly suggest as to how can I do that ?Will i need to buy a domain for this? Regards ![]() | |
Hi Guys, Need a bit of advice. Basically I am building a webcrawler and in order to do so I have to extract the page source of a webpage which I can do so like this: [CODE=VB] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim … | |
[CODE]<html> <head> <script type="text/javascript"> function test (){ //refer tst to a new Objy object. var tst = new Objy(); alert(tst.display()); } function Objy(){ try{ this.prototype.display= function() { this.text="yoyo"; }; } catch (err){ alert (err); } } </script> </head> <body onload="Javascript: test()"> <div id="display" > </div> </body> </html>[/CODE] Hi, I'm basically … | |
[CODE]#include<iostream> #include<conio.h> using namespace std; class base{ public: base() { cout<<"base constructor"<<endl; getch(); } virtual void out() { cout<<"I AM BASE"<<endl; getch(); } }; class derived : public base { public: derived(){ cout<<"derived constructor"<<endl; getch(); } void out(){ cout<<"I am derived"<<endl; getch(); } }; int main(){ base b,*bp; derived d; … | |
Hello everyone, I am Java SE developer, but would like to start developing Java ME applications. Can you point me to some book, tutorial where I could get the basic concept of making mobile applications? And also, what IDE should I use? Currently I use Eclipse and NetBeans. Thank you … | |
Hello, I am new to C++ programming. Till now I have done some toy programs and classroom exercises. I want to develop a Virtual Drive software like PowerISO/Magic ISO. I searched Daniweb but couldn't get a thread where such problem was discussed. So from where should I start to develop … | |
I want to redraw a JPanel while my program is running. Here's a fragment of my code: [CODE]public class Graph extends JPanel{ public void redrawSomething() { getGraphics().drawRect(15, 5, 20, 5); repaint(); }[/CODE] I tried to call "redrawSomething" but nothing happend. How do I fix it? Is something wrong? | |
My operators are pretty much working well, but the problem is every time I do an operation (example: 1+2 = 3) and then tried clicking another number the number that I clicked adds up with the result (so this is what happens, the result is 3, then I click 7 … | |
i 've declared a string str, and initialize str with a value as IT s1s2 26, i.e [CODE] String str; str="IT s1s2 26"; [/CODE] normally it prints like this as usual [B]IT s1s2 26[/B] what i want is that :i want the str value to be at the str itself … | |
[CODE] typedef struct bunny_info{ /* MORE MEMBERS HERE */ struct bunny_info *nextBunny; }bunny; bunny *make_bunny(){ bunny *bunnyPtr; /* SOME CODE HERE */ return bunnyPtr; } bunny *makebunny(bunny *bunnyList, short int makeCount){ bunny *newBunny = NULL, *endPtr = bunnyList; while(makeCount > 0){ if(bunnyList != NULL){ bunny *temp = bunnyList; while(temp->nextBunny != … | |
Okay the text on my input file is Wxmv_bpm_xwl_jig_lwwza,_PIT._Q'u_awzzg,_Lidm._Q'u_inziql_Q_kiv'b_lw_bpib. Here's My code but for some reason I can't get my program to convert the message to my output.txt file. Can someone please help thanks [CODE] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main() { string str; int … | |
i have a main form that has a button, when click a subform1 will open. in subform1 theres another button that will open subform2 in main form..i have this code in subform1. [CODE] { profilefrm prf = null; foreach (Form existingForm in this.MdiChildren) { prf = existingForm as profilefrm; if … | |
Hello everybody. Do you know how to translate URLs in a text automatically?? I mean I want it just like the option below the page of creating a new thread in this website.. That option makes the written URLs in the thread appear as clickable links. Thanks in advance. ![]() | |
Hey there, How can I create a Java application that runs when the PC is first started, a user login through the application which will allow the user to use the system. This is something like those cyber cafe applications. I don't know if it's possible in Java, but I … ![]() | |
Hello all! :) Do you have any link on some complete reference on multidimensional array in php?? Please tell me.. thanks a lot. | |
hi all, Im after a little help here. I have a md array stored as text in mysql. what i need to do is get it out (which ive done), then store it as a real array so i can loop through it to output as a csv file (which … | |
hi When I try to load a new video this message appears Sometimes this message appears and sometimes does not show [CODE]Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 403 <?xml version='1.0' encoding='UTF-8'?><errors><error><domain>yt:quota</domain><code>too_many_recent_calls</code></error></errors>' in /home/******/public_html/Zend/Gdata/App.php:709 Stack trace: #0 /home/******/public_html/Zend/Gdata.php(221): Zend_Gdata_App->performHttpRequest('GET', 'http://gdata.yo...', Array, NULL, NULL, NULL) #1 … | |
Hello everybody. I've created a PHP page that adds a new record to a table. I want to know what's the ID of that created record in that table. For example: [CODE]mysql_query("insert into tableName(field_A,field_B) values('valueA','valueB')");[/CODE] | |
Hello, I am damned confused about the versions of PHPs , which version include Object oriented PHP ? and which PHP is better to learn ?? please explain | |
can someone help me how to transfer files from one server to another server using curl?? please help me, i really need your help |
The End.