Jump to content

Nasir

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Nasir's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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.
  2. You can use a JOIN syntax and GROUP to accomplish what you want. Check Here
  3. 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;
  4. 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.
  5. // 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";
  6. 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.
  7. 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.
  8. 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.
×
×
  • 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.