Forum Moderators: coopster
...<select name='author'>";
while ($row = $result->fetch_assoc()) {
extract($row);
echo "<option value='$author'>$author</option>\n";
}
echo "</select>... while($row = $result->fetch_object()) {
echo $row->columnName;
}
...how do I recognize what functions have a oo php counterpart?
<select name='author'>";
$sql= "select distinct author from classics order by author";
$result= $mysqli->query($sql) or die ("Unable to execute query.");
while ($row = $result->fetch_object()) {
echo "<option value='". $row->author ."'>".$row->author ."</option>";
}
echo "</select></li></ul>
$sql= "select distinct author from classics order by author";
$result= $mysqli->query($sql) or die ("Unable to execute query.");
while ($row = $result->fetch_assoc()) {
echo "<option value='".$row['author']."'>".$row['author']."</option>";
}
echo "</select></li></ul>
function &tep_load() {
static $_objects = array();
$result_array = array();
$args = func_get_args();
if( empty($args) ) return $_objects;
foreach( $args as $name ) {
$dir = DIR_FS_CLASSES . $name;
$file = $dir . '.php';
if( !isset($_objects[$name]) ) {
include_once($file);
if( !class_exists($name) ) {
die('Critical: Invalid Class File: ' . $file);
}
$_objects[$name] = new $name;
}
$result_array[$name] =& $_objects[$name];
}
return $result_array;
}
class install_download_system extends plug_manager {
....
function process_options() {
extract(tep_load('defs', 'database'));
...
$plugins_query = $db->query("select plugins_data from " . TABLE_PLUGINS . " where plugins_key = '" . $db->filter($this->key) . "'");
$plugins_array = $db->fetch_array($plugins_query);
...
}
}