New tools and animation effects in iAd Producer 2.0 make it even easier to build great iAds. Create sophisticated animations with precise control over object properties like position, opacity, size, color and shadow. Get instant, one-click access to any object or element on a page with the new object list. Make your iAds better and faster with new validation tools that identify optimization opportunities and common errors. Learn more.
A simple code-snippet that with a mouse click will Hide/Show a text block ( div , paragraph) , although it can be modified to any DOM object on your website .
http://tournasdimitrios1.wordpress.com
With the summer heat upon us, you're gonna have to stay cool somehow. Try importing these eerily-realistic ice cream popsicles from Stoyn in Russia. You might object, but we've already been eating creepy popsicle heads for decades. More »
$db = new Zend_Db_Adapter_Pdo_Mysql($connParams);
return $db;
}
}
// Controller in application/controllers/
/**
*Controller and Actions must be created with the Zend tool
*so that routes are automaticaly updated
*/
class IndexController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
// action body
}
public function testConnAction()
{
try{
$connParams = array("host" => "localhost",
"username" => "root",
"password" => "",
"dbname" => "test");
$db = new Zend_Db_Adapter_Pdo_Mysql($connParams);
}catch(Zend_Db_Exception $e){
echo $e->getMessage();
}
echo "Database object created.";
//Turn off View Rendering.
$this->_helper->viewRenderer->setNoRender();
}
public function testInsertAction()
{
try {
//Create a DB object--> First reference the Db_Db.php model
require_once "/../application/models/Db_Db.php";
$db = Db_Db::conn();
//DDL for initial 3 users
$statement = "INSERT INTO accounts(
username, email, password,status, created_date
)
VALUES(
'test_1', '
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
', 'password',
'active', NOW()
)";
$statement2 = "INSERT INTO accounts(
username,email,password,status,created_date
)
VALUES(
'test_2', '
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
', 'password',
'active', NOW()
)";
//Insert the above statements into the accounts.
$db->query($statement);
$db->query($statement2);
//Insert the statement using ? flags.
$db->query($statement3, array('test_3', '
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
',
'password', 'active'));