Jump to content
Larry Ullman's Book Forums

Edward

Members
  • Posts

    1115
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by Edward

  1. Facebook Noooooooo! What would be the fun in jumping in at the deep end? I very much doubt we would even get much say in how things would be developed. I personally think designing something new would be far more interesting. I don't see the point in Facebook I neither have an account there or even on Twitter. All these issues with high traffic are solved by all the top ranking sites.
  2. I have setup my own web site after finishing chapter 9. I want to practice with the php and mysql in action, I have modified the template from the book, tomorrow I need to make some custom CSS for forms and layouts. I did get a wooden background texture into the web site and it definitely added warmth.
  3. Cool to see you back answering posts and helping people once again.
  4. Thanks for your input, possibly somebody else may have some recommendation? I have been using off the ones from this website http://www.grsites.com/archive/textures/
  5. Does anyone have any recommendations for places to get background textures for websites, i am looking for a stone or wooden background, in the highest detail?
  6. Never heard of this place before but i will definitely check it out, i have used www.w3schools.com to learn some coding stuff from, but this web site looks so to be better. Thanks for passing on useful information, we need more people with your spirit here.
  7. I was just checking Mark Zuckerberg's birthday today and funnily its today May 14th, he's now 28. http://en.wikipedia.org/wiki/Mark_Zuckerberg So that makes the big chap a Bull as he is a Taurus. Happy Birthday Mark.
  8. Back 15 years ago, the most technical thing i used was DirectX libraries to setup the screen modes and stuff. I have done my fair share of programming in C with DOS 320 x 200, 640 x 480 linear memory screen modes. I know we need to learn Object Orientated Programming fully at one time, but check this book out http://www.amazon.com/Beginning-C-Through-Game-Programming/dp/1435457420/ref=sr_1_1?ie=UTF8&qid=1337008447&sr=8-1. That's definitely a cool way to be learning it.
  9. I should of been more patient the line breaks were explained a little further up the book, well don't worry Ebay love to omit the line breaks and don't have any problems doing it.
  10. Let me add something else to this, it would be best to take the personal details for registration first of all then have a user based log in system. Where by when a user was logged into the website they could add subjects they tutor within their user account.
  11. I had a look at that website, i wasn't really impressed by the registration process, it has its way of over complicating matters with clustered data which is reflecting in your code. On the registration form there are three criteria Subjects, Classes and Experience level, these all need to be split up into separate parts. I would suggest you redesign this form so that each new member is asked what subject they can tutor, then ask them for the level of experience which they can teach it at (MBA for example). There may be someone that can teach perhaps 10 subjects so limiting them to 3 or 4 on the the first form would be wrong. Once a member has entered one subject which they can teach ask them if they have another subject they can tutor for, this way populating the database dynamically. In my opinion they have a sloppy form, it would be best for you to redesign the whole registration process and you will have a better functioning website. Don't always copy what you see online because even though they have a web site online it doesn't mean its standard practice.
  12. About 16 years ago i coded my own games in C. Is C++ language to be learning for this stuff kind of stuff today or something like Java? What is C# is that different to C++? Ive been out of this so long i have no idea whats going on with it anymore? Sometimes i get a little tired of HTML and this PHP stuff so i thought it would be nice to do a bit of that for fun.
  13. If you could take a look at the 4th edition of PHP and MySQL for Dynamic Web Sites Pg.177 there is a messages table there which is constituting of message_id and parent_id. Well the structure of a category table would be a replicate of this and would only require basic SQL queries to draw out subcategories etc. I also don't quite understand why you have three form pages. Why don't you just make this a one page php script and use the $_POST, $_SESSION arrays to pass the information into it at the top of the PHP script before it actually renders the semantic HTML. You could look at this like a category-view.php PHP script. And there is pretty much no difference between a sticky form and a Selected form element. Do you have other website examples of what you are trying to do, in the case here that we are missing the exact point of what it is exactly that you are trying to accomplish.
  14. For me it depends which ever forum comes up when i search Google for the problems in which i have. Yes like Larry mentioned StackOverflow comes up on most searches. But being a member wise, i am a member here and the YiiFramework forum.
  15. I feel very guilty and sinful about this post, looking back at it now. Come on, surely someone here must have a better way of remember Foreign Key's. Someone please better this... AC someone?
  16. I just tried this, i copied the ch09 folder into my the htdocs folder. The mysqli_connect.php script was already in the same location as register.php which calls for the script. I changed the require ('../mysqli_connect.php') to require ('mysqli_connect.php') like you did and it worked fine. So if you are using 2nd case, require ('mysqli_connect.php'), the mysqli_connect.php script must be in the same folder as register.php, otherwise put it below the folder, that would be the htdocs. I tried once before putting mysql connection folders below the htdocs root folder and i get the same errors you are receiving now.
  17. One thing i forget to add, it would be a good idea to turn on display error's in your php.ini files on the server or ask your host to switch it on for you while you need to test your code. That way for yourself and for others here we would receive an error message and know which line of the script that the problem was present.
  18. Yes: if($gender = = 'M') { echo '<p><b>Good day, Sir!</b> </p>'; } elseif ($gender = = 'F'){ echo'<p><b> Good day, Madam! </b></p>'; needs to be changed to: if($gender == 'M') { echo '<p><b>Good day, Sir!</b> </p>'; } elseif ($gender == 'F'){ echo'<p><b> Good day, Madam! </b></p>'; So rather than having "= =" just remove the space from the middle so they become "==". If you want the code to be colored like in my examples then you need to click the angles brackets icon <> in the window where you type your message text. The angle brackets is after image symbol and before the speech bubble.
  19. As i said in my profile my days are over for investigating mysterious mansions and killing zombies and various other monsters. I have now retired and would like to spend the rest of my life with PHP, MySQL and Javascript to build dynamic websites. The only ever detective work i want to do now is investigating bugs in my code or others that need help here that i can assist. With Best Regards, Edward Carnby.
  20. Okay i found another error, other than changing Comments to comments for the text area name, you have a double quote missing from the handle_form.php echo statement. Correct code for handle_form.php is: <!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" xml:lang="en"lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> Feedback Form</title> </head> <body> <?php $name = $_REQUEST['name']; $email = $_REQUEST['email']; $comments = $_REQUEST['comments']; /* Not Used: $_REQUEST['age'] $_REQUEST['gender'] $_REQUEST['submit'] */ //Print the submitted information: [b][color=#008000]echo "<p>Thank You, <b>$name</b>, for the following comments:<br /> <tt>$comments</tt></p> <p> we will reply to you at <i>$email</i>.</p>\n";[/color][/b] ?> </body> </html>
  21. What kind of server are you running this on? Are you running this live or on your localhost. Here is some info on the error: HTTP Error 500 Internal server error Introduction The Web server (running the Web Site) encountered an unexpected condition that prevented it from fulfilling the request by the client (e.g. your Web browser or our CheckUpDown robot) for access to the requested URL. This is a 'catch-all' error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse these logs. 500 errors in the HTTP cycle Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle when it communicates with the Web server: Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs). Open an IP socket connection to that IP address. Write an HTTP data stream through that socket. Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information. This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500'. (Last updated: March 2012). Fixing 500 errors - general This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.
  22. Try this: <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="author" content="Susan C. Stilwell, Sue's Special Imagery"/> <meta name="copyright" content="Susan C. Stilwell, Sue's Special Imagery"/> <meta name="keywords" content="art, graphics, photography, logos, business cards, imagery, letterhead, web, web design, artist, visual, design, video"/> <link rel="stylesheet"type="text/css" href="styles.css"/> <title>Hello, World!</title> </head> <body> <p>The following was created by PHP: <br /> <?php /* * Filename: hello3.php * Book referance: Script 1.5 * Create by: Susan Stilwell */ //print "<span style=\"font-weight:bold;\">Hello, world!</span>\n"; ?> <!-- This is an HTML comment. --> </p> </body> </html> The problem is lying on line 17, you see in the book line 17 has two lines, one numbered 17 and the other below line is blank. These two lines are line 17. //print "<span style=\"font-weight: bold;\">Hello, world!</span>\n"; All of this statement needs to be on one single line: //print "<span style=\"font-weight:bold;\">Hello, world!</span>\n"; For comments starting with // all the commented out text must proceed the // on the same line.
×
×
  • Create New...