Jump to content

maxiscool1994

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.maxnorman.net

Profile Information

  • Gender
    Not Telling

maxiscool1994's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I just found this awesome resource: http://www.oreillyschool.com/courses/ This is oreilly's online school, where you take online courses, that aren't too expensive, on all different kinds of programming! My dad has agreed that I can do a few of these courses, and I am asking if anyone here recommends a specific programming language. Does anyone have any input? I think that by the time I will take the course, I should be at least a bit proficient in PHP/MySQL...
  2. Would you recommend getting Sam's after I finish this book, or get it now and forget about the one I am using?
  3. Helraizer, please realize that I am doing this as an example out of a book, so as long as I can work through it, its good.... Does anyone have any good books on learning PHP/MySQL they'd recommend?
  4. Wow...I'm freaking retarded...There used to be a ton of jokes in there...what happened to them?
  5. @Neon: That code didn't change anything. It still doesn't display any jokes... @wsantos: Here is the result for the first query: The second...:
  6. My website might only get a few users per day. I might end up hosting a really small businesses site there too...Mostly, I want to do this as a learning experience on how servers work etc. How did you make your computers servers? What linux distro?
  7. I have been, and none of the stuff works... Here are the structures: Joke: Author:
  8. Yes, I have, as it told me to do in the book. It is moving on into relational database design, and it said that it is easy to display info from more than one table with a join...This book seems to be pointing me in a bad direction. None of the code works...I think I will drop by the book store and pick up Sam's or something...
  9. That is another page... It seems that this book is contradictory to a lot of things people on this forum are saying. None of the stuff in it works..
  10. I've got a new issue: I am trying again to connect to my jokes database, this time with a few added things: an author name and e-mail address. The PHP is connecting to my database, but none of my jokes are showing up... Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Our List of Jokes</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <head> <body> <?php // Connect to the database server $dbcnx = @mysql_connect('localhost', 'root', 'new password'); if (!$dbcnx) { exit('<p>Unable to connect to the ' . 'database server at this time.</p>'); } // Select the jokes database if (!@mysql_select_db('ijdb')) { exit('<p>Unable to locate the joke ' . 'database at this time.</p>'); } ?> <p>Here are all the jokes in our database:</p> <blockquote> <?php $jokelist = @mysql_query( 'SELECT joketext, name, email FROM joke, author WHERE authorid=author.id'); if (!$jokelist) { exit('<p>Error performing query: ' . mysql_error() . '</p>'); } while ($joke = mysql_fetch_array($jokelist)) { $joketext = $joke['joketext']; $name = $joke['name']; $email = $joke['email']; // Display the joke with author information echo "<p>$joketext<br />" . "(by <a href='mailto:$email'>$name</a>)</p>"; } ?> </blockquote> </body> </html>
  11. Thanks so much! I will continue to work through this book, and I will report back here when I am done. Hopefully I will have some more knowledge... You have been most helpful!
  12. ok. But what should I do about this entire mess that we just went through? It doesn't work!
  13. OK...do you have any idea on where I should start?
  14. This is the first example in the book... The thing is, all of what you are saying isn't sinking in that much. Should I just bear through this project and do it again to understand it, or should I find a better book?
  15. That works, except that there is an error when I try to submit a joke. Should I just dump this book and use the one that you recommended?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.