Frederick
Frederick

Reputation: 11

How to call this php function

// Gets a single row from $from where $where is true    
    function Select($from, $where='', $orderBy='', $limit='', $like=false, $operand='AND',$cols='*'){

Let's say I created the object  - 
$oMySQL = new MySQL();

$oMySQL->Select();

if I was doing this query - SELECT * FROM users where email='$email'"

I can do insert and all the others - But I am confused how to make the select();

Thanks for the help.

Upvotes: 0

Views: 67

Answers (1)

Tobias Golbs
Tobias Golbs

Reputation: 4616

Since i do not know how the Select function is implemented i would assume something like this:

$oMySQL->Select('users', "email='$email'");

Upvotes: 1

Related Questions