Jump to content


Photo

Quick question about <>


  • Please log in to reply
3 replies to this topic

#1 spyke01

spyke01
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 21 July 2006 - 12:44 PM

ok i trying to figure out what the guy on the project before me did, some stuff was pretty good, and others....well I probally shouldnt even mention, im trying to figure out what hes doing with his sql statement, and i came across this in the php
		   $expire_days = $qr['expire_days'];
		   $exp_date = date("Ymd",strtotime ("+$expire_days day",mktime(0,0,0,substr($qr['datestamp'],4,2),substr($qr['datestamp'],6,2),substr($qr['datestamp'],0,4))));
			 if($exp_date <> date("Ymd")){

im wondering what the <> does, anyone know, when i try it on php's site it redirects me to Hyperwave Functions, if i use their "all php.net sites" search, it throws an error, so does google

[a href="http://www.fasttracksites.com" target="_blank"]Cheap PHP Hosting[/a]

#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 21 July 2006 - 12:48 PM

I believe it is "not equal to" try replacing it with != and see if you get the same result.

-Chris

#3 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 21 July 2006 - 12:51 PM

Yeah, I was right.

Check this out:
http://www.zend.com/....comparison.php

#4 spyke01

spyke01
  • Members
  • PipPipPip
  • Advanced Member
  • 74 posts

Posted 21 July 2006 - 12:54 PM

thanks mate, im off to kill this guy

[a href="http://www.fasttracksites.com" target="_blank"]Cheap PHP Hosting[/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users