Jump to content

slurpee

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.monsterpreps.com

Profile Information

  • Gender
    Not Telling

slurpee's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Why can't you use $_SERVER[REMOTE_ADDR]?
  2. if(is_null($causes)) break; Or, if you want the loop to continue even if $causes is null, use this: if(is_null($causes)) continue;
  3. What about just using a single sql query? SELECT term_node.tid FROM term_node, node WHERE term_node.tid=node.nid AND node.type='butikker' ORDER AND term_node.tid != $not_allowed BY RAND() LIMIT 3
  4. I've never worked directly with sending/receiving instant messaging from PHP, but I found this cool free script that does: http://www.php121.com/ You can probably dissect it and figure out what the author has done.
  5. Just for some clarification, do you mean sorta how http://www.meebo.com does it?
  6. This will have to be done with JavaScript. There's a discussion about this at: http://www.phpfreaks.com/forums/index.php?topic=261696.0
  7. This should probably be in HTML help, but it looks like you have a <span> tag immediately following an <ol> tag. As the error on the validation page states (and quoted below), this isn't valid HTML according to XHTML 1.0 Transitional. It is expecting an <li> tag after an <ol> tag. Try changing to this: for($i = 0; $i < count($labels); $i++){ print '<li>'; if($row[$labels[$i]] != 0){ /// All 'if' stuff here } else { /// All 'else' stuff here } print '</li>'; }
  8. 1269419494 is definitely the correct return value from a time() function call. What were you expecting the format of this value to be?
  9. Are you getting an error? If not, try adding this to the top of your code: error_reporting(E_ALL); ini_set("display_errors",1); Is the "upload" directory writable by the user php runs as?
  10. What happens when you remove the 4th argument completely?
  11. Yep, when the user logs in you will want to set some session variable that holds their user id. You can do something like this: session_start(); $_SESSION[sUserID] = $userid; Make sure the session_start() function is called on every page you access the session variables. Also, using the code above you'll have to ensure there is some value in the $userid variable. You can read more about PHP's sessions at: http://php.net/manual/en/function.session-start.php
  12. Well first of all, what are you doing in the commented lines below? $temp1 = $nonRBProducts[$counteri][3]; $temp1 * 1; ///<--- What are you doing here? This won't result in the value of $temp1 changing in any way. $temp2 = $RBProducts[$counterr][3]; $temp2 * 1; ///<--- And here? $temp3 = $temp1 + $temp2;
  13. It's hard to tell from your explanation, but I'll try to help. Are you getting an error? What exactly are you changing the example? Are you accidentally removing the "\n" before the X-Mailer header?
  14. Everything hashed using md5 will result in a 32-digit hex number
×
×
  • 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.