Jump to content
Larry Ullman's Book Forums

Leaderboard

Popular Content

Showing content with the highest reputation since 01/19/20 in all areas

  1. Ah, no, you can't do that. You'll need to use PHP to break the multiple selections into their single counterparts and insert each one separately.
    1 point
  2. Thanks for the question! I'm not terribly worried about this. Microsoft said they're not going to provide builds of PHP for Windows anymore. Certainly someone else will pick up the torch. Also, to me, this is more of an issue for people learning or developing on Windows. I don't have hard numbers but I assume the vast majority of servers using PHP are running Linux.
    1 point
  3. Yes, both versions are comparable with respect to validating the gender. To use the NULL coalescing operator in Script 2.4, you'd probably just write it like your version of Script 2.3 (note that you don't need the $gender = NULL in there though).
    1 point
  4. I wouldn't say that line is necessary. The $gender variable is already assigned a value before being used so assigning it a "false" value has no impact.
    1 point
  5. Thanks for the interest in more books! Much appreciated! The "PHP Advanced" book would be the logical one after "PHP & MySQL". Or the e-commerce book that Necuima recommended.
    1 point
  6. Re reading a PDF - you could have a look at: https://www.pdfparser.org/ but I have not used it. Cheers
    1 point
  7. Hi Jai, Mr Ullman has a great book on e-commerce - "Effortless E-Commerce" - 2nd edition with PHP and MySQL. Cheers
    1 point
  8. Ok, the following is how I send emails from PHP. Uses PHPMailer. In XAMPP you need to tell it where your normal email connection is. $host = substr($_SERVER['HTTP_HOST'], 0, 5); if (in_array($host, array('127.0', '192.1', 'local'))) { $local = TRUE; // echo "Local is true, HOST is $host"; } else { $local = FALSE; // echo "Local is false, HOST is $host"; } if ($local) { // tests for using XAMPP locally ini_set('sendmail_from', 'your email address'); // needed for Win 10 localhost (Development) ini_set('SMTP', 'your email service SMTP server'); // needed for Win
    1 point
  9. Hey Jan, Thanks for the question and for the nice words! There's really no "X hours" that apply here, as every person is different. But the "how" is really very simple and reliable across the board: 1. Find a resource to learn from (e.g., my books!). 2. Take notes as you read. 3. Try. Try. Try. It's a known thing about the mind that you'll learn better if you take notes, even if you don't ever refer to them. Not just highlight, but actually write down key thoughts somewhere. And if you refer to them later, all the better. But, no matter how much you read--either in time or n
    1 point
×
×
  • Create New...