Nasir
-
Posts
9 -
Joined
-
Last visited
Never
Posts posted by Nasir
-
-
You can send the Session Cookie ID, which is not recommended in most cases.
Also with PHP you can simply use the sessions without having to pass them as HTTP VARS, just call the session_start() handler.
-
-
The function's value it returns must be stored in a variable if you want to utilize it through the rest of your code. Otherwise you'll end up just calling the function and it won't serve any purpose since your not really storing the function's returned value anywhere.
What you probably want is:
<?php function replace_value($obj) { if($obj==1) { $obj=2; } return $obj; } $number = 1; $number = replace_value($number); echo $number;
-
The only two fields I would display for my users would be city/country, the other address parameters are not very important. You would only need specific details if your shipping out something to them or when providing such and such services.
Except nobody says "Phoenix, USA"...
(Maybe it's just an American thing?!)
Also, remember that "I" might want to do things on the back end like determine that I have 100 users in the state of Arizona based on Zip Code.
Debbie
Well those fields would have to be available to your script in the Database, so I would give the option to your users for postal code, country, city, region, state...etc You can check through certain countries and enable/disable some fields based on the location, but this would definately take too long.
I know alot of shopping sites that ship world-wide just display ALL options for the addresses, even though some places only have provinces and not states, and vice versa.
-
// Additional headers $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n"; $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n"; $headers .= 'Cc: birthdayarchive@example.com' . "\r\n"; $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
-
The only two fields I would display for my users would be city/country, the other address parameters are not very important. You would only need specific details if your shipping out something to them or when providing such and such services.
-
Your Simply Escaping the Single Quotes In Order To Prevent SQL Injection, What You Are Talking Is About Is Sanitizing Your Data From Any Script Injection Through POST/GET Or However Your Handling Data From Your Users.
-
What is the error output? Can you paste it please.
Your use of arrays is sort of defeating the true purpose of an actual array. You are also looping through nothing but 1 key of your arrays. You can just put your connection params into strings.
PDO returning single string not associative array.
in PHP Coding Help
Posted
Whats the value of $result ?