PHP Classes

Help please

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Help please  
Subject:Help please
Summary:classes
Messages:4
Author:GAWRRELL
Date:2010-08-13 21:03:30
Update:2010-09-11 01:05:18
 

  1. Help please   Reply   Report abuse  
Picture of GAWRRELL GAWRRELL - 2010-08-13 23:57:09
I have a script like this :

class gawrrell
{

function one($i)
{
// get some info from mysql

$payment = mysql_query("SELECT * FROM tblorders WHERE userid ='$m'");
$pay = mysql_fetch_array($payment);

// i whose wondering how to make a call to the next function? someting like this :

$id = $this->$pay['id'];
....................

//call the next function

$gaw = $this->two($id......); // I also tryed like this $gaw = $this->two($this->id......);

}


function two($id,$email,$nr)
{

// other stuff
}

}



The question is how to make that function two call form function one inside the same class?


thank's

There are 3 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.