$list = '';
foreach ($result_names as $rname) {
$list .= '<option>';echo $rname->name;echo ' </option>';
}
id="combo_name"
и вы получаете второй список.$mysqli = new mysqli("example.com", "user", "password", "database");
$mysqli->query("ALTER TABLE table_name AUTO_INCREMENT = value");
namespace Trap\ViewHandle;
class View
{
public $params = [];
public function with(array $params)
{
$this->params = $params;
return $this;
}
public function view(array $template = [])
{
extract($this->params);
require_once __DIR__ . '/../../views/index.php';
}
}
use \Trap\ViewHandle\View;
$view = new View;
$view->with($params)->view($template);
class test
{
public $something;
public function view()
{
return $this;
}
public function with($something)
{
$this->something = $something;
return $this;
}
}
RewriteCond %{HTTP_REFERER} http://example.com
RewriteRule ^/original.html$ /another.html [L]
Примерно так как вариант