Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Everything posted by kam

  1. Good Morning Larry. After user registers successfully, The email for registration confirmation I want include a link to an activation page site. at Page 90 Now I have activate page and code column set to NULL value so to complete the activation process it looks I am missing some php script which I want some help from you. I hope you understand, English is my second language Thanks
  2. Thank you very much Larry. Finally it's working. One more thing to ask: is there any other instructions for activating accounts when user registers? Thanks
  3. Good Morning. I am using Zend framework accessing the login page: $adapter = new Zend_Auth_Adapter_DbTable($dbRead, 'users', 'username', 'password', 'sha1(?)'); also I tested in dreamweaver log in user server behavior: if (isset($_POST['password'])) {$_POST['password'] = sha1($_POST['password']); } The thing is both logins fails. I think since the password stored as binary it cannot be dycrypted. is there anyway we can store the password SHA1 or MD5 directly in the database instead hash_hmac() Thanks
  4. thanks. The password hash stored as CHAR 40 in the database. and stored as something like ?c?~]?
  5. I want use SHA1 to hash the password instead hash_hmac() function and used the syntax in page 79 return mysqli_real_escape_string($dbc, sha1($password, true)); but it looks still the database storing hash_hmac() instead of sha1. please help.
  6. I know. All I am trying is after registration successfully to redirect the users to another page but I may not doing the right way. so is there a way to fix it ? Thanks
  7. Thanks again. I added the redirect page after $r = mysqli_query ($dbc, $q); if (mysqli_affected_rows($dbc) == 1) { // If it ran OK. header('Location: http://www.citidesigners.com'); and I am getting this error. An error occurred in script '/home3/citide/public_html/reg.php' on line 115: Cannot modify header information - headers already sent by (output started at /home3/citide/public_html/reg.php:7) Array ( [0] => Array ( [function] => my_error_handler [args] => Array (
  8. Please little help if we want to redirect the visitors to different pages after successfully registred. Thanks.
  9. I added echo mysqli_error($dbc); after trigger_error('You could not be registered due to a system error. We apologize for any inconvenience.'); and it's working now. Thanks for the help.
  10. <pre class="prettyprint"> I added </pre> <pre class="prettyprint"> <span class="pln"><font color="#000000">echo mysqli_error</font></span><span class="pun"><font color="#666600">(</font></span><span class="pln"><font color="#000000">$dbc</font></span><span class="pun"><font color="#666600">);</font></span></pre> <p><span class="pun"><font color="#666600">after </font></span></p> <pre class="prettyprint"> <span class="pun"&g
  11. Hello Larry. I need little help on registration page 80. I am getting this error when I uploaded to my site, but it looks fine and working on localhost. Also I am not getting an email that there is an errors on this page . Please help me. Thanks An error occurred in script '/home3/citi/public_html/test/includes/reg.php' on line 155: You could not be registered due to a system error. We apologize for any inconvenience. Array ( [0] => Array ( [function] => my_error_handler [args] => Array ( [0] => 1024 [1] => You coul
  12. Hello Larry. I think it's different the one I posted last week. it looks the problem relates into shopping cart and wish list clicking one of them gives me this error. Thanks
  13. Hello I have a problem with cart.php is there anybody can help me fixing this errors Please. An error occurred in script 'C:\xampp\htdocs\SERVER\commerce\html\cart.php' on line 81: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given Array ( [0] => Array ( [function] => my_error_handler [args] => Array ( [0] => 2 [1] => mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given [2] => C:\xampp\htdocs\SERVE
  14. Thank you very much Paul for pointing me the error. It looks solved for now. Thanks alot.
  15. Hello Larry. I followed your book and almost second day I have problem config files. Please help. define ('BASE_URI', 'C:/xampp/htdocs/server/commerce/'); define ('BASE_URL', 'localhost/'); define ('MYSQL', BASE_URI . 'mysql.inc.php'); database coonection DEFINE ('DB_USER', 'commerce'); DEFINE ('DB_PASSWORD', 'password'); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'ecommerce2'); // Make the connection: $dbc = mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); AND here is the error. An error occurred in script 'C:\xampp\htdocs\SERVER\commerce\ht
  • Create New...