Jump to content
Larry Ullman's Book Forums

hfcnew

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About hfcnew

  • Rank
    Newbie
  1. I'm actually on p.350. It said something about testing connection username and password by using them in the MySQL client, which I thought was a reference to p. 438. Anyhow, this is my code for mysqli_connect.php: But when I bring up its page, I get the following: As far as installing MySQL, I've just installed XAMPP on Windows 7 Professional. I thought XAMPP already has MySQL. Or have I misunderstood something?
  2. That part isn't clear to me. I thought this was where I was setting up the password. If there's already a password, where do I go to find out what it is?
  3. I'm currently at step 5 on p.440. I got the "Enter password" prompt, but when I entered a password, I got the following response: It was really weird the way it was cut off like that. But try as I might, I could only expand the command prompt window vertically, not horizontally. So I'm not 100% sure what the messages are. So I tried using "yes" as a password and got this response: What am I doing wrong?
  4. I'm currently at #12 on p. 208. It mentions "the concise.min.css and masthead.css scripts, available as part of the book's downloadable code". Did I miss something? The wording implies that these css scripts have already been done, but unless I missed something, it's the first I've heard of them. Is there somewhere like a website that I go to just download them or something?
  5. Hello again. When I tried out the scripts demonstrating transforming strings and arrays, this is what I got: Here's my code for list.html: and for list.php: What am I doing wrong?
  6. Dang it! I've already hit yet another snag! This is my current code for the Product Cost Calculator ("handle_calc.php" p.84&85): This the result when I run the calculator ("calculator.html"): I'm looking, but I don't know why that last figure ("16.70") is not appearing.
  7. Thanks! That worked! I admit I didn't know that I actually had to add "http://" to the URL first. I thought it was already there even if I didn't literally see it in the address bar. BUT even after I did add "http://" it still didn't work. Only after I tried Quinn's suggestion did it work. Is there a reason why I and Quinn have to do something like this but others don't? Are we using versions of certain software that's too old or something?
  8. I SWEAR I entered the code for lines 14-17 exactly as in the book: $title = $_POST['title']; $name = $_POST['name']; $response = $_POST['response']; $comments = $_POST['comments']; But the page I got was: Notice: Undefined index: title in C:\xampp\htdocs\tutorialspoint\handle_form.php on line 14 Notice: Undefined index: name in C:\xampp\htdocs\tutorialspoint\handle_form.php on line 15 Notice: Undefined index: response in C:\xampp\htdocs\tutorialspoint\handle_form.php on line 16 Notice: Undefined index: comments in C:\xampp\htdocs\tutorialspoint\handle_form.php on line 17 Thank you, , for your comments. You stated that you found this example to be '' and added: So I tried a suggestion I found online and altered the code like so: $title = isset($_POST['title']) ?$_POST['title'] : 0 ; $name = isset($_POST['name']) ? $_POST['name'] : '' ; $response = isset($_POST['response']) ? $_POST['response'] : '' ; $comments = isset($_POST['comments']) ? $_POST['comments'] : '' ; The page I got was the following: Thank you, 0 , for your comments. You stated that you found this example to be '' and added: Why isn't it working? P.S. Is there a way to attach files to posts as with emails? I've got screenshots of what I did.
  9. Yeah, that's what I decided to do. No problems so far that I can tell.
  10. Hello all. First time user here. I don't think anyone's asked this yet, but my apologies if there's already a thread about this that I've missed. I recently purchased a copy of this book ("PHP for the Web: Visual QuickStart Guide, 5th Edition" of course) and followed one of its recommendations: to go to www.apachefriends.org to download XAMPP. I went to that site, followed alll the links, followed its installation wizard, but every time I've tried to install XAMPP (the Windows 7.1.7 version. My OS is Windows 7 Professional) the wizard keeps giving me this pop-up: How can I fix this? Or can I just ignore this? I've asked this question in the Apache Friends Support Forum about a week ago, but no one's responded yet. I'm hoping Mr. Ullman or someone can help me with this.
×
×
  • Create New...