->get()

->get()

->get() --  Simple Get (Select) request

Description

Get a result using key, value. Returns Number of rows located (usually 1) for success, and puts all the table columns into this classes variables. If only one parameter is used, it is assumed that first parameter is a value and get() will use the primary key.

Parameter

  • mixed $key or $value - column (or value if only one parameter)

  • mixed $value - value

Return value

int - Number of rows

Note

This function can not be called statically.

You should avoid calling get on the same object instance twice, as this will result in unexpected results.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.