Jump to content

voip03

Members
  • Posts

    693
  • Joined

  • Last visited

Everything posted by voip03

  1. I think you are confused with session and cookies. Cookies Hypertext Transfer Protocol (HTTP) cookies are bits of data that are sent back and forth between a client (usually a browser) and a server http://www.w3schools.com/php/php_cookies.asp Session A PHP session variable is used to store information about, or change settings for a user session http://www.w3schools.com/php/php_sessions.asp
  2. There are lot of method to PayPal integration. In Express Checkout API you or your client can sign up and get username, password and Signature and follow the PayPal guidance. If this is your 1st PayPal integration project; I would suggest that you dirt yourself.
  3. Clean your Windows PC, like cleaning registry, temp files.
  4. if ($grade_points >= 100) { $final_grade = 'A'; echo $final_grade; } elseif( ($grade_points >= 80) && ($grade_points <=100)) { $final_grade = 'B'; echo $final_grade; }
  5. What you are trying to do?
  6. Basic Pagination http://www.phpfreaks.com/tutorial/basic-pagination
  7. Where would you like to display the final grade?
  8. String adding in PHP http://www.plus2net.com/php_tutorial/php_string_add.php
  9. Could you post the full code?
  10. $headers = "MIME-Version: 1.0\r\n"; $headers.= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers.= "From: XXXXX\r\nReply-To: XXXX@XXXXX.com"; $subject = "Your SUBJECT";// $final_message = "MESSAGE "; mail($to, $subject, $final_message, $headers); http://www.w3schools.com/PHP/php_ref_mail.asp
  11. So, using this code will set the cookie? & If cookie is set, will do header redirect? Idk why Im asking. Im gonna try it, thanks! But in case it doesnt Id like to know. Thanks You can use this code to avoid the header error .
  12. $thirty_days = time()+60*60*24*30; The code is self explanatory. It is good practice to write a simple and secure code.
  13. voip03

    Drawing a line

    Amit20,cssfreakie ,manuelV,wright67uk ! Thank you.
  14. jduke6, I am not hijacking your post. cssfreakie, joel24 Can you give your comments about this article? http://www.eddieoneverything.com/articles/validating-an-email-address-with-phps-filter_var-isnt-perfect.php Thank you.
  15. You can use this code to solve the header error. Place it beginning of the code. <?php /* "Warning: Cannot modify header information - headers already sent by " To avoid the header error , give value zero to $mosConfig_locale_debug = 0; $mosConfig_locale_use_gettext = 0; */ $mosConfig_locale_debug = 0; $mosConfig_locale_use_gettext = 0; ob_start();
  16. Read this article http://www.phpfreaks.com/forums/index.php?topic=37442.0
  17. You'll need to use some basic offset / limit with a random number type scheme.
  18. OR You could just pass the resolution from a Javascript page using $_GET which is less attractive but easier. <?php if( empty($_GET['w'] )) { ?> <script type="text/javascript"> window.location.href = '1002.php?w=' + screen.width + '&h=' + screen.height; </script> <?php } else { echo "Your screen resolution is set at ". $_GET['w']. " X " . $_GET['h']; } ?>
  19. For your reading http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html#function_rand
  20. You only have to look at the total number of records in the table, and them do a rand() between 0 and the resulting number of records. So if you add more records, the rand() funtion will include them, and so on. // $Limit = total number of records ; SELECT * FROM table_name ORDER BY RAND() LIMIT $Limit ;
  21. if ($_GET['action']=='delete_ok'){}elseif ($_GET['action']=='edit_ok'){} What is the purpose of the above code? you need to rearrange your logic processing methods.
  22. For your reading http://roshanbh.com.np/2007/12/change-dropdown-list-options-values-from-database-with-ajax-and-php.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.