Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Everything posted by vikky

  1. Hi Greetings, Sir thank you for all the teaching and guidance and lots of appreciation for all the colleagues. Sir how can I implement coupon system in the second site as available in the popular sites ?
  2. Hi Greetings, Thank You Sir for the guidance. And there is no need for sorry - I can understand you have lots of work to do. If I go with the latter option as you have mentioned. What could be the strongest password system and pattern for the maximum customer security. Thank You,
  3. Hi Greetings, Yes Sir, this is the registration script. There are two fields for the password in the registration script (1) for the password and another (2) for the confirm password. I had posted only the modified password part of the script above. Now the complete modified password part of the script is: // Check for a password and match against the confirmed password: if (preg_match('/^(\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*){8,}$/', $_POST['pass1']) ) { if ($_POST['pass1'] === $_POST['pass2']) { $p = $_POST['pass1']; } else {
  4. Sir, As mentioned in your book the strong password system is good. So I increased the characters required for the password from 6 to 8. if (preg_match('/^(\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*){8,}$/', $_POST['pass1']) ) { } To test the modification I tried to register with 6 characters password but it had not showed any error and I got registered. Then I cleared the browser's cache and restarted the Apache xampp, but again it had not showed any error and I got registered. Then I decreased the number of password characters to 4 - it had not sho
  5. Sir, Thank You for encouraging my efforts. I have restarted Apache after making changes and also cleared the cache. But it again showing the above mentioned error. I have visited the link mentioned in your post and there the match is made. So I do not have any idea what could be the problem.
  6. Case 1 --- With the below rule : RewriteRule ^browse/(coffee|goodies)/([A-Za-z0-9\+\-]+)/([0-9]+)/?$ browse.php?type=$1&category=$2&id=$3 if I type URL - Just by taking out the % sign - localhost/browse/goodies/Books+26+DVDs/3 --- The page is loading perfectly On the window's tab it is showing Goodies to Buy::Books 26 DVDs Case 2 --- With the below rule : RewriteRule ^browse/(coffee|goodies)/([A-Za-z0-9\%\+\-]+)/([0-9]+)/?$ browse.php?type=$1&category=$2&id=$3 if I type URL - Just by taking out the % sign - localhost/brow
  7. Hi Greetings, Sir What I have done is: 1) I have created a category named Books & DVDs. 2) I have modified my htaccess file as mentioned above. So my FULL URL is localhost/browse/goodies/Books+%26+DVDs/3 I am receiving this general message - Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. If you think this is a server error, please contact the webmaster. Error 404 localhost Apache/2.4.23 (Win32) Op
  8. Hi Greetings, Thank You Sir for the great support in the learning process. My question is - On the browse page I wanted to give a category name Books & DVDs for the non-coffee products. But when the page is loaded it is not displayed. If I URL ENCODE this name it will become Books+%26+DVDs. And my htaccess file is # For specific products: RewriteRule ^browse/(coffee|goodies)/([A-Za-z\+\-]+)/([0-9]+)/?$ browse.php?type=$1&category=$2&id=$3 I have tried RewriteRule ^browse/(coffee|goodies)/([A-Za-z0-9%\+\-]+)/([0-9]+)/?$ browse.php?type=$1&cate
  9. Greetings, Sir I asked you about the use of SSL in the site now I want to know how can I use it in the entire site. Below is the given my HTACCESS FILE as it is now - Please guide me how can I modify it so my site can not be accessed without the SSL anywhere. <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine on # For the primary categories: RewriteRule ^shop/(coffee|goodies)/?$ shop.php?type=$1 # For sales: RewriteRule ^shop/sales/?$ /sales.php # For specific products: RewriteRule ^browse/(coffee|goodies)/([A-Za-z\+\-]+)/([0-9]+)/?$ browse.php?type=$1&
  10. Hi Greetings, THANK YOU Larry Sir for the answer. As you have mentioned in your books using SSL puts load on the server. Now my question is for example - - - - - > if I have one server which can handle 100 users at a particular point of time without SSL. How many users that one server can handle approximately with SSL enabled ? Thank You,
  11. Hi, Thank you johannsnr and JayAtHome for your suggestions and the time you gave to look into the matter. Sir Larry what are your suggestions please. Thank you,
  12. Hi Greetings, I have implemented the User Account in the second site example. I want a user can search and browse the site without SSL but when the user logsin the entire site must run on SSL and when she logs out again she or any person can use the site without SSL. Kindly give the suggestions how can I do it in a professional way. Thanks in Advance,
  13. Thank You Sir Your explanation is correct. It will be impractical to allow such a big quantity.
  14. Thank you very much for the solution and the time you took to debug this problem. Steps taken: Open product_functions.inc.php under includes directory. This is my modified get_just_price() function. function get_just_price($regular, $sales) { // Return the sale price, when appropriate: if ((0 < $sales) && ($sales < $regular)) { return $sales/100; } else { return $regular/100; } } Now its showing the correct prices. Second problem which daddytiger has mentioned. Steps taken: Increased the quantity of the specific_coffees to 300 in the phpmyadmin.
  15. When I run this query: CALL get_shopping_cart_contents('8fffa77c5b12ea1aa09922e1053aa52a'); sku quantity category name price stock sale_price C3 21 Kona Half Pound - decaf - ground 5000 200 NULL C6 2 Kona 1 lb. - caf - whole 75000 50 NULL C4 1 Kona 1 lb. - caf - ground 800000 50 NULL C5 2 Kona 1 lb. - decaf - ground 850000 20
  16. I have run the stored procedure. Call select_products('coffee', 3); description image sku name stock price sale_price A real treat! Kona coffee, fresh from the lush mou... kona.jpg C4 1 lb. - caf - ground - $8,000.00 50 800000 NULL A real treat! Kona coffee, fresh from the lush mou... kona.jpg C6 1 lb. - caf - whole - $750.00 50 75000 NULL A real treat! Kona coffee, fresh from the lush mou... kona.jpg C5 1 lb. - decaf -
  17. And also with the above particulars when I am moving these items to wish list it is showing errors.
  18. Yes, this page is localhost/cart.php and I am using stored procedures. I have not changed anything from downloaded codes other than prices.
  19. Sorry I tried to paste the screen shot but it is not showing anything.
  20. The column definition for the price currently is INT UNSIGNED NOT NULL which is 4,294,967,295 and my current prices are below this numeral. For example: (1) When I increased the price of the Kona::Half Pound - decaf - ground from $5.00 to $50.00 (added one 0). It is showing the correct result. $50.00 x 21 (qty) = $1,050.00. (2) When I increased the price of Kona::1 lb. - caf - whole from $7.50 to $750.00. It is giving the correct answer. $750.00 x 2 = $1,500.00. BUT (3) When I increased the price of Kona::1 lb. - caf - ground from $8.00 to $8,000.00. It is not giving the accurate a
  21. If my price of the product is less than thousand then the prices are correct after update or any calculation. For example - if I am increasing or decreasing the quantity. But if the price of the product is above thousand than it is giving the wrong answers. And in practical scenario the cost or price of the product can be any digit. thanks in advance.
  • Create New...