Jump to content


Photo

Php OOP question.


  • Please log in to reply
1 reply to this topic

#1 Eugene

Eugene
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 16 September 2006 - 03:10 AM

A few questions...

1. How can I get this to work?

$sql = new SQLQuery("SELECT * FROM Table");
$sql->_echo_results_from_sql_query();


2.

I've looked over IPB source code many times and I can never understand How matt does it.
For example:
$this->ipsclass->something->someotherthing->function();

Does he redeclare a new class each time or something for each pointer?

I see that he uses global $ipsclass, how is that used?

Thanks in advanced.

#2 trillion

trillion
  • Members
  • PipPipPip
  • Advanced Member
  • 41 posts

Posted 16 September 2006 - 03:50 AM

I think I would try this

in place of:
$sql->_echo_results_from_sql_query();

try:
echo mysql_result($sql);


or make a function:
_echo_results_from_sql_query();

tp display the MySQL query the way you want it






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users