Something
public text v1 · immutable<?php
require_once 'includepath.php';
require_once 'Zend/Db.php';
$config = array(
'host' => 'localhost',
'username' => 'username',
'password' => 'pass',
'dbname' => 'dbname'
);
$db = Zend_Db::factory('PHP_MYSQL',$config);
// Inserting Data
$data = array(
'bug_description' => 'Something wrong',
'bug_status' => 'NEW'
);
$db->insert('bugs', $data);
// Selecting Data
$sql = 'SELECT * FROM bugs where bug_id = 2';
$result = $db->fetchRow($sql);
echo $result->bug_description;
?>