Jump to content
Larry Ullman's Book Forums

nobra

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by nobra

  1. Thanks! Just one more questions regarding this script...header.html includes line: require('../mysqli_connect.php'); I presume this line will point to the mysqli_connect.php file, that is, per your safety recommendations, located outside web directory. if header.html file is located on my PC in C:/xampp/htdocs/includes folder, and htdocs is my web directory, mysqli_connect.php file should be located in xampp folder (two levels up from includes folder)? Do I need to change script line from ../mysqli_connect.php to ../../mysqli_connect.php? Appreciate your help very much!
  2. Hi, I am trying to figure out problem with header.html (Script 17.1). When i run the script, instead of links like Home, Forum Home, New Thread....i see ' . $words['home'] . ' '. $words['forum_home'] .' ..etc. My first impression was i typed something wrong. I replaced my file with file code download from the forum site but the problem is still present. I appreciate any help! Thanks!
  3. First, thanks to the author for the great book. I have some limited coding experience (FORTRAN) and would like to learn PHP. Could someone point me to the right direction to understand how php file is executed? Example: Script 13.5 (Logging In). How is possible to check for the email and password (code lines 12-14) when the form to enter that information is defined after it (lines 53-56)? I expected it to be opposite. First to create form (user can enter username/pass) and after that to check if it matches the admin info. I struggle to understand "check if the form has been submitted" meaning. If it was not submitted, how is possible to check it again after user enters username/pass (lines 53-56). Appreciate any help!
×
×
  • Create New...