Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for sdr001

I am trying to add an username and password into a database using JSON. I cannot get it to work, any ideas? Thank you. <?php mysql_connect("localhost","sdr001","************"); mysql_select_db("tristate"); $userID = $_POST['userID']; $password = $_POST['password']; $q=mysql_query("INSERT INTO users VALUES(>'".$_REQUEST['userID']."'"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encode($output)); mysql_close(); ?>

Member Avatar for pritaeas
0
98
Member Avatar for sdr001

Hello, I start to record with this line: Intent intent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); startActivityForResult(intent, RQS_RECORDING); I would like specify where this file gets saved, and the files name. Is there a way to do this? Thank you

0
71
Member Avatar for sdr001

Hello, I use the code below to get the long lat of the location where the user clicked on a Google Map (in Android). Projection p = map.getProjection(); geoPoint = p.fromPixels((int) e.getX(), (int) e.getY()); It gives me coordinates, however it does not place a decimal in the geoPoint. Any suggestions …

Member Avatar for NormR1
0
119
Member Avatar for sdr001

Hello, I am developing an Andorid application and I am having troubles with a line of code. I am getting x and y coordinates that have been stored as strings then I try to convert them to integers with x = (int) Long.parseLong(loc1); (x is an int). I have tried …

Member Avatar for JamesCherrill
0
528
Member Avatar for sdr001

Hey everyone, I am having some trouble parsing a string in java. I get a string from a databse, then I want to put it into a String Array to access two elements in the array (x and y positions). I think my problem is when I try to split …

Member Avatar for NormR1
0
215
Member Avatar for sdr001

Hello, I am almost done with writing the program below. My problem is when I go to get the next line in the file, the first line works great. I am writing it in autoit and I heard it is similar to Basic so hopefully someone could help. I am …

0
86
Member Avatar for sdr001

Does anyone know why I am getting an error on this line of code below? Thanks for you help in advance. [CODE] vector < vector < htNode<B> > > table; [/CODE]

Member Avatar for sdr001
0
186
Member Avatar for sdr001

Hello, I am having a problem when I am trying to create a new node. The problem is on line: [CODE] tnode->lc= new cttNode; [/CODE] Here is the template the problem resides in: [CODE] template <class B> int ctt<B> :: insertIfNew(const string &key, const B &index) { cttNode<B> *tnode= root; …

Member Avatar for daviddoria
0
159
Member Avatar for sdr001

Hello my problem is that I am not for sure my vector < vector < string > > addresses; is correct. What I am looking for is to read in from a file which looks like: name:dfsd@msn.com name:dfsd@msn.com name:dfsd@msn.com Once my code parses through the file, addresses should look like: …

Member Avatar for sdr001
0
178
Member Avatar for sdr001

Note: vector < vector < string > > addresses; I am having a problem with this line of code: addresses.push_back(addy.c_str); I am trying to push back an email address in the i location of the 2-d vector. I have tried: addresses.push_back[(addy.c_str)]; and addresses.push_back[i][(addy.c_str)]; but nothing is working >:/ I appreciate …

Member Avatar for sdr001
0
159
Member Avatar for sdr001

Hello, I am getting a segmentation fault in my program and do not know why. It occurs when the program reaches: [CODE]for(i=0; i < values.size();i++) items[i].value += values[i];[/CODE] Values have integers inside of it (7,77,2,3). Items is a vector<knapSackStuff> items; and my knapSackStuff look like: [CODE] struct knapSackStuff { int …

Member Avatar for template<>
0
88
Member Avatar for sdr001

I am trying to make a binary tree. I have a node with a field for data, yes and no. The problem I am having is that I need the yes and the no to point to a different node but I do not believe it is doing that. In …

Member Avatar for rubberman
0
96
Member Avatar for sdr001

Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my …

Member Avatar for sdr001
0
113
Member Avatar for sdr001

Hello. I am trying to figure out why my program has an infinite loop :/ The program asks a user how many digits they want their numbers to be and then the program needs to print out all binary numbers for the user inputted digits. For example: User inputs 3 …

Member Avatar for sdr001
0
106
Member Avatar for sdr001

I am trying to run html code inside of a cgi script. Everything works expect for the line of code below. It says I have a syntax error and I do not know why this is. [CODE] << "<input class = 'btn' name = 'calculate' type = 'button' VALUE='Shortest Path' …

Member Avatar for Fbody
0
163
Member Avatar for sdr001

Hello, I am trying to save elements into a file and it is not working. If the file is there, the new elements need to override everything in the file, pretty much clear it out and write to the file. If the file is not there, it just writes the …

Member Avatar for sdr001
0
215
Member Avatar for sdr001

Hello, I am having a problem with reading input from my web app. The data is being sent by JavaScript and I am using getline() to get the data. My problem is when I run it, I get an infinite loop. I do not know why this is happening. A …

Member Avatar for sdr001
0
109
Member Avatar for sdr001

This is the line of code that I am getting an error with. [CODE]mtx[cIndex(bitNum)] & = ~(1 << bIndex(bitNum));[/CODE] The error code is: expected primary-expression before â=â token I think I am missing some '(' and ')''s. Thanks!

Member Avatar for sdr001
0
105
Member Avatar for sdr001

Hi I need to read a xml file once placed in a directory and write it to another file to retrieve the contents in the file. This needs to be done automatically. I know c++ and how to read,write, and open files with c++. Can this be done using c++ …

Member Avatar for fpmurphy
0
69