'developmentpdo' => array(
'type' => 'pdo',
'connection' => array(
'dsn' => 'mysql:host=instance11874.db.xeround.com;port=8070;dbname=DBNAME',
'username' => 'DBUSERNAME',
'password' => 'SECUREPASSWORD',
'persistent' => false,
),
'table_prefix' => '',
'charset' => 'utf8',
'caching' => false,
'profiling' => false,
),
Model_People::find(1);

<?php
class Model_Sandbox extends Orm\Model
{
protected static $_properties = array('id', 'first_name', 'last_name');
protected static $_table_name = 'people';
}
why is this happening when everything seems to be correct? $dbh = new PDO("mysql:host=HOST;port=PORT_NUMBER;dbname=DB_NAME", "DB_USERNAME", "SECURE_PASSWORD");
$STH = $dbh->query("SELECT * FROM `people`");
while($row = $STH->fetch()) {
echo $row['first_name'].' '.$row['last_name'];
}
It looks like you're new here. If you want to get involved, click one of these buttons!