voip03
Members-
Posts
693 -
Joined
-
Last visited
Everything posted by voip03
-
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
-
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.
-
Clean your Windows PC, like cleaning registry, temp files.
-
if ($grade_points >= 100) { $final_grade = 'A'; echo $final_grade; } elseif( ($grade_points >= 80) && ($grade_points <=100)) { $final_grade = 'B'; echo $final_grade; }
-
What you are trying to do?
-
Basic Pagination http://www.phpfreaks.com/tutorial/basic-pagination
-
Where would you like to display the final grade?
-
String adding in PHP http://www.plus2net.com/php_tutorial/php_string_add.php
-
Could you post the full code?
-
$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
-
Ive had it with trying to get this cookie to set! Im lost
voip03 replied to jdock1's topic in PHP Coding Help
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 . -
Quick (probably simple) question about coding practice
voip03 replied to Vince889's topic in PHP Coding Help
$thirty_days = time()+60*60*24*30; The code is self explanatory. It is good practice to write a simple and secure code. -
Amit20,cssfreakie ,manuelV,wright67uk ! Thank you.
-
Email verification - at least verify its in e mail form
voip03 replied to jduke6's topic in PHP Coding Help
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. -
Ive had it with trying to get this cookie to set! Im lost
voip03 replied to jdock1's topic in PHP Coding Help
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(); -
Ive had it with trying to get this cookie to set! Im lost
voip03 replied to jdock1's topic in PHP Coding Help
Read this article http://www.phpfreaks.com/forums/index.php?topic=37442.0 -
Non repeating, random entry MySql Querys ?!?!?
voip03 replied to PHP Learner's topic in PHP Coding Help
You'll need to use some basic offset / limit with a random number type scheme. -
That Good. Please make it solved.
-
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']; } ?>
-
Non repeating, random entry MySql Querys ?!?!?
voip03 replied to PHP Learner's topic in PHP Coding Help
For your reading http://dev.mysql.com/doc/refman/5.5/en/mathematical-functions.html#function_rand -
Non repeating, random entry MySql Querys ?!?!?
voip03 replied to PHP Learner's topic in PHP Coding Help
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 ; -
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.
-
For your reading http://roshanbh.com.np/2007/12/change-dropdown-list-options-values-from-database-with-ajax-and-php.html
-
You need a AJAX