Posts
 
Reputation
Joined
Last Seen
Ranked #923
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
32% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
2 Commented Posts
0 Endorsements
~14.0K People Reached
Favorite Tags
Member Avatar for vivosmith

I input the previous inputted values via php variables into the value section of the input tag, but when I go to modify it and update it to the database, the value still stays the same. Is there anyways to combine the two , so that for instance when a …

Member Avatar for vivosmith
0
1K
Member Avatar for vivosmith

Hi, I tried to get this code to work, and the gist is I am trying to allow the user to edit their inputs by allowsing them to edit past submissions. But even after I put "<?php echo ?>" tags in there, it still does not work. It worked perfectly …

Member Avatar for vivosmith
0
355
Member Avatar for vivosmith

I inserted into user_name and user_password the values zach and sha1('zach'). I then tried to retrieve it with SELECT * FROM user_data WHERE user_name='zach' && user_password=SHA1('zach'); But it shows zero results. When I insert it it shows, but I can't retrieve it. Any ideas?

Member Avatar for vivosmith
0
147
Member Avatar for vivosmith

<html> <head> <title>Zachs Page</title> </head> <body> <form enctype="multipart/form-data" action="upload_image.php" method="post"> <input type="hidden" name="MAX_SIZE" size="524288"> <p> File:<input type="file" name="upload"/></p> <input type="submit" name="submit" value="submit"/> <input type="hidden" name="submitted" value="TRUE"/> </form> <?php if(isset($_POST['submitted'])) { if(isset($_FILES['upload'])) { $allowed= array('image/pjpeg', 'image/jpeg', 'image/jpeg', 'image/JPG', 'image/X-PNG', 'image/PNG', 'image/png', 'image/x-png'); if(in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "/MyFiles/{$_FILES['upload']['name'] }")) { echo "The …

Member Avatar for diafol
0
1K
Member Avatar for vivosmith

Would it be inserting this as a type? 'application/x_bittorrent' or is there more to it to allow torrent uploads?

Member Avatar for AleMonteiro
0
168
Member Avatar for vivosmith

<?php if (isset($_POST['submited'])) { if (isset($_FILES['upload'])) { $allowed=array('image/JPEG','application/x-bittorrrent'); if (in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "../upload/$_FILES['upload']['tmp_name']")) { echo'Your file has been successfully uploaded!'; } else { echo'Please upload a torrent file!'; } } } if ($_FILES['upload']['error']>0){echo 'An error has occured.';} if (file_exists ($_FILES['upload']['tmp_name']) && is_file( $_FILES['upload']['tmp_name'] ) ){ unlink ($_FILES['upload']['tmp_name'] ); } …

Member Avatar for vivosmith
0
2K
Member Avatar for vivosmith

While it is not showing any errors that I can see, my input from an HTML form is not working. I copied part of the script from Visual QuickPro Guide book on PHP 6 and MYSQL 5. I only had one input , so I modified the script for my …

Member Avatar for vivosmith
0
346
Member Avatar for vivosmith

Hello, I have been trying to move this box, but so far all common ways of moving the javascript box (whitespaces, CSS) have not worked. I have tried searching the web, amongst other things, and so far nothing has worked. Here is the code: <html> <head> <title></title> <style type="text/css"> #AgodaSearchBox{ …

Member Avatar for mattster
0
250
Member Avatar for vivosmith

I tired installing this code on alpenami.michiganhotelsguide.com , but to no avail. The company said that I needed to message them in order to activate tracking. I sent them it, and it is still not working, at which point I assumed it was a problem with the code. Any thoughts? …

Member Avatar for vivosmith
0
309
Member Avatar for vivosmith

import java.awt.Point; import javax.swing.*; import java.awt.Graphics; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import javax.swing.JPanel; public class painttest extends JPanel { private int pointCount = 0; private Point[] points = new Point[1000]; public painttest(){ addMouseMotionListener(new MouseMotionAdapter() {public void MouseDragged(MouseEvent event){ if(pointCount<points.length) {points[ pointCount ] = event.getPoint(); // find point ++pointCount; // increment number …

Member Avatar for mKorbel
0
363
Member Avatar for vivosmith

Hey, I am interested in both finance and in programming. Both require I take statistics and college algebra. Right now, I am in college algebra, and sucking royally at it. My question is, considering I suck at algebra (but I am alright with basic arithmetic), which degree would be better …

Member Avatar for mmcdonald
0
282
Member Avatar for vivosmith

import java.awt.Color; import java.awt.event.ItemListener; import java.awt.event.ItemEvent; import javax.swing.*; public class framed implements ItemListener { JToggleButton jtButton; public JPanel createAndShowNewPane() { JPanel GUI= new JPanel(); GUI.setLayout(null); JPanel buttonPane= new JPanel(); buttonPane.setLayout(null); buttonPane.setSize(200,300); buttonPane.setLocation(0,0); GUI.add(buttonPane); jtButton= new JToggleButton("On"); jtButton.setSize(90,50); jtButton.setLocation(100,0); jtButton.addItemListener(this); buttonPane.add(jtButton); return GUI; } public static void window(){ JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame= …

Member Avatar for vivosmith
0
317
Member Avatar for vivosmith

Hey there, I am getting used to Java, but here is something that is stumping me: // Fig. 3.10: GradeBook.java // GradeBook class with a constructor to initialize the course name. public class GradeBook { private String courseName; // course name for this GradeBook // constructor initializes courseName with String …

Member Avatar for stultuske
0
236
Member Avatar for vivosmith

My URL is: http://www.mildaspergers.com/sitemap.txt and for robots: http://www.mildaspergers.com/robots.txt Hello, When I started, I only submitted one site to Google (which went fine). Then I tried adding more pages, and it would not go through. I have added a phpbb script, tried editing it, to no avail. I tired messing around …

Member Avatar for LastMitch
0
232
Member Avatar for vivosmith

Hello, I have a forum up an running at [mildaspergers.com](http://mildaspergers.com/phpbb3/index.php?sid=5fc84bc92d43cf37136682874ae1a45c), and everything is doing well, except for one thing. Myboard index button is redirecting to a photo. What should I edit in order for this to work properly?

Member Avatar for vivosmith
0
244
Member Avatar for vivosmith

Hello, I have started learning php and mysql recently, and I have run into problems. I received this code: * Parse error: syntax error, unexpected 'average_user' (T_STRING)* and the problem is that I granted SELECT to average_user in the databse, but it is coming up with an error. What is …

Member Avatar for vivosmith
0
377
Member Avatar for vivosmith

Hello, I was working on some code, when I ran into this: foreach ($products as $product). One problem, it was not defined. How could this be? Here is the book I got it from: http://english-common.googlecode.com/svn-history/r100/trunk/huyliem/01-Murach.PHP.MySQL/Murach.PHP.and.MySQL.Nov.2010.pdf . It is on 161-163. I don't understand where the $product came from. And one …

Member Avatar for vivosmith
0
251
Member Avatar for vivosmith

Hi, I am trying to figure out allegro, and so far, so good. But I ran into this one snag in this code [CODE]const float FPS = 60;[/CODE] Does this set FPS? Someone on another forum said no, but it seems like that it is a predefined function that changes …

0
151
Member Avatar for vivosmith

Hi, I am trying to figure out allegro, and so far, so good. But I ran into this one snag in this code: [CODE]const float FPS = 60;[/CODE]Does this set FPS? Someone on another forum said no, but it seems like that it is a predefined function that changes the …

0
118
Member Avatar for vivosmith

Hello, I am trying to use the allegro game library (5.05) and I came across an error. It involved not being able to find -lgcc_eh so I switched it to static-lgcc_eh and it worked fine, that is until I got an error for not finding allegro-5.0.5-mt.dll . I looked in …

Member Avatar for N1GHTS
0
233
Member Avatar for vivosmith

Hello I have been using c for dummies along with bloodshed software for a day or so and I tried putting this snippet of code in from the book and I got a syntax error:[CODE]#include <stdio.h> int main() { char name[20]; char color[20]; printf(“What is your name?”); scanf(“%s”,name); printf(“What is …

Member Avatar for Narue
0
289
Member Avatar for jake1496

I think the Call of Duty 4 is the best one. I also like the boxing game of<URL SNIPPED> nintendo Wii. Because I drip sweat and get away from the big pressure in the life. It was such a great experience when you get refresh in the game. So many …

Member Avatar for davidlouis88
-8
857
Member Avatar for Cup of Squirrel

Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks :D

Member Avatar for mslade
1
2K
Member Avatar for vivosmith

Hi I found this example on about.com . I understand most of this, but one part is giving me problems in genral. I tried classes before, and it did not go over so well. But since this is someone else code, it might be better than mine :). Thanks [CODE] …

Member Avatar for Fbody
0
99
Member Avatar for vivosmith

[code=C++]#include (iostream.hpp) class Stocks { public: Stocks( int price); ~Stocks(); int get_price() const {return pps;} int set_price() const {pps;} int the_price_is (int pps); int pps; } int main() { Stocks AMX (35) cout << " Hello, please enter a symbol.\n"; if cin>> AMX; cin.ignore; cin.get; AMX.the_price_is cout<<" 35.\n"; return 0; …

Member Avatar for Fbody
0
113
Member Avatar for hosamath
Member Avatar for replicajewelry
0
483
Member Avatar for vivosmith

Hello I am glad to find this site. I have been searching for help with learning C++, to no avil. So my question, which is multi-fold: I have a book from 10 years back or so, ansi compliant, should it work with dev-cpp. Second, I learned the difference between char …

Member Avatar for vivosmith
0
563
Member Avatar for William Hemsworth

[URL="http://www.cleverbot.com/"]http://www.cleverbot.com/[/URL] Here's a fun and interesting site I found, I'm curious to know how exactly it 'learns' from the user. This is how my chat went :D[QUOTE]User: How are you? Cleverbot: Quite good, thank you. How are you? User: I am terrible. Cleverbot: Why is that? User: Because you hate …

Member Avatar for vivosmith
2
420