Jump to content


Photo

how do i run a function


  • Please log in to reply
2 replies to this topic

#1 REOL

REOL
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 16 August 2006 - 04:32 PM

function getCorporateProfile()
{
	$query = "SELECT * FROM feature, featuretype WHERE feature.featuretypeid = featuretype.id AND featuretype.name = 'corporateprofile'";
	$result = pgdbsql( $query, "adminssssss" );
	return $result;
}


that is my function above

how do i just call and run it?


#2 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 16 August 2006 - 04:35 PM

$var = getCorporateProfile();

So the result of your query will be stored in $var;

#3 REOL

REOL
  • Members
  • PipPip
  • Member
  • 19 posts

Posted 16 August 2006 - 05:26 PM

thanks a lot.

i had that before but the data i was looking for didnt show.

but now it works.
'

-ps




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users